/yogurt:yogurt-jobsfrom yogurt
Guides writing Yogurt ECS jobs using process-oriented design: one struct per complete process that owns what it starts. Use when creating or modifying any *Job, adding game rules, or splitting game logic.
Ships in yogurt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
OOP puts objects at the center, and they grow into PlayerController, GameManager, DamageHandler, GridUtils. Yogurt puts the process at the center. A job is a process with a name, a start, an end and an owner:
Design a feature by asking "what happens, in which order, until when?", name each process with a verb, write it as a job, then pass it the main object and let it find the rest.
| OOP habit | Yogurt |
|---|---|
PlayerController.Update() | WaitForPlayerStepJob → MoveAgentJob |
HealthManager.Damage() | DamageAgentJob |
static GridUtils.IsFree() | IsCellFreeJob |
OnDeath event + handlers | the killing job calls the next job, or someone awaits agent.Life() |
| state machine | RunGameJob awaiting RunMenuJob, then RunLevelJob |
A process is made of smaller processes: cooking soup is boiling water, chopping carrots, adding them. Jobs form their own tree of processes. It does not mirror the entity tree: a process can own no entity, and an entity can have no process. A process stops when its owner job ends or its owner Life dies.
public struct EatFoodJob
{
public void Run(PlayerAspect player, FoodAspect food)
{
player.Agent.Health.Value += food.Food.Value;
player.Agent.View.Show(player.Agent);
food.Kill();
}
}
public struct, no fields, one public Run, one job per file, called as new EatFoodJob().Run(player, food).
Query.Single for singletons and configs, a tag query for "the current" object.Run reads like the game rules. Named game steps become jobs, small unnamed steps become local functions.void (instant change), a value (Get…Job, Is…Job, no side effects), UniTask (takes frames), UniTask<T> (takes frames, returns a result, e.g. Create…Job returns its aspect). Never async void, Task or UniTaskVoid.
No while (true): a loop always has an owner. owner.Run(step) calls the step every frame while the owner exists; an async step runs to its end before the next one starts.
public struct RunTurnsJob
{
public void Run(LevelAspect level)
{
level.Run(MakeNextTurn);
return;
async UniTask MakeNextTurn()
{
AgentAspect agent = new PassTurnJob().Run();
await new MakeTurnJob().Run(agent);
}
}
}
For real-time logic over many objects in a fixed order, one update job with level.Run(step) that loops a query is the Yogurt form of a system. Start such jobs in a fixed order in one place.
A wait on a game condition gets a name (job or local function), not a long inline lambda. Bind it to the Life of its owner (yogurt-life).
Vector2Int direction = default;
await Wait.Until(HasDirection, player.Life());
bool HasDirection()
{
direction = new GetInputDirectionJob().Run();
return direction != Vector2Int.zero;
}
Pick behavior from data and tags, not from jobs stored in components or interfaces per kind:
Vector2Int cell = agent.Has<Player>()
? await new WaitForPlayerStepJob().Run(agent.As<PlayerAspect>())
: new GetZombieStepJob().Run(agent.As<ZombieAspect>());
New job when a step has its own name in the game, is reused, or waits. Too big: name needs "And", Run exceeds a screen. Too small: only forwards to one job, or is named after the component it sets (SetHealthJob).
references/examples.md: roguelike jobs (create, pass turn, step, attack, damage, move, eat).references/meta-flow.md: menu → level → result → menu, phase entities and results.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
yogurt-ecs, process-oriented, game-architecture, job-pattern
6 skills in this plugin
/yogurtCore API, pillars and pitfalls of Yogurt, an entity-component framework for Unity. Use for any code with `using Yogurt`, `IComponent`, `IAspect`, `Query.Of`, `Entity.Create`, `Life` or `*Job` structs, and with the other yogurt-* skills./yogurt-entityDesigns Yogurt entities: aspects, components, tags, extensions, configs, owners and names. Use when adding a game object or writing or changing any IAspect or IComponent type./yogurt-lifeYogurt Life as the lifetime of a process: create, end, await, combine, parent, bind waits, scope, race, store process state. Use whenever code starts, stops, races or waits for a process, or touches Life, CancellationToken, `.Forget()` or `using` in Yogurt code./yogurt-setupSets up a Unity 6 project for Yogurt with C# 11 for Unity and the IDE. Use when a project starts to use Yogurt, when C# 10/11 syntax does not compile, or when the IDE shows C# 9 errors in Yogurt code./yogurt-unityYogurt.Unity glue: passive views, buttons awaited by jobs, Link/Despawn, Asset and PooledAsset, configs in Resources, boot, Wait, Run, folder layout. Use when writing any MonoBehaviour view, UI, input, prefab reference, ScriptableObject config or boot code in a Yogurt game.npx claudepluginhub hoodrij/yogurt --plugin yogurtOther plugins' skills for the same job