[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGD9J09KP1NV23VW855P2E":3,"skill-same:01M6KGD9J09KP1NV23VW855P2E":61},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":60},"01M6KGD9J09KP1NV23VW855P2E","wave6-enabled-ref-rw-in-job",null,"Read and write the enabled bit of an IEnableableComponent directly inside IJobEntity.Execute() or SystemAPI.Query foreach using EnabledRefRW\u003CT>, avoiding ECB overhead and one-frame delay.","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-enabled-ref-rw-in-job\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"wave6 enabled ref rw in job","read","write","execute","jobs","query","bit","true","frame","overhead","ecb","enableable","2026-11-10 10:12:30",false,"﻿---\nname: wave6-enabled-ref-rw-in-job\ndescription: Read and write the enabled bit of an IEnableableComponent directly inside IJobEntity.Execute() or SystemAPI.Query foreach using EnabledRefRW\u003CT>, avoiding ECB overhead and one-frame delay.\ntags: [enableable, jobs]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# EnabledRefRW in Jobs — Inline Bit Toggle\n\n## Intent\nRead and write the enabled bit of an IEnableableComponent directly inside IJobEntity.Execute() or SystemAPI.Query foreach using EnabledRefRW\u003CT>, avoiding ECB overhead and one-frame delay.\n\n## Use When\n- Enable\u002Fdisable decision depends on component data computed inside a job (proximity culling, LOD activation, range-based behavior)\n- Bulk enable\u002Fdisable in one pass without ECB one-frame delay\n- Toggle must happen in same frame without deferred playback cost\n\n## Avoid When\n- Enable\u002Fdisable targets a different entity than the one being iterated — use ECB.SetComponentEnabled\n- Only reading enabled state (not writing) — use EnabledRefRO\u003CT>\n\n## Senior Pattern\n```csharp\n\u002F\u002F Main-thread foreach — toggle ALL entities (enabled AND disabled):\nforeach (var (posRO, flagEnabled) in\n    SystemAPI.Query\u003CRefRO\u003CLocalTransform>, EnabledRefRW\u003CActiveBehavior>>()\n             .WithOptions(EntityQueryOptions.IgnoreComponentEnabledState))\n{\n    flagEnabled.ValueRW = math.distancesq(posRO.ValueRO.Position, origin) \u003C= radiusSq;\n}\n\n\u002F\u002F IJobEntity (parallel) — same IgnoreComponentEnabledState requirement:\n[BurstCompile]\n[WithOptions(EntityQueryOptions.IgnoreComponentEnabledState)]\npublic partial struct ToggleInRangeJob : IJobEntity\n{\n    public float3 Origin;\n    public float RadiusSq;\n\n    [BurstCompile]\n    public void Execute(in LocalTransform t, EnabledRefRW\u003CActiveBehavior> enabled)\n    {\n        enabled.ValueRW = math.distancesq(t.Position, Origin) \u003C= RadiusSq;\n    }\n}\n\n\u002F\u002F Schedule:\nstate.Dependency = new ToggleInRangeJob\n{\n    Origin = origin,\n    RadiusSq = radius * radius\n}.ScheduleParallel(state.Dependency);\n```\n\n## Anti-Patterns\n- Using EnabledRefRW\u003CT> without IgnoreComponentEnabledState when intending to process all entities — default query only returns enabled entities; disabled are silently skipped, enabling them is impossible.\n- Writing enabledRef.ValueRW from two parallel workers on the same entity — IJobEntity is safe (each chunk dispatched once); manual parallel splits are not.\n- Using ECB.SetComponentEnabled when EnabledRefRW is available in the same job — ECB adds one-frame delay and playback cost unnecessarily.\n\n## Runtime Risks\n- EnabledRefRW writes are visible immediately within the same job but not to parallel jobs already in flight on the same chunk — IJobEntity guarantees disjoint chunk access so this is safe.\n- Mixing EnabledRefRW and ECB.SetComponentEnabled for the same component in the same frame produces ordering ambiguity.\n\n## Performance Notes\n- Single bit write per entity; no archetype migration; no ECB playback.\n- Optimal for bulk proximity-based culling — entire operation is one pass with no structural change cost.\n- Burst-compiled toggle loop over 10,000 entities is effectively free compared to structural AddComponent\u002FRemoveComponent equivalent.\n\n## Architecture Guidance\n- Build query with IgnoreComponentEnabledState in OnCreate and cache it; pass explicitly to ScheduleParallel.\n- For cross-entity toggles (entity A decides to enable entity B), use ECB.SetComponentEnabled — EnabledRefRW only works on the entity being executed.\n- Producer\u002Fconsumer pattern: producer writes EnabledRefRW; consumer queries WithAll\u003CT> in [UpdateAfter] — no ECB needed.\n\n## Related Skills\n[[enableable-component]], [[wave6-ecb-set-component-enabled]], [[wave6-with-disabled-query-filter]], [[wave6-zero-data-enableable-signal]]\n","# EnabledRefRW in Jobs — Inline Bit Toggle\n\n## Intent\nRead and write the enabled bit of an IEnableableComponent directly inside IJobEntity.Execute() or SystemAPI.Query foreach using EnabledRefRW\u003CT>, avoiding ECB overhead and one-frame delay.\n\n## Use When\n- Enable\u002Fdisable decision depends on component data computed inside a job (proximity culling, LOD activation, range-based behavior)\n- Bulk enable\u002Fdisable in one pass without ECB one-frame delay\n- Toggle must happen in same frame without deferred playback cost\n\n## Avoid When\n- Enable\u002Fdisable targets a different entity than the one being iterated — use ECB.SetComponentEnabled\n- Only reading enabled state (not writing) — use EnabledRefRO\u003CT>\n\n## Senior Pattern\n```csharp\n\u002F\u002F Main-thread foreach — toggle ALL entities (enabled AND disabled):\nforeach (var (posRO, flagEnabled) in\n    SystemAPI.Query\u003CRefRO\u003CLocalTransform>, EnabledRefRW\u003CActiveBehavior>>()\n             .WithOptions(EntityQueryOptions.IgnoreComponentEnabledState))\n{\n    flagEnabled.ValueRW = math.distancesq(posRO.ValueRO.Position, origin) \u003C= radiusSq;\n}\n\n\u002F\u002F IJobEntity (parallel) — same IgnoreComponentEnabledState requirement:\n[BurstCompile]\n[WithOptions(EntityQueryOptions.IgnoreComponentEnabledState)]\npublic partial struct ToggleInRangeJob : IJobEntity\n{\n    public float3 Origin;\n    public float RadiusSq;\n\n    [BurstCompile]\n    public void Execute(in LocalTransform t, EnabledRefRW\u003CActiveBehavior> enabled)\n    {\n        enabled.ValueRW = math.distancesq(t.Position, Origin) \u003C= RadiusSq;\n    }\n}\n\n\u002F\u002F Schedule:\nstate.Dependency = new ToggleInRangeJob\n{\n    Origin = origin,\n    RadiusSq = radius * radius\n}.ScheduleParallel(state.Dependency);\n```\n\n## Anti-Patterns\n- Using EnabledRefRW\u003CT> without IgnoreComponentEnabledState when intending to process all entities — default query only returns enabled entities; disabled are silently skipped, enabling them is impossible.\n- Writing enabledRef.ValueRW from two parallel workers on the same entity — IJobEntity is safe (each chunk dispatched once); manual parallel splits are not.\n- Using ECB.SetComponentEnabled when EnabledRefRW is available in the same job — ECB adds one-frame delay and playback cost unnecessarily.\n\n## Runtime Risks\n- EnabledRefRW writes are visible immediately within the same job but not to parallel jobs already in flight on the same chunk — IJobEntity guarantees disjoint chunk access so this is safe.\n- Mixing EnabledRefRW and ECB.SetComponentEnabled for the same component in the same frame produces ordering ambiguity.\n\n## Performance Notes\n- Single bit write per entity; no archetype migration; no ECB playback.\n- Optimal for bulk proximity-based culling — entire operation is one pass with no structural change cost.\n- Burst-compiled toggle loop over 10,000 entities is effectively free compared to structural AddComponent\u002FRemoveComponent equivalent.\n\n## Architecture Guidance\n- Build query with IgnoreComponentEnabledState in OnCreate and cache it; pass explicitly to ScheduleParallel.\n- For cross-entity toggles (entity A decides to enable entity B), use ECB.SetComponentEnabled — EnabledRefRW only works on the entity being executed.\n- Producer\u002Fconsumer pattern: producer writes EnabledRefRW; consumer queries WithAll\u003CT> in [UpdateAfter] — no ECB needed.\n\n## Related Skills\n[[enableable-component]], [[wave6-ecb-set-component-enabled]], [[wave6-with-disabled-query-filter]], [[wave6-zero-data-enableable-signal]]\n",{"name":5,"tags":36,"metadata":37,"description":7},[30,23],{"tier":38,"internal-only":39},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fwave6-enabled-ref-rw-in-job",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":49,"prompt":59,"zipAvailable":39},[50,53,56],{"tool":51,"command":52},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill wave6-enabled-ref-rw-in-job",{"tool":54,"command":55},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill wave6-enabled-ref-rw-in-job",{"tool":57,"command":58},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill wave6-enabled-ref-rw-in-job","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave6-enabled-ref-rw-in-job\u002FSKILL.md",[],[62,86,110,129,148,169],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":31},"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",[],[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,27,85],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","ecs","bugs","value",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":31},"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",[],[93,94,95,96,71,74,97,98,77,99,100,101,102,103,104,105,106,107,108,109],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","systems","input","with","matrix","socket","at","child","custom","hierarchy",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":31},"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",[],[93,117,118,119,120,121,122,74,98,77,123,124,125,100,126,127,103,27,29,128],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","as","gating",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":31},"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",[],[136,137,138,139,96,121,71,140,141,76,20,142,77,100,143,144,102,145,146,147],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","view","trigger","unity","material","for","managed",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":31},"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",[],[155,156,83,157,158,96,159,160,161,98,76,162,163,93,164,165,102,166,167,168],"event driven","driven","event","dots event driven ecs","change","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":31},"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",[],[176,177,178,179,180,181,182,183,184,185,186,187,188,189,144,190,146],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]