[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGFDZYCHN644WHP4KSHN3K":3,"skill-same:01M6KGFDZYCHN644WHP4KSHN3K":64},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M6KGFDZYCHN644WHP4KSHN3K","wave8-baker-dependency-registration",null,"Register all external asset and component dependencies in a Baker so that incremental baking re-triggers correctly when referenced objects change.","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-dots\u002Fwave8-baker-dependency-registration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"dependency","registration","wave8 baker dependency registration","change","component","debug","objects","dependencies","triggers","register","asset","re","true","baking","antipattern","2026-11-10 10:12:30",false,"﻿---\nname: wave8-baker-dependency-registration\ndescription: Register all external asset and component dependencies in a Baker so that incremental baking re-triggers correctly when referenced objects change.\ntags: [baking, antipattern, debug]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# Baker Dependency Registration — DependsOn\n\n## Intent\nRegister all external asset and component dependencies in a Baker so that incremental baking re-triggers correctly when referenced objects change.\n\n## Use When\n- A Baker reads data from child GameObjects, referenced assets (ScriptableObjects, Textures, etc.), or other components not on the primary authoring GameObject\n- Any data source that is not a direct serialized field on the primary authoring MonoBehaviour\n\n## Avoid When\n- The Baker only reads from the primary authoring MonoBehaviour's own serialized fields — Unity registers those automatically\n- The dependency is read via Baker API methods (GetComponent, GetComponentInChildren) which have their own automatic tracking\n\n## Senior Pattern\n```csharp\npublic class EnemyConfigBaker : Baker\u003CEnemyConfigAuthoring>\n{\n    public override void Bake(EnemyConfigAuthoring authoring)\n    {\n        \u002F\u002F Reading a referenced asset — MUST call DependsOn:\n        DependsOn(authoring.ConfigAsset);  \u002F\u002F re-bake if ScriptableObject changes\n\n        \u002F\u002F Reading child component via raw Unity API — MUST call DependsOn:\n        var childRenderer = authoring.GetComponentInChildren\u003CMeshRenderer>();\n        DependsOn(childRenderer);          \u002F\u002F re-bake if childRenderer changes\n\n        \u002F\u002F Reading via Baker API — automatically tracked, DependsOn not needed:\n        var rb = GetComponent\u003CRigidbody>();     \u002F\u002F auto-tracked\n        var children = GetChildren();           \u002F\u002F auto-tracked\n\n        var entity = GetEntity(TransformUsageFlags.Dynamic);\n        AddComponent(entity, new EnemyConfig\n        {\n            Speed        = authoring.ConfigAsset != null ? authoring.ConfigAsset.Speed : 0f,\n            HasRenderer  = childRenderer != null\n        });\n    }\n}\n```\n\n## Auto-Tracked vs Manual DependsOn\n\n| Access method | Auto-tracked? | DependsOn needed? |\n|---|---|---|\n| Direct serialized field on authoring | Yes | No |\n| `GetComponent\u003CT>()` (Baker API) | Yes | No |\n| `authoring.someField.GetComponent\u003CT>()` (raw Unity API) | No | Yes |\n| Referenced ScriptableObject \u002F asset | No | Yes |\n| `authoring.transform.GetChild(0).GetComponent\u003CT>()` | No | Yes |\n| Static fields \u002F singletons | Never | Cannot register |\n\n## Anti-Patterns\n- Accessing `authoring.transform.GetChild(0).GetComponent\u003CT>()` without DependsOn — child change not detected; stale bake with no error.\n- Reading a ScriptableObject field without DependsOn — asset change does not trigger re-bake.\n- Using static fields or singletons inside Baker.Bake — untracked dependencies; non-deterministic baking results.\n- Over-registering DependsOn for fields that are already auto-tracked — causes unnecessary bake invalidation on every change.\n\n## Runtime Risks\n- Missing DependsOn causes stale baked data in SubScenes — entity has wrong data until manual re-import.\n- This is a silent correctness bug with no runtime error — only manifests as wrong game behavior after source asset changes.\n- In Editor Play mode, stale bakes are invisible until SubScene reimport; can cause intermittent test failures.\n\n## Performance Notes\n- DependsOn adds incremental bake tracking overhead proportional to the number of registered dependencies.\n- Only register dependencies that actually vary between bakes.\n- Unnecessary DependsOn calls cause cascading bake invalidations across the SubScene.\n\n## Architecture Guidance\n- Rule: if Baker.Bake reads it via raw Unity API and it is not a direct serialized field on the authoring component, call DependsOn.\n- Baker-registered dependencies are the baking system's incremental cache invalidation mechanism — correctness of baked data depends on complete dependency registration.\n\n## Related Skills\n[[baker-authoring-conversion]], [[baker-depends-on]], [[baking-system]], [[baking-type-component]]\n","# Baker Dependency Registration — DependsOn\n\n## Intent\nRegister all external asset and component dependencies in a Baker so that incremental baking re-triggers correctly when referenced objects change.\n\n## Use When\n- A Baker reads data from child GameObjects, referenced assets (ScriptableObjects, Textures, etc.), or other components not on the primary authoring GameObject\n- Any data source that is not a direct serialized field on the primary authoring MonoBehaviour\n\n## Avoid When\n- The Baker only reads from the primary authoring MonoBehaviour's own serialized fields — Unity registers those automatically\n- The dependency is read via Baker API methods (GetComponent, GetComponentInChildren) which have their own automatic tracking\n\n## Senior Pattern\n```csharp\npublic class EnemyConfigBaker : Baker\u003CEnemyConfigAuthoring>\n{\n    public override void Bake(EnemyConfigAuthoring authoring)\n    {\n        \u002F\u002F Reading a referenced asset — MUST call DependsOn:\n        DependsOn(authoring.ConfigAsset);  \u002F\u002F re-bake if ScriptableObject changes\n\n        \u002F\u002F Reading child component via raw Unity API — MUST call DependsOn:\n        var childRenderer = authoring.GetComponentInChildren\u003CMeshRenderer>();\n        DependsOn(childRenderer);          \u002F\u002F re-bake if childRenderer changes\n\n        \u002F\u002F Reading via Baker API — automatically tracked, DependsOn not needed:\n        var rb = GetComponent\u003CRigidbody>();     \u002F\u002F auto-tracked\n        var children = GetChildren();           \u002F\u002F auto-tracked\n\n        var entity = GetEntity(TransformUsageFlags.Dynamic);\n        AddComponent(entity, new EnemyConfig\n        {\n            Speed        = authoring.ConfigAsset != null ? authoring.ConfigAsset.Speed : 0f,\n            HasRenderer  = childRenderer != null\n        });\n    }\n}\n```\n\n## Auto-Tracked vs Manual DependsOn\n\n| Access method | Auto-tracked? | DependsOn needed? |\n|---|---|---|\n| Direct serialized field on authoring | Yes | No |\n| `GetComponent\u003CT>()` (Baker API) | Yes | No |\n| `authoring.someField.GetComponent\u003CT>()` (raw Unity API) | No | Yes |\n| Referenced ScriptableObject \u002F asset | No | Yes |\n| `authoring.transform.GetChild(0).GetComponent\u003CT>()` | No | Yes |\n| Static fields \u002F singletons | Never | Cannot register |\n\n## Anti-Patterns\n- Accessing `authoring.transform.GetChild(0).GetComponent\u003CT>()` without DependsOn — child change not detected; stale bake with no error.\n- Reading a ScriptableObject field without DependsOn — asset change does not trigger re-bake.\n- Using static fields or singletons inside Baker.Bake — untracked dependencies; non-deterministic baking results.\n- Over-registering DependsOn for fields that are already auto-tracked — causes unnecessary bake invalidation on every change.\n\n## Runtime Risks\n- Missing DependsOn causes stale baked data in SubScenes — entity has wrong data until manual re-import.\n- This is a silent correctness bug with no runtime error — only manifests as wrong game behavior after source asset changes.\n- In Editor Play mode, stale bakes are invisible until SubScene reimport; can cause intermittent test failures.\n\n## Performance Notes\n- DependsOn adds incremental bake tracking overhead proportional to the number of registered dependencies.\n- Only register dependencies that actually vary between bakes.\n- Unnecessary DependsOn calls cause cascading bake invalidations across the SubScene.\n\n## Architecture Guidance\n- Rule: if Baker.Bake reads it via raw Unity API and it is not a direct serialized field on the authoring component, call DependsOn.\n- Baker-registered dependencies are the baking system's incremental cache invalidation mechanism — correctness of baked data depends on complete dependency registration.\n\n## Related Skills\n[[baker-authoring-conversion]], [[baker-depends-on]], [[baking-system]], [[baking-type-component]]\n",{"name":5,"tags":39,"metadata":40,"description":7},[32,33,24],{"tier":41,"internal-only":42},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fwave8-baker-dependency-registration",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":52,"prompt":62,"zipAvailable":42},[53,56,59],{"tool":54,"command":55},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill wave8-baker-dependency-registration",{"tool":57,"command":58},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill wave8-baker-dependency-registration",{"tool":60,"command":61},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill wave8-baker-dependency-registration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave8-baker-dependency-registration\u002FSKILL.md",[],[65,90,114,138,158,178],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":34},"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",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","ecs","bugs","frame","value",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":34},"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",[],[97,98,99,100,74,77,101,102,80,103,104,105,106,107,108,109,110,111,112,113],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","systems","input","with","matrix","socket","at","child","custom","hierarchy",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":125,"publishedAt":34},"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",[120],{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[97,126,127,23,128,129,130,77,102,80,131,132,133,104,134,135,107,88,136,137],"singleton","dots singleton patterns","config","state","game","writer","time","shared","contract","as","ecb","gating",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":34},"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",[],[145,146,147,148,100,129,74,149,150,79,151,152,80,104,153,154,106,155,156,157],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","for","managed",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":34},"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",[],[165,166,86,167,168,100,22,169,170,102,79,171,172,97,173,174,106,175,176,177],"event driven","driven","event","dots event driven ecs","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":195,"publishedAt":34},"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",[184,189,192],{"categoryNo":185,"categoryName":186,"taxonomyType":187,"taxonomyTypeDesc":188},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",{"categoryNo":190,"categoryName":191,"taxonomyType":187,"taxonomyTypeDesc":188},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":193,"categoryName":194,"taxonomyType":187,"taxonomyTypeDesc":188},"01JBSEEDCAT000000000000023","Skill与智能体开发",[196,197,198,199,200,201,202,203,204,205,206,207,208,209,154,210,156],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]