[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KG1RK4DQAEKVTMEQKP5EW4":3,"skill-same:01M6KG1RK4DQAEKVTMEQKP5EW4":68},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":67},"01M6KG1RK4DQAEKVTMEQKP5EW4","baker-authoring-conversion",null,"Convert designer-facing MonoBehaviour authoring data into unmanaged ECS components at subscene import time, with zero runtime conversion overhead.","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\u002Fbaker-authoring-conversion\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"authoring","baker authoring conversion","conversion","data","designer","convert","ZeRO","time","runtime","components","import","ecs","with","true","at","overhead","baking","hybrid","core","2026-11-10 10:12:30",false,"﻿---\nname: baker-authoring-conversion\ndescription: Convert designer-facing MonoBehaviour authoring data into unmanaged ECS components at subscene import time, with zero runtime conversion overhead.\ntags: [core, baking, hybrid]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# Baker and Authoring Conversion\n\n## Intent\nConvert designer-facing MonoBehaviour authoring data into unmanaged ECS components at subscene import time, with zero runtime conversion overhead.\n\n## Use When\nAny ECS entity that originates from a Unity scene or prefab. All runtime components with inspector-configurable parameters require a Baker.\n\n## Avoid When\nRuntime-only entities created entirely by code (e.g., spawned from a prefab) — no Baker needed for the spawned instance, only for the prefab source entity.\n\n## Senior Pattern\n- Declare a public MonoBehaviour (`XyzAuthoring`) with inspector-visible fields.\n- Nest a private `class Baker : Baker\u003CXyzAuthoring>` inside it.\n- In `Bake()`: call `GetEntity(TransformUsageFlags.X)` to obtain the entity, then `AddComponent(entity, new XyzComponent { ... })`.\n- Convert editor units to runtime units at bake time (e.g., degrees → radians).\n- For prefab entity references: `GetEntity(authoring.PrefabField, TransformUsageFlags.Dynamic)`.\n- Use `TransformUsageFlags.Dynamic` for moving entities, `TransformUsageFlags.None` for static\u002Fdata-only entities.\n\n## Code Template\n```csharp\npublic class EnemyAuthoring : MonoBehaviour\n{\n    public float MoveSpeedDegreesPerSecond = 90f;\n    public GameObject ProjectilePrefab;\n\n    class Baker : Baker\u003CEnemyAuthoring>\n    {\n        public override void Bake(EnemyAuthoring authoring)\n        {\n            var entity = GetEntity(TransformUsageFlags.Dynamic);\n            AddComponent(entity, new EnemyMoveSpeed\n            {\n                RadiansPerSecond = math.radians(authoring.MoveSpeedDegreesPerSecond)\n            });\n            AddComponent(entity, new EnemyProjectileRef\n            {\n                Prefab = GetEntity(authoring.ProjectilePrefab, TransformUsageFlags.Dynamic)\n            });\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Doing unit conversion at runtime in OnUpdate instead of at bake time — wasted per-frame cost.\n- Forgetting TransformUsageFlags.Dynamic on an entity that moves — missing LocalTransform at runtime, silent wrong behavior.\n- Not calling GetEntity for a referenced prefab GameObject — the prefab won't be baked into an entity prefab reference.\n- Storing state on the Baker instance — Baker is stateless per-bake, state is discarded after each call.\n- Calling Resources.Load or doing file I\u002FO inside Bake — baking must be deterministic and dependency-tracked.\n\n## Runtime Risks\n- Missing TransformUsageFlags.Dynamic: entity has no LocalTransform, transform system skips it, entity doesn't move.\n- Unbaked prefab reference: entity field holds Entity.Null at runtime, causing silent spawn failures.\n\n## Performance Notes\nBaker runs only at import time (or on re-import due to asset change). Zero runtime cost. Subscene data is loaded directly from disk — no re-baking at runtime.\n\n## Architecture Guidance\nBaker is the sole bridge between the authoring world and the runtime world. Keep it simple — one Baker per authoring MonoBehaviour. Do all unit\u002Fformat conversions here. Never let authoring types leak into runtime systems.\n","# Baker and Authoring Conversion\n\n## Intent\nConvert designer-facing MonoBehaviour authoring data into unmanaged ECS components at subscene import time, with zero runtime conversion overhead.\n\n## Use When\nAny ECS entity that originates from a Unity scene or prefab. All runtime components with inspector-configurable parameters require a Baker.\n\n## Avoid When\nRuntime-only entities created entirely by code (e.g., spawned from a prefab) — no Baker needed for the spawned instance, only for the prefab source entity.\n\n## Senior Pattern\n- Declare a public MonoBehaviour (`XyzAuthoring`) with inspector-visible fields.\n- Nest a private `class Baker : Baker\u003CXyzAuthoring>` inside it.\n- In `Bake()`: call `GetEntity(TransformUsageFlags.X)` to obtain the entity, then `AddComponent(entity, new XyzComponent { ... })`.\n- Convert editor units to runtime units at bake time (e.g., degrees → radians).\n- For prefab entity references: `GetEntity(authoring.PrefabField, TransformUsageFlags.Dynamic)`.\n- Use `TransformUsageFlags.Dynamic` for moving entities, `TransformUsageFlags.None` for static\u002Fdata-only entities.\n\n## Code Template\n```csharp\npublic class EnemyAuthoring : MonoBehaviour\n{\n    public float MoveSpeedDegreesPerSecond = 90f;\n    public GameObject ProjectilePrefab;\n\n    class Baker : Baker\u003CEnemyAuthoring>\n    {\n        public override void Bake(EnemyAuthoring authoring)\n        {\n            var entity = GetEntity(TransformUsageFlags.Dynamic);\n            AddComponent(entity, new EnemyMoveSpeed\n            {\n                RadiansPerSecond = math.radians(authoring.MoveSpeedDegreesPerSecond)\n            });\n            AddComponent(entity, new EnemyProjectileRef\n            {\n                Prefab = GetEntity(authoring.ProjectilePrefab, TransformUsageFlags.Dynamic)\n            });\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Doing unit conversion at runtime in OnUpdate instead of at bake time — wasted per-frame cost.\n- Forgetting TransformUsageFlags.Dynamic on an entity that moves — missing LocalTransform at runtime, silent wrong behavior.\n- Not calling GetEntity for a referenced prefab GameObject — the prefab won't be baked into an entity prefab reference.\n- Storing state on the Baker instance — Baker is stateless per-bake, state is discarded after each call.\n- Calling Resources.Load or doing file I\u002FO inside Bake — baking must be deterministic and dependency-tracked.\n\n## Runtime Risks\n- Missing TransformUsageFlags.Dynamic: entity has no LocalTransform, transform system skips it, entity doesn't move.\n- Unbaked prefab reference: entity field holds Entity.Null at runtime, causing silent spawn failures.\n\n## Performance Notes\nBaker runs only at import time (or on re-import due to asset change). Zero runtime cost. Subscene data is loaded directly from disk — no re-baking at runtime.\n\n## Architecture Guidance\nBaker is the sole bridge between the authoring world and the runtime world. Keep it simple — one Baker per authoring MonoBehaviour. Do all unit\u002Fformat conversions here. Never let authoring types leak into runtime systems.\n",{"name":5,"tags":43,"metadata":44,"description":7},[37,35,36],{"tier":45,"internal-only":46},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fbaker-authoring-conversion",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":56,"prompt":66,"zipAvailable":46},[57,60,63],{"tool":58,"command":59},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill baker-authoring-conversion",{"tool":61,"command":62},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill baker-authoring-conversion",{"tool":64,"command":65},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill baker-authoring-conversion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fbaker-authoring-conversion\u002FSKILL.md",[],[69,93,113,132,151,172],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":38},"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",[],[76,77,78,79,80,81,82,83,84,85,86,87,88,89,30,90,91,92],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","bugs","frame","value",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"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",[],[100,101,102,28,78,81,103,104,84,105,27,106,107,31,108,109,33,110,111,112],"patterns","transform","dots transform patterns","mount","model","cost","systems","input","matrix","socket","child","custom","hierarchy",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":38},"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",[],[100,120,121,122,123,124,125,81,104,84,126,26,127,27,128,129,31,91,130,131],"singleton","dots singleton patterns","component","config","state","game","writer","shared","contract","as","ecb","gating",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":38},"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",[],[139,36,140,141,28,124,78,142,143,83,144,145,84,27,146,147,107,148,149,150],"bridge","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","for","managed",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"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",[],[158,159,30,160,161,28,162,163,164,104,83,165,166,100,167,168,107,169,170,171],"event driven","driven","event","dots event driven ecs","change","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":38},"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",[],[179,180,181,182,183,184,185,186,187,188,189,190,191,192,147,193,149],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]