/yogurt:yogurt-entityfrom yogurt
Designs Yogurt ECS entities with aspects, components, tags, and extensions. Use when adding game objects or writing IAspect/IComponent types.
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.
Entities store components with data. They do nothing themselves; jobs (yogurt-jobs) do the work.
An aspect is the type of an entity: a set of components that a query guarantees to be present. Jobs take and return aspects, because a named type explains the code and its ref properties edit struct components in place, even across await.
public record struct AgentAspect(Entity Entity) : IAspect
{
public ref Team Team => ref this.Get<Team>();
public ref Health Health => ref this.Get<Health>();
public ref Position Position => ref this.Get<Position>();
public AgentView View => this.Get<AgentView>();
}
public record struct PlayerAspect(Entity Entity) : IAspect
{
public AgentAspect Agent => this.As<AgentAspect>();
public ref Player Player => ref this.Get<Player>();
}
record struct with Entity Entity in the primary constructor. this.Get<T>().ref property for struct components, plain property for class components.Entity tells nothing. Parameters, return values, locals and component fields that point to an object use its aspect. Use a plain Entity only where any object fits, for example a parent.public struct Target : IComponent { public AgentAspect Value; } // not Entity
public struct Health : IComponent { public int Value; }
public struct Position : IComponent { public Vector2Int Value; }
public struct Player : IComponent { } // tag
Value.bool field. "The current one" of many is a tag: Query.Of<AgentAspect>().With<TurnOwner>().Single().Components and aspects hold no logic. A small question about the data of one object, which many jobs ask, goes into an extension of its type. Do not copy the same local function into several jobs.
public static class TeamEx
{
public static bool IsEnemyOf(this in Team team, Team other) => team.Value != other.Value;
}
// or, with C# 14 extension blocks (they also allow properties and static members):
public static class TeamEx
{
extension(in Team team)
{
public bool IsEnemyOf(Team other) => team.Value != other.Value;
}
}
<Type>Ex for each extended type, as AspectEx and QueryEx in Yogurt.IsCellFreeJob needs the other agents on the grid, so it is a job.ScriptableObject + IComponent, assets in Assets/Resources/Configs, loaded by a job onto the game entity (yogurt-unity). One entity per config. Never changed at run time: copy changing values into components.
Each entity except the game entity has a parent (SetParent). Killing the parent kills its children and despawns their views. To end a level, kill the level entity.
Game
├── Menu
└── Level
└── Player, Zombie, Food, Exit
Game words only. Aspect <Object>Aspect, view <Object>View, config <Object>Config, components and tags are nouns or past participles (Health, Stunned), jobs are verb + object + Job. Extension classes are <Type>Ex. Never Manager, Service, Controller, Handler, Resolver, Provider, System, Helper, Util, Data, Base, Impl, Component. No single-implementation interfaces, no base classes for components or aspects.
What SKILL.md sets; muted values are Claude Code's defaults
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-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.npx claudepluginhub hoodrij/yogurt --plugin yogurtOther plugins' skills for the same job