[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGAG8QJ5JXYCX27RBYM72W":3,"skill-same:01M6KGAG8QJ5JXYCX27RBYM72W":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},"01M6KGAG8QJ5JXYCX27RBYM72W","wave4-systembase-with-inner-ijobentity",null,"Use managed `SystemBase` class when the system itself requires managed resources, while delegating hot-path work to Burst-compiled inner IJobEntity structs.","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\u002Fwave4-systembase-with-inner-ijobentity\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"with","wave4 systembase with inner ijobentity","system","work","use","jobs","systems","resources","true","path","burst","managed","2026-11-10 10:12:30",false,"﻿---\nname: wave4-systembase-with-inner-ijobentity\ndescription: Use managed `SystemBase` class when the system itself requires managed resources, while delegating hot-path work to Burst-compiled inner IJobEntity structs.\ntags: [jobs, systems, managed]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# SystemBase with Inner IJobEntity\n\n## Intent\nUse managed `SystemBase` class when the system itself requires managed resources, while delegating hot-path work to Burst-compiled inner IJobEntity structs.\n\n## Use When\n- System must hold managed references (physics callbacks, coroutine coordinators, managed subscene access, interface references).\n- Multiple jobs per `OnUpdate` need to share implicit dependency chain.\n\n## Avoid When\nSystem has no managed needs — use `partial struct : ISystem` with `[BurstCompile]` on `OnUpdate` (lower overhead, Burst-compilable scheduling).\n\n## Senior Pattern\n```csharp\npublic partial class AnimationSystem : SystemBase\n{\n    [BurstCompile]\n    partial struct UpdateFrameJob : IJobEntity\n    {\n        public float DeltaTime;\n\n        [BurstCompile]\n        public void Execute(ref AnimationState anim, in AnimationClipRef clipRef)\n        {\n            anim.Time += DeltaTime;\n        }\n    }\n\n    [BurstCompile]\n    partial struct ApplyTransformJob : IJobEntity\n    {\n        [BurstCompile]\n        public void Execute(ref LocalTransform transform, in AnimationState anim)\n        {\n            \u002F\u002F apply animation state to transform\n        }\n    }\n\n    protected override void OnUpdate()\n    {\n        float dt = SystemAPI.Time.DeltaTime;\n        new UpdateFrameJob { DeltaTime = dt }.ScheduleParallel();\n        new ApplyTransformJob().ScheduleParallel();\n        \u002F\u002F SystemBase.Dependency auto-chains between sequential ScheduleParallel calls\n    }\n}\n```\n\n## Anti-Patterns\n- Marking `OnUpdate` with `[BurstCompile]` — `SystemBase.OnUpdate` is virtual managed; Burst cannot compile it.\n- Two inner jobs writing the same component without chaining — `SystemBase` auto-chains sequential `ScheduleParallel` calls within one `OnUpdate`, but manually completing `Dependency` between calls breaks the chain.\n- Preferring `SystemBase` for simplicity when no managed context is needed — adds virtual dispatch overhead every frame for no benefit.\n\n## Runtime Risks\n- Multiple `ScheduleParallel` calls on same system auto-chain via `Dependency` property; manually completing `Dependency` between calls breaks the chain.\n- `SystemBase` does not support `[BurstCompile]` on `OnUpdate`; only inner job structs can be Burst-compiled.\n\n## Performance Notes\n- `SystemBase` overhead: one virtual dispatch per frame + managed object GC root.\n- Inner IJobEntity jobs: identical performance to ISystem-hosted jobs when `[BurstCompile]` applied.\n- Prefer ISystem unless managed context is unavoidable.\n\n## Architecture Guidance\nUse `SystemBase` only as the outer shell; move all data processing into inner Burst-compiled jobs. If managed need can be resolved in `OnCreate`\u002F`OnDestroy` (event subscription), use ISystem and handle managed work separately.\n\n## Related Skills\n[[isystem-burst-compile]], [[ijobentity-advanced-patterns]], [[burst-compilation-contract]]\n","# SystemBase with Inner IJobEntity\n\n## Intent\nUse managed `SystemBase` class when the system itself requires managed resources, while delegating hot-path work to Burst-compiled inner IJobEntity structs.\n\n## Use When\n- System must hold managed references (physics callbacks, coroutine coordinators, managed subscene access, interface references).\n- Multiple jobs per `OnUpdate` need to share implicit dependency chain.\n\n## Avoid When\nSystem has no managed needs — use `partial struct : ISystem` with `[BurstCompile]` on `OnUpdate` (lower overhead, Burst-compilable scheduling).\n\n## Senior Pattern\n```csharp\npublic partial class AnimationSystem : SystemBase\n{\n    [BurstCompile]\n    partial struct UpdateFrameJob : IJobEntity\n    {\n        public float DeltaTime;\n\n        [BurstCompile]\n        public void Execute(ref AnimationState anim, in AnimationClipRef clipRef)\n        {\n            anim.Time += DeltaTime;\n        }\n    }\n\n    [BurstCompile]\n    partial struct ApplyTransformJob : IJobEntity\n    {\n        [BurstCompile]\n        public void Execute(ref LocalTransform transform, in AnimationState anim)\n        {\n            \u002F\u002F apply animation state to transform\n        }\n    }\n\n    protected override void OnUpdate()\n    {\n        float dt = SystemAPI.Time.DeltaTime;\n        new UpdateFrameJob { DeltaTime = dt }.ScheduleParallel();\n        new ApplyTransformJob().ScheduleParallel();\n        \u002F\u002F SystemBase.Dependency auto-chains between sequential ScheduleParallel calls\n    }\n}\n```\n\n## Anti-Patterns\n- Marking `OnUpdate` with `[BurstCompile]` — `SystemBase.OnUpdate` is virtual managed; Burst cannot compile it.\n- Two inner jobs writing the same component without chaining — `SystemBase` auto-chains sequential `ScheduleParallel` calls within one `OnUpdate`, but manually completing `Dependency` between calls breaks the chain.\n- Preferring `SystemBase` for simplicity when no managed context is needed — adds virtual dispatch overhead every frame for no benefit.\n\n## Runtime Risks\n- Multiple `ScheduleParallel` calls on same system auto-chain via `Dependency` property; manually completing `Dependency` between calls breaks the chain.\n- `SystemBase` does not support `[BurstCompile]` on `OnUpdate`; only inner job structs can be Burst-compiled.\n\n## Performance Notes\n- `SystemBase` overhead: one virtual dispatch per frame + managed object GC root.\n- Inner IJobEntity jobs: identical performance to ISystem-hosted jobs when `[BurstCompile]` applied.\n- Prefer ISystem unless managed context is unavoidable.\n\n## Architecture Guidance\nUse `SystemBase` only as the outer shell; move all data processing into inner Burst-compiled jobs. If managed need can be resolved in `OnCreate`\u002F`OnDestroy` (event subscription), use ISystem and handle managed work separately.\n\n## Related Skills\n[[isystem-burst-compile]], [[ijobentity-advanced-patterns]], [[burst-compilation-contract]]\n",{"name":5,"tags":36,"metadata":37,"description":7},[24,25,30],{"tier":38,"internal-only":39},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fwave4-systembase-with-inner-ijobentity",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 wave4-systembase-with-inner-ijobentity",{"tool":54,"command":55},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill wave4-systembase-with-inner-ijobentity",{"tool":57,"command":58},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill wave4-systembase-with-inner-ijobentity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave4-systembase-with-inner-ijobentity\u002FSKILL.md",[],[62,84,106,126,145,166],{"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,21,74,22,23,75,76,77,78,79,80,81,82,83],"update","dots update groups","boundary","simulation","how","choose","never","peer","deterministic","how to","coupling","ecs","bugs","frame","value",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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",[],[91,92,93,94,71,21,95,96,23,97,98,25,99,19,100,101,102,103,104,105],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","input","matrix","socket","at","child","custom","hierarchy",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[91,113,114,115,116,117,118,21,96,23,119,120,121,98,122,123,19,82,124,125],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","as","ecb","gating",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"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",[],[133,134,135,136,94,117,71,137,138,22,139,140,23,98,141,142,99,143,144,30],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","for",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"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",[],[152,153,80,154,155,94,156,157,158,96,22,159,160,91,161,162,99,163,164,165],"event driven","driven","event","dots event driven ecs","change","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"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",[],[173,174,175,176,177,178,179,180,181,182,183,184,185,186,142,187,144],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]