/yogurt:yogurtfrom yogurt
Guides usage of Yogurt, an entity-component framework for Unity. Covers core API, pillars (aspects, jobs, lifecycle), and common pitfalls for indie game development.
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.
None: SKILL.md is the whole skill.
Target: indie games. In game code, readable beats fast. Needs C# 11 (yogurt-setup).
Run) do all work and own the objects and processes they start. Objects only hold data. See yogurt-jobs.yogurt-entity.yogurt-life.Views, assets, boot, waits: yogurt-unity.
Entity only where any object fits. Never a component as a parameter.ref aspect property or ref entity.Get<T>()), never through a copy.Query.Single only for a component that exists on exactly one entity.Destroy a linked GameObject.async void, no Task, no while (true). .Forget() only where a Life stops the work.yogurt-entity).Entity e = Entity.Create();
e.Add(new Health { Value = 10 }); // new component; YOGURT_DEBUG logs if it exists
e.Set(new Health { Value = 10 }); // add or replace
ref Health h = ref e.Get<Health>();
bool has = e.Has<Health>();
e.Remove<Health>(); // removing the last component kills the entity
e.Kill(); // also kills children
bool alive = e.Exist;
e.TryGet(out AgentView view); // class components only
ZombieAspect zombie = Entity.Create() // Add, Set, SetParent return the entity
.Add(new Zombie())
.Add(new Position { Value = cell })
.SetParent(level.Entity)
.As<ZombieAspect>();
public record struct AgentAspect(Entity Entity) : IAspect
{
public ref Health Health => ref this.Get<Health>(); // struct component: ref
public AgentView View => this.Get<AgentView>(); // class component
}
// generated on aspects: Get, Has, Add, Set, Remove, As, TryGet; AspectEx: Exist(), Kill(), Life(), SetParent
foreach (ZombieAspect z in Query.Of<ZombieAspect>().Without<Stunned>()) { }
foreach (Entity x in Query.Of<Position>().With<Food>()) { }
int n = Query.Of<ZombieAspect>().Count(); // also Any, None, First, AsEnumerable
PlayerAspect player = Query.Single<PlayerAspect>();
ref Progress progress = ref Query.Single<Progress>();
Life life = zombie.Life(); // dies with the entity; see yogurt-life
Yogurt.Debug.Entities lists all entities. YOGURT_DEBUG define adds error logs for wrong use.
ref locals are illegal in async methods. Change struct data through aspect properties there; an aspect stays valid across await.Single returns the first match, or an aspect of Entity.Null when none. Check Exist() if absent is possible.Query.Single of it finds several.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hoodrij/yogurt --plugin yogurt6 skills in this plugin
/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-jobsWrites Yogurt jobs with process thinking: one struct per complete process that owns what it starts. Use when writing or changing any `*Job`, adding a game rule, splitting logic, or building the game flow./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.Other plugins' skills for the same job