[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KG6GW9KX0TZP9NQ6MD7HG6":3,"skill-same:01M6KG6GW9KX0TZP9NQ6MD7HG6":67},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":66},"01M6KG6GW9KX0TZP9NQ6MD7HG6","ijobchunk-chunk-job",null,"Process entities at the chunk level for maximum control — chunk-level change filtering, enable mask handling, direct pointer access, and explicit sort key management.","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\u002Fijobchunk-chunk-job\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"ijobchunk chunk job","chunk","control","chunks","for","at","true","sort","mask","key management","change","jobs","process","filtering","management","direct","access","core","2026-11-10 10:12:30",false,"﻿---\nname: ijobchunk-chunk-job\ndescription: Process entities at the chunk level for maximum control — chunk-level change filtering, enable mask handling, direct pointer access, and explicit sort key management.\ntags: [core, jobs, chunks]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# IJobChunk — Chunk-Level Job\n\n## Intent\nProcess entities at the chunk level for maximum control — chunk-level change filtering, enable mask handling, direct pointer access, and explicit sort key management.\n\n## Use When\nChange filtering via chunk.DidChange() is required. Enable mask must be processed explicitly. Direct unsafe pointer access is needed for maximum throughput. Chunk index is required for ECB.ParallelWriter.\n\n## Avoid When\nIJobEntity provides sufficient control — IJobChunk adds significant boilerplate. Use IJobEntity for the common case; reserve IJobChunk for performance-critical or control-critical paths.\n\n## Senior Pattern\n- Implement `IJobChunk` on an unmanaged struct.\n- Acquire type handles in OnCreate or OnUpdate via `SystemAPI.GetComponentTypeHandle\u003CT>`.\n- Update type handles each frame (they are version-stamped; stale handles cause wrong data).\n- Pass the query explicitly to `job.ScheduleParallel(query, state.Dependency)`.\n- Use `chunk.DidChange(ref typeHandle, lastSystemVersion)` for change-filtered paths.\n- Chain result into `state.Dependency`.\n\n## Code Template\n```csharp\n[BurstCompile]\nstruct TransformUpdateJob : IJobChunk\n{\n    public ComponentTypeHandle\u003CLocalTransform> TransformHandle;\n    [ReadOnly] public ComponentTypeHandle\u003CVelocity> VelocityHandle;\n    public uint LastSystemVersion;\n    public float DeltaTime;\n\n    public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex,\n        bool useEnabledMask, in v128 chunkEnabledMask)\n    {\n        if (!chunk.DidChange(ref VelocityHandle, LastSystemVersion))\n            return;\n\n        var transforms = chunk.GetNativeArray(ref TransformHandle);\n        var velocities = chunk.GetNativeArray(ref VelocityHandle);\n        for (int i = 0; i \u003C chunk.Count; i++)\n        {\n            var t = transforms[i];\n            t.Position += velocities[i].Value * DeltaTime;\n            transforms[i] = t;\n        }\n    }\n}\n\n[BurstCompile]\npublic void OnUpdate(ref SystemState state)\n{\n    state.Dependency = new TransformUpdateJob\n    {\n        TransformHandle = SystemAPI.GetComponentTypeHandle\u003CLocalTransform>(),\n        VelocityHandle  = SystemAPI.GetComponentTypeHandle\u003CVelocity>(true),\n        LastSystemVersion = state.LastSystemVersion,\n        DeltaTime = SystemAPI.Time.DeltaTime\n    }.ScheduleParallel(m_Query, state.Dependency);\n}\n```\n\n## Anti-Patterns\n- Caching type handles across frames without refreshing — handle version mismatch, reads wrong chunk data.\n- Not passing state.Dependency to Schedule — race condition.\n- Using IJobChunk where IJobEntity would suffice — unnecessary boilerplate.\n- Accessing chunk data without checking useEnabledMask when entities may be disabled.\n\n## Runtime Risks\n- Stale type handle: silent wrong data or access violation.\n- Missing dependency chain: data race.\n- Ignoring chunkEnabledMask when IEnableableComponent is in use: processing disabled entities.\n\n## Performance Notes\n- Direct pointer via `chunk.GetRequiredComponentDataPtrRO\u002FRW` is the fastest possible access — avoids NativeArray bounds checks.\n- chunk.DidChange() enables skipping unchanged chunks entirely — major win for sparse-update scenarios.\n- Pair with chunk.Count for manual SIMD if needed.\n\n## Architecture Guidance\nIJobChunk is the performance ceiling. Use it deliberately for transform pipelines, rendering integration, and high-throughput physics. Document why IJobEntity was insufficient.\n","# IJobChunk — Chunk-Level Job\n\n## Intent\nProcess entities at the chunk level for maximum control — chunk-level change filtering, enable mask handling, direct pointer access, and explicit sort key management.\n\n## Use When\nChange filtering via chunk.DidChange() is required. Enable mask must be processed explicitly. Direct unsafe pointer access is needed for maximum throughput. Chunk index is required for ECB.ParallelWriter.\n\n## Avoid When\nIJobEntity provides sufficient control — IJobChunk adds significant boilerplate. Use IJobEntity for the common case; reserve IJobChunk for performance-critical or control-critical paths.\n\n## Senior Pattern\n- Implement `IJobChunk` on an unmanaged struct.\n- Acquire type handles in OnCreate or OnUpdate via `SystemAPI.GetComponentTypeHandle\u003CT>`.\n- Update type handles each frame (they are version-stamped; stale handles cause wrong data).\n- Pass the query explicitly to `job.ScheduleParallel(query, state.Dependency)`.\n- Use `chunk.DidChange(ref typeHandle, lastSystemVersion)` for change-filtered paths.\n- Chain result into `state.Dependency`.\n\n## Code Template\n```csharp\n[BurstCompile]\nstruct TransformUpdateJob : IJobChunk\n{\n    public ComponentTypeHandle\u003CLocalTransform> TransformHandle;\n    [ReadOnly] public ComponentTypeHandle\u003CVelocity> VelocityHandle;\n    public uint LastSystemVersion;\n    public float DeltaTime;\n\n    public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex,\n        bool useEnabledMask, in v128 chunkEnabledMask)\n    {\n        if (!chunk.DidChange(ref VelocityHandle, LastSystemVersion))\n            return;\n\n        var transforms = chunk.GetNativeArray(ref TransformHandle);\n        var velocities = chunk.GetNativeArray(ref VelocityHandle);\n        for (int i = 0; i \u003C chunk.Count; i++)\n        {\n            var t = transforms[i];\n            t.Position += velocities[i].Value * DeltaTime;\n            transforms[i] = t;\n        }\n    }\n}\n\n[BurstCompile]\npublic void OnUpdate(ref SystemState state)\n{\n    state.Dependency = new TransformUpdateJob\n    {\n        TransformHandle = SystemAPI.GetComponentTypeHandle\u003CLocalTransform>(),\n        VelocityHandle  = SystemAPI.GetComponentTypeHandle\u003CVelocity>(true),\n        LastSystemVersion = state.LastSystemVersion,\n        DeltaTime = SystemAPI.Time.DeltaTime\n    }.ScheduleParallel(m_Query, state.Dependency);\n}\n```\n\n## Anti-Patterns\n- Caching type handles across frames without refreshing — handle version mismatch, reads wrong chunk data.\n- Not passing state.Dependency to Schedule — race condition.\n- Using IJobChunk where IJobEntity would suffice — unnecessary boilerplate.\n- Accessing chunk data without checking useEnabledMask when entities may be disabled.\n\n## Runtime Risks\n- Stale type handle: silent wrong data or access violation.\n- Missing dependency chain: data race.\n- Ignoring chunkEnabledMask when IEnableableComponent is in use: processing disabled entities.\n\n## Performance Notes\n- Direct pointer via `chunk.GetRequiredComponentDataPtrRO\u002FRW` is the fastest possible access — avoids NativeArray bounds checks.\n- chunk.DidChange() enables skipping unchanged chunks entirely — major win for sparse-update scenarios.\n- Pair with chunk.Count for manual SIMD if needed.\n\n## Architecture Guidance\nIJobChunk is the performance ceiling. Use it deliberately for transform pipelines, rendering integration, and high-throughput physics. Document why IJobEntity was insufficient.\n",{"name":5,"tags":42,"metadata":43,"description":7},[36,30,22],{"tier":44,"internal-only":45},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fijobchunk-chunk-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":55,"prompt":65,"zipAvailable":45},[56,59,62],{"tool":57,"command":58},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill ijobchunk-chunk-job",{"tool":60,"command":61},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill ijobchunk-chunk-job",{"tool":63,"command":64},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill ijobchunk-chunk-job","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fijobchunk-chunk-job\u002FSKILL.md",[],[68,93,116,136,155,175],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":37},"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",[],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","ecs","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":37},"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,103,77,80,104,105,83,106,107,108,109,110,111,112,24,113,114,115],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","systems","input","with","matrix","socket","child","custom","hierarchy",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":37},"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,123,124,125,126,127,128,80,105,83,129,130,131,107,132,133,110,91,134,135],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","as","ecb","gating",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":37},"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",[],[143,144,145,146,103,127,77,147,148,82,149,150,83,107,151,152,109,153,23,154],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","managed",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":37},"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",[],[162,163,89,164,165,103,29,166,167,105,82,168,169,100,170,171,109,172,173,174],"event driven","driven","event","dots event driven ecs","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":37},"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",[],[182,183,184,185,186,187,188,189,190,191,192,193,194,195,152,196,23],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]