[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGT83Y390PMS35WN340GQK":3,"skill-same:01M6KGT83Y390PMS35WN340GQK":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6KGT83Y390PMS35WN340GQK","unity-patterns",null,"Unity design pattern selector. Use when users want advice on ScriptableObject, events, state machines, object pools, observer, or other patterns. Triggers: design pattern, which pattern, ScriptableObject, event channel, observer, state machine, object pool, singleton, service locator, 设计模式, 用什么模式, 事件系统, 状态机, 对象池, 观察者模式, 该用什么模式.","dyCuong03\u002Funity-agent-team","dyCuong03","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137050365?v=4","01M6KFXC85HQHXZJC2VC1KY6EZ","CuongND","01M6KFXCCHP6CD5MTA8NECJC36",8,"MIT","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fpatterns\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"unity patterns","patterns","unity","state machines","singleton","state machine","for","which","selector","unity editor","event","events","design","as","runtime","pattern","do","only","direct","code","2026-11-10 10:12:30",false,"---\nname: unity-patterns\ndescription: \"Unity design pattern selector. Use when users want advice on ScriptableObject, events, state machines, object pools, observer, or other patterns. Triggers: design pattern, which pattern, ScriptableObject, event channel, observer, state machine, object pool, singleton, service locator, 设计模式, 用什么模式, 事件系统, 状态机, 对象池, 观察者模式, 该用什么模式.\"\nplatforms: [unity-editor, claude-code]\ntask-categories: [design-patterns, design-advisory]\nuse-when: |-\n  Load when designing or reviewing unity design pattern selector. Load for design advisory guidance — does not require Unity Editor running.\ndo-not-use-when: |-\n  Do not load as a runtime editor-automation skill — this module provides design advisory guidance only. Do not use for direct Unity Editor mutations.\nmetadata:\n  source: https:\u002F\u002Fgithub.com\u002FBesty0728\u002FUnity-Skills\n  version: 1.9.2\n  tier: 2\n\n---\n\n# Unity Pattern Selector\n\nUse this skill to decide whether a pattern is justified. Do not recommend every pattern at once.\n\n## Guardrails\n\n> **Mode**: Documentation only — no REST skills to gate; load freely under any operating mode (Approval \u002F Auto \u002F Bypass).\n\n- Recommend at most 1-3 patterns, and explain why simpler options are not enough.\n\n## Pattern Guide\n\n- `ScriptableObject`\n  - Use for authored config, shared static data, event channels, and reusable data assets.\n  - Avoid as the default home for per-run mutable gameplay state.\n\n- `C# events \u002F delegates`\n  - Use for one-to-many notifications with clear ownership and unsubscribe points.\n  - Avoid for imperative flows that need ordering, return values, or complex debugging.\n\n- `Global event bus \u002F observer hub`\n  - Use sparingly and only when many systems truly need broad decoupled notifications.\n  - Avoid as the default answer to coupling. It often hides ownership and makes debugging harder.\n\n- `Interfaces`\n  - Use when multiple implementations or clearer dependency boundaries are needed.\n  - Avoid adding interfaces around every class without a real seam.\n\n- `State machine`\n  - Use for actors with mutually exclusive states and explicit transitions.\n  - Avoid when a few booleans or a small command flow is enough.\n\n- `Object pool`\n  - Use for frequent spawn\u002Fdespawn of bullets, VFX, enemies, UI items.\n  - Avoid for rare objects or when lifetime is simple.\n\n- `Service layer`\n  - Use for a small number of cross-scene systems with explicit bootstrap and interfaces.\n  - Avoid turning everything into hidden singletons or service locators.\n\n- `Generics \u002F custom attributes`\n  - Use when they remove repeated boilerplate with clear type safety or editor metadata value.\n  - Avoid when they make gameplay code harder to read than duplicated simple code.\n\n## Decision Lab: Same Goal, Multiple Implementations\n\nThe Pattern Guide above answers \"which pattern?\". For most non-trivial design decisions, the better exercise is: pick the 2-3 plausible implementations, put them side by side, and compare on switch cost, query cost, code complexity, and failure modes. Below is a worked example; use it as the shape for other decisions rather than as the answer.\n\n### Worked example: \"Pause AI on 100 enemies for a cutscene\"\n\n| Implementation | Switch cost (enter\u002Fexit cutscene) | Per-frame cost while paused | Code complexity | Failure modes |\n|----------------|-----------------------------------|----------------------------|-----------------|---------------|\n| **Field flag**: each `EnemyAI.Update` starts with `if (_paused) return;`; manager sets the flag | O(N) writes, no allocations | N branch tests + dispatch overhead per frame | Lowest — one bool, one guard clause | Silent bugs when a dev adds a new `Update` and forgets the guard |\n| **`enabled = false`**: manager disables the `MonoBehaviour` on every enemy | O(N) writes, no allocations | Zero — Unity skips disabled `Behaviours` in its message list | Low, but state spread across components | OnDisable \u002F OnEnable side effects (coroutines stop, listeners unsubscribe) may fire unexpectedly |\n| **Subset list**: manager keeps `_active` \u002F `_frozen` lists; no per-enemy Update — manager ticks only `_active` | O(N) list move on switch | Proportional to `_active` count only — perfect early-cull | Highest — one source of truth for ownership, requires managed ticking | Adding a new `Update` on enemies reintroduces per-frame cost; the list is easy to desync if other code respawns enemies directly |\n\n### How to use\n\n- Pick the **smallest** scale where the trade-off matters. At N=5 all three are indistinguishable; at N=5000 only the subset list stays flat.\n- State what *gets worse* under each option, not only what improves. A table with only upsides is a sign you haven't thought about it yet.\n- The ECS lesson is that the same three shapes (value change, structural change, enableable) show up everywhere — the labels transfer even when the framework does not. *Source: `Dots101\u002FEntities101\u002FAssets\u002FHelloCube\u002F13. StateChange\u002FSetStateSystem.cs:42-80` — one system dispatches to three implementations behind `config.Mode`, each with measurably different cost in the profiler.*\n\n### When to skip this exercise\n\nIf one option is obviously bounded (N ≤ 10, state changes once per session, or the code runs once at startup), a single paragraph \"we picked X because it's simplest\" is enough. Decision Lab is for choices that will outlive the current task.\n\n## Output Format\n\n- Recommended pattern(s)\n- Why they fit this case\n- Why not the simpler alternative\n- Minimal implementation boundary\n- Known tradeoffs\n","# Unity Pattern Selector\n\nUse this skill to decide whether a pattern is justified. Do not recommend every pattern at once.\n\n## Guardrails\n\n> **Mode**: Documentation only — no REST skills to gate; load freely under any operating mode (Approval \u002F Auto \u002F Bypass).\n\n- Recommend at most 1-3 patterns, and explain why simpler options are not enough.\n\n## Pattern Guide\n\n- `ScriptableObject`\n  - Use for authored config, shared static data, event channels, and reusable data assets.\n  - Avoid as the default home for per-run mutable gameplay state.\n\n- `C# events \u002F delegates`\n  - Use for one-to-many notifications with clear ownership and unsubscribe points.\n  - Avoid for imperative flows that need ordering, return values, or complex debugging.\n\n- `Global event bus \u002F observer hub`\n  - Use sparingly and only when many systems truly need broad decoupled notifications.\n  - Avoid as the default answer to coupling. It often hides ownership and makes debugging harder.\n\n- `Interfaces`\n  - Use when multiple implementations or clearer dependency boundaries are needed.\n  - Avoid adding interfaces around every class without a real seam.\n\n- `State machine`\n  - Use for actors with mutually exclusive states and explicit transitions.\n  - Avoid when a few booleans or a small command flow is enough.\n\n- `Object pool`\n  - Use for frequent spawn\u002Fdespawn of bullets, VFX, enemies, UI items.\n  - Avoid for rare objects or when lifetime is simple.\n\n- `Service layer`\n  - Use for a small number of cross-scene systems with explicit bootstrap and interfaces.\n  - Avoid turning everything into hidden singletons or service locators.\n\n- `Generics \u002F custom attributes`\n  - Use when they remove repeated boilerplate with clear type safety or editor metadata value.\n  - Avoid when they make gameplay code harder to read than duplicated simple code.\n\n## Decision Lab: Same Goal, Multiple Implementations\n\nThe Pattern Guide above answers \"which pattern?\". For most non-trivial design decisions, the better exercise is: pick the 2-3 plausible implementations, put them side by side, and compare on switch cost, query cost, code complexity, and failure modes. Below is a worked example; use it as the shape for other decisions rather than as the answer.\n\n### Worked example: \"Pause AI on 100 enemies for a cutscene\"\n\n| Implementation | Switch cost (enter\u002Fexit cutscene) | Per-frame cost while paused | Code complexity | Failure modes |\n|----------------|-----------------------------------|----------------------------|-----------------|---------------|\n| **Field flag**: each `EnemyAI.Update` starts with `if (_paused) return;`; manager sets the flag | O(N) writes, no allocations | N branch tests + dispatch overhead per frame | Lowest — one bool, one guard clause | Silent bugs when a dev adds a new `Update` and forgets the guard |\n| **`enabled = false`**: manager disables the `MonoBehaviour` on every enemy | O(N) writes, no allocations | Zero — Unity skips disabled `Behaviours` in its message list | Low, but state spread across components | OnDisable \u002F OnEnable side effects (coroutines stop, listeners unsubscribe) may fire unexpectedly |\n| **Subset list**: manager keeps `_active` \u002F `_frozen` lists; no per-enemy Update — manager ticks only `_active` | O(N) list move on switch | Proportional to `_active` count only — perfect early-cull | Highest — one source of truth for ownership, requires managed ticking | Adding a new `Update` on enemies reintroduces per-frame cost; the list is easy to desync if other code respawns enemies directly |\n\n### How to use\n\n- Pick the **smallest** scale where the trade-off matters. At N=5 all three are indistinguishable; at N=5000 only the subset list stays flat.\n- State what *gets worse* under each option, not only what improves. A table with only upsides is a sign you haven't thought about it yet.\n- The ECS lesson is that the same three shapes (value change, structural change, enableable) show up everywhere — the labels transfer even when the framework does not. *Source: `Dots101\u002FEntities101\u002FAssets\u002FHelloCube\u002F13. StateChange\u002FSetStateSystem.cs:42-80` — one system dispatches to three implementations behind `config.Mode`, each with measurably different cost in the profiler.*\n\n### When to skip this exercise\n\nIf one option is obviously bounded (N ≤ 10, state changes once per session, or the code runs once at startup), a single paragraph \"we picked X because it's simplest\" is enough. Decision Lab is for choices that will outlive the current task.\n\n## Output Format\n\n- Recommended pattern(s)\n- Why they fit this case\n- Why not the simpler alternative\n- Minimal implementation boundary\n- Known tradeoffs\n",{"name":5,"metadata":44,"use-when":48,"platforms":49,"description":7,"do-not-use-when":52,"task-categories":53},{"tier":45,"source":46,"version":47},2,"https:\u002F\u002Fgithub.com\u002FBesty0728\u002FUnity-Skills","1.9.2","Load when designing or reviewing unity design pattern selector. Load for design advisory guidance — does not require Unity Editor running.",[50,51],"unity-editor","claude-code","Do not load as a runtime editor-automation skill — this module provides design advisory guidance only. Do not use for direct Unity Editor mutations.",[54,55],"design-patterns","design-advisory","main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fpatterns",0,"https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team","https:\u002F\u002Fgithub.com\u002FdyCuong03","Game developer","2026-07-25 22:22:25",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill unity-patterns",{"tool":70,"command":71},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill unity-patterns",{"tool":73,"command":74},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill unity-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fpatterns\u002FSKILL.md",true,[],[79,104,126,144,162,180],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":39},"01M6KH55FFS00ET877QSMRYGX4","dots-update-groups","How to choose the right ECS system group and ordering so per-frame and per-fixed-step work is deterministic and never races its own readers. Covers InitializationSystemGroup \u002F SimulationSystemGroup \u002F PresentationSystemGroup \u002F FixedStepSimulationSystemGroup \u002F VariableRateSimulationSystemGroup, UpdateBefore \u002F UpdateAfter peer ordering, OrderFirst \u002F OrderLast group-boundary placement, RateManager, and the cross-group ordering trap. Use when adding an ISystem, fixing \"value visible one frame late\" bugs, or coupling simulation to a fixed timestep.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-update-groups\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","ecs","bugs","frame","value",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M6KH50PWYEFQDCGYBZ0326F1","dots-transform-patterns","The Entities 1.x transform model — LocalTransform (writable input) vs LocalToWorld (system-owned matrix), Parent\u002FChild hierarchy, reparenting cost, uniform vs non-uniform scale (PostTransformMatrix), and when to opt out with custom transform systems. Use when designing parent\u002Fchild hierarchies, runtime reparenting (mount\u002Fdismount\u002Fsocket), or choosing transform components at the Baker boundary.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-transform-patterns\u002FSKILL.md",[],[20,111,112,113,88,91,114,115,94,116,33,117,118,119,120,121,122,123,124,125],"transform","dots transform patterns","components","mount","model","cost","systems","input","with","matrix","socket","at","child","custom","hierarchy",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M6KH4VW4MA14DQW4KQYPFT0S","dots-singleton-patterns","Model cross-system shared configuration and game state as a single-entity component with a strict single-writer contract. Covers RequireForUpdate gating, SystemAPI.GetSingleton \u002F GetSingletonRW \u002F HasSingleton \u002F TryGetSingleton, bake-time vs runtime-created vs ECB-system singletons, the \"exactly one entity\" runtime invariant, and the single-writer rule. Use when designing frame-stable global config, shared mutable state, or any component intended to exist on exactly one entity.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-singleton-patterns\u002FSKILL.md",[],[20,23,133,134,135,136,137,91,115,94,138,139,140,33,141,32,119,102,142,143],"dots singleton patterns","component","config","state","game","writer","time","shared","contract","ecb","gating",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6KH4PR076AYNDZHD63HHWX6","dots-hybrid-bridge","The one-way bridge between DOTS-owned runtime state and Unity-owned presentation. Covers UnityObjectRef for managed asset refs in components, the DOTS-writes \u002F Unity-reads ownership rule, when to use managed IComponentData vs UnityObjectRef vs CompanionComponent, baker-bridge vs runtime-bridge, and SubScene boundary rules. Use when an entity must reference Unity assets (Mesh, Material, AudioClip, ScriptableObject), a MonoBehaviour view must read entity state, or input\u002FUI must trigger ECS work.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-hybrid-bridge\u002FSKILL.md",[],[151,152,153,154,113,136,88,155,156,93,157,158,94,33,159,21,118,160,25,161],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","material","managed",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":39},"01M6KH4FGRQ9AP2ND5H5HX4D83","dots-event-driven-ecs","Model one-frame events and external requests in ECS without dual ownership, polling, or persistent state leaks. Covers request-tag pattern with ECB, enableable command components (no structural change), event buffers (IBufferElementData), explicit consumer ownership, one-frame latency rules, and the banned C# event \u002F UnityEvent \u002F static bus anti-patterns. Use when input\u002FUI\u002Fnetwork must trigger ECS work, when a one-frame signal fans out to N consumers (damage, hit, collision), or when state changes must be processed exactly once.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-event-driven-ecs\u002FSKILL.md",[],[169,170,100,29,171,113,172,173,174,115,93,175,176,20,34,177,118,30,178,179],"event driven","driven","dots event driven ecs","change","ui","network","command","anti-patterns","structural","static","request",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":39},"01M6KH4BWRGCEBJ8PKCKCSGT33","valid_skill","A complete, well-formed test fixture skill for SkillHub validation testing. Covers basic task routing and code review for Unity projects.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid_skill\u002FSKILL.md",[],[187,188,189,190,191,192,193,38,194,195,196,197,198,199,21,200,25],"valid skill","valid","code review","testing","review","test","routing","validation","projects","fixture skill","task","fixture","basic","complete"]