ecs-job-patterns

Community

Schedule safe ECS jobs with correct dependencies.

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.Dependency before scheduling, writes the resulting JobHandle back to state.Dependency, and avoids unsafe .Complete() calls inside OnUpdate.
  • Structural changes via ECB: Performs AddComponent/RemoveComponent/entity creation-destruction using EntityCommandBuffer.ParallelWriter rather than calling EntityManager from jobs, with correct playback group selection.
  • Correct component access patterns: Uses ComponentLookup<T> for random component access in jobs (including updating it each OnUpdate), and uses SystemAPI.Query / SystemAPI.GetSingleton for the appropriate access type.
  • Update-order guardrails: Flags architecture risk when changing UpdateBefore/UpdateAfter/UpdateInGroup without 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.