ecs-job-patterns
CommunitySchedule safe ECS jobs with correct dependencies.
Software Engineering#job-scheduling#entity-command-buffer#unity-dots#ecs-jobs#dependency-chains#iJobEntity#componentlookup
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
ecs-job-patterns helps prevent common DOTS/ECS threading and scheduling mistakes by standardizing how Unity jobs use dependencies, avoid sync points, and perform structural changes safely.
Core Features & Use Cases
- Job scheduling with dependency discipline: Reads
state.Dependencybefore scheduling, writes the resultingJobHandleback tostate.Dependency, and avoids unsafe.Complete()calls insideOnUpdate. - Structural changes via ECB: Performs
AddComponent/RemoveComponent/entity creation-destruction usingEntityCommandBuffer.ParallelWriterrather than callingEntityManagerfrom jobs, with correct playback group selection. - Correct component access patterns: Uses
ComponentLookup<T>for random component access in jobs (including updating it eachOnUpdate), and usesSystemAPI.Query/SystemAPI.GetSingletonfor the appropriate access type. - Update-order guardrails: Flags architecture risk when changing
UpdateBefore/UpdateAfter/UpdateInGroupwithout approved plan constraints.
Quick Start
Ask the agent to implement an ECS job that schedules from state.Dependency, uses EntityCommandBuffer.ParallelWriter for structural changes, and updates ComponentLookup at the start of OnUpdate.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ecs-job-patterns Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#ecs-job-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.