[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGDT5P4P42CYRTVKN2ME7T":3,"skill-same:01M6KGDT5P4P42CYRTVKN2ME7T":63},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":62},"01M6KGDT5P4P42CYRTVKN2ME7T","wave6-zero-data-enableable-signal",null,"Use a zero-field IEnableableComponent as a single-bit signal between producer and consumer systems, avoiding event queues and DynamicBuffer cleanup 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\u002Fwave6-zero-data-enableable-signal\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"ZeRO","data","enableable","wave6 zero data enableable signal","performance","cleanup","use","systems","as","bit","event","true","producer","overhead","2026-11-10 10:12:30",false,"﻿---\nname: wave6-zero-data-enableable-signal\ndescription: Use a zero-field IEnableableComponent as a single-bit signal between producer and consumer systems, avoiding event queues and DynamicBuffer cleanup overhead.\ntags: [enableable, performance]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# Zero-Data Enableable Signal — Inter-System Signaling\n\n## Intent\nUse a zero-field IEnableableComponent as a single-bit signal between producer and consumer systems, avoiding event queues and DynamicBuffer cleanup overhead.\n\n## Use When\n- One system signals another that a condition occurred (repositioning needed, UI dirty, AI alert)\n- Signal is boolean (happened \u002F not happened) and carries no data payload\n- Producer and consumer are on different systems with defined execution order\n\n## Avoid When\n- Signal must carry a data payload — use a separate IComponentData field or DynamicBuffer element\n- Multiple independent signals of same type can occur in the same frame — a single bit cannot distinguish count; use DynamicBuffer for counted\u002Fmulti-signal\n- Multiple producers write to the same entity's signal — last write wins; use DynamicBuffer for multi-producer scenarios\n\n## Senior Pattern\n```csharp\n\u002F\u002F Zero-size signal component:\npublic struct RepositionNeeded : IComponentData, IEnableableComponent { }\n\n\u002F\u002F Baker: add signal component (starts disabled):\npublic override void Bake(TeamAuthoring authoring)\n{\n    var entity = GetEntity(TransformUsageFlags.None);\n    AddComponent\u003CRepositionNeeded>(entity);\n    SetComponentEnabled\u003CRepositionNeeded>(entity, false);\n}\n\n\u002F\u002F Producer system — sets signal:\n[UpdateInGroup(typeof(SimulationSystemGroup))]\n[BurstCompile]\npublic partial struct TeamEventSystem : ISystem\n{\n    [BurstCompile]\n    public void OnUpdate(ref SystemState state)\n    {\n        foreach (var (teamData, entity) in\n            SystemAPI.Query\u003CRefRO\u003CTeamData>>().WithEntityAccess())\n        {\n            if (teamData.ValueRO.NeedsReposition)\n                SystemAPI.SetComponentEnabled\u003CRepositionNeeded>(entity, true);\n        }\n    }\n}\n\n\u002F\u002F Consumer system — reacts and MUST clear signal:\n[UpdateInGroup(typeof(SimulationSystemGroup))]\n[UpdateAfter(typeof(TeamEventSystem))]\n[BurstCompile]\npublic partial struct RepositionSystem : ISystem\n{\n    [BurstCompile]\n    public void OnUpdate(ref SystemState state)\n    {\n        foreach (var (transform, entity) in\n            SystemAPI.Query\u003CRefRW\u003CLocalTransform>>()\n                     .WithAll\u003CRepositionNeeded>()\n                     .WithEntityAccess())\n        {\n            \u002F\u002F handle repositioning\n            DoReposition(ref transform.ValueRW);\n\n            \u002F\u002F MUST clear signal — consumer owns signal clearing:\n            SystemAPI.SetComponentEnabled\u003CRepositionNeeded>(entity, false);\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Consumer forgetting to disable signal after handling — signal remains enabled and fires every frame indefinitely.\n- Missing [UpdateAfter(typeof(ProducerSystem))] on consumer — consumer runs before signal is set; reacts to last frame's signal one frame late.\n- Multiple consumers reacting without coordination — both process it; neither clears it correctly; both fire every frame.\n- Using a tag component (structural AddComponent) instead of an enableable signal for frequent signals — structural add\u002Fremove is 10-100x more expensive.\n- Using for multi-count signals (\"3 enemies entered this frame\") — single bit cannot represent count; use DynamicBuffer\u003CEnemyEnteredEvent>.\n\n## Runtime Risks\n- Signal persists until consumer explicitly clears it — if consumer system is disabled or its RequireForUpdate gate closes, signal accumulates indefinitely.\n- Signal bit set by multiple producers in the same frame: last SetComponentEnabled call wins (OR semantics not guaranteed) — document single-producer ownership.\n\n## Performance Notes\n- Zero struct memory — zero-field IComponentData adds no data cost per entity.\n- Single bit in chunk bitmask — producer enable and consumer disable are both O(1).\n- No ECB overhead; no DynamicBuffer allocation; no buffer resize.\n\n## Architecture Guidance\n- Consumer owns signal clearing — document this ownership explicitly in code comments.\n- Enforce ordering with [UpdateAfter(typeof(ProducerSystem))].\n- For multiple consumers that must all see the signal: last consumer clears; use a counter component if ordering matters.\n- Alternative: if signal carries data, replace with IComponentData field + IEnableableComponent on same struct.\n\n## Related Skills\n[[enableable-component]], [[wave6-enabled-ref-rw-in-job]], [[wave6-entity-manager-set-component-enabled]], [[wave6-ecs-state-machine-design]], [[tag-component]]\n","# Zero-Data Enableable Signal — Inter-System Signaling\n\n## Intent\nUse a zero-field IEnableableComponent as a single-bit signal between producer and consumer systems, avoiding event queues and DynamicBuffer cleanup overhead.\n\n## Use When\n- One system signals another that a condition occurred (repositioning needed, UI dirty, AI alert)\n- Signal is boolean (happened \u002F not happened) and carries no data payload\n- Producer and consumer are on different systems with defined execution order\n\n## Avoid When\n- Signal must carry a data payload — use a separate IComponentData field or DynamicBuffer element\n- Multiple independent signals of same type can occur in the same frame — a single bit cannot distinguish count; use DynamicBuffer for counted\u002Fmulti-signal\n- Multiple producers write to the same entity's signal — last write wins; use DynamicBuffer for multi-producer scenarios\n\n## Senior Pattern\n```csharp\n\u002F\u002F Zero-size signal component:\npublic struct RepositionNeeded : IComponentData, IEnableableComponent { }\n\n\u002F\u002F Baker: add signal component (starts disabled):\npublic override void Bake(TeamAuthoring authoring)\n{\n    var entity = GetEntity(TransformUsageFlags.None);\n    AddComponent\u003CRepositionNeeded>(entity);\n    SetComponentEnabled\u003CRepositionNeeded>(entity, false);\n}\n\n\u002F\u002F Producer system — sets signal:\n[UpdateInGroup(typeof(SimulationSystemGroup))]\n[BurstCompile]\npublic partial struct TeamEventSystem : ISystem\n{\n    [BurstCompile]\n    public void OnUpdate(ref SystemState state)\n    {\n        foreach (var (teamData, entity) in\n            SystemAPI.Query\u003CRefRO\u003CTeamData>>().WithEntityAccess())\n        {\n            if (teamData.ValueRO.NeedsReposition)\n                SystemAPI.SetComponentEnabled\u003CRepositionNeeded>(entity, true);\n        }\n    }\n}\n\n\u002F\u002F Consumer system — reacts and MUST clear signal:\n[UpdateInGroup(typeof(SimulationSystemGroup))]\n[UpdateAfter(typeof(TeamEventSystem))]\n[BurstCompile]\npublic partial struct RepositionSystem : ISystem\n{\n    [BurstCompile]\n    public void OnUpdate(ref SystemState state)\n    {\n        foreach (var (transform, entity) in\n            SystemAPI.Query\u003CRefRW\u003CLocalTransform>>()\n                     .WithAll\u003CRepositionNeeded>()\n                     .WithEntityAccess())\n        {\n            \u002F\u002F handle repositioning\n            DoReposition(ref transform.ValueRW);\n\n            \u002F\u002F MUST clear signal — consumer owns signal clearing:\n            SystemAPI.SetComponentEnabled\u003CRepositionNeeded>(entity, false);\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Consumer forgetting to disable signal after handling — signal remains enabled and fires every frame indefinitely.\n- Missing [UpdateAfter(typeof(ProducerSystem))] on consumer — consumer runs before signal is set; reacts to last frame's signal one frame late.\n- Multiple consumers reacting without coordination — both process it; neither clears it correctly; both fire every frame.\n- Using a tag component (structural AddComponent) instead of an enableable signal for frequent signals — structural add\u002Fremove is 10-100x more expensive.\n- Using for multi-count signals (\"3 enemies entered this frame\") — single bit cannot represent count; use DynamicBuffer\u003CEnemyEnteredEvent>.\n\n## Runtime Risks\n- Signal persists until consumer explicitly clears it — if consumer system is disabled or its RequireForUpdate gate closes, signal accumulates indefinitely.\n- Signal bit set by multiple producers in the same frame: last SetComponentEnabled call wins (OR semantics not guaranteed) — document single-producer ownership.\n\n## Performance Notes\n- Zero struct memory — zero-field IComponentData adds no data cost per entity.\n- Single bit in chunk bitmask — producer enable and consumer disable are both O(1).\n- No ECB overhead; no DynamicBuffer allocation; no buffer resize.\n\n## Architecture Guidance\n- Consumer owns signal clearing — document this ownership explicitly in code comments.\n- Enforce ordering with [UpdateAfter(typeof(ProducerSystem))].\n- For multiple consumers that must all see the signal: last consumer clears; use a counter component if ordering matters.\n- Alternative: if signal carries data, replace with IComponentData field + IEnableableComponent on same struct.\n\n## Related Skills\n[[enableable-component]], [[wave6-enabled-ref-rw-in-job]], [[wave6-entity-manager-set-component-enabled]], [[wave6-ecs-state-machine-design]], [[tag-component]]\n",{"name":5,"tags":38,"metadata":39,"description":7},[21,23],{"tier":40,"internal-only":41},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fwave6-zero-data-enableable-signal",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":51,"prompt":61,"zipAvailable":41},[52,55,58],{"tool":53,"command":54},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill wave6-zero-data-enableable-signal",{"tool":56,"command":57},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill wave6-zero-data-enableable-signal",{"tool":59,"command":60},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill wave6-zero-data-enableable-signal","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave6-zero-data-enableable-signal\u002FSKILL.md",[],[64,88,111,130,150,170],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":33},"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",[],[71,72,73,74,75,76,77,78,25,79,80,81,82,83,84,85,86,87],"update","dots update groups","boundary","simulation","how","system","choose","work","never","peer","deterministic","how to","coupling","ecs","bugs","frame","value",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":33},"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",[],[95,96,97,98,73,76,99,100,25,101,102,26,103,104,105,106,107,108,109,110],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","input","with","matrix","socket","at","child","custom","hierarchy",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":33},"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",[],[95,118,119,120,121,122,123,76,100,25,124,125,126,102,127,27,104,86,128,129],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","ecb","gating",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":33},"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",[],[137,138,139,140,98,122,73,141,142,78,143,144,25,102,145,146,103,147,148,149],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","for","managed",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":33},"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",[],[157,158,84,29,159,98,160,161,162,100,78,163,164,95,165,166,103,167,168,169],"event driven","driven","dots event driven ecs","change","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":33},"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",[],[177,178,179,180,181,182,183,184,185,186,187,188,189,190,146,191,148],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]