/yogurt:yogurt-unityfrom yogurt
Provides Yogurt.Unity glue code for Unity games: passive MonoBehaviour views, button awaiting via jobs, Link/Despawn lifecycle, Asset/PooledAsset prefab references, ScriptableObject configs, boot, Wait, Run, and folder layout conventions.
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.
Yogurt.Unity (namespace Yogurt.Unity, add using Yogurt.Unity;): Wait, Run, Link, EntityLink, GetEntity, Asset<T>, PooledAsset<T>, Despawn, IBlueprint, EntityBlueprint, PopulateFrom.
A view is a passive MonoBehaviour component of its entity. A job passes it the object's aspect; the view reads what it shows. One Show(aspect) beats several setters that callers must call in the right order.
public class AgentView : MonoBehaviour, IComponent
{
[SerializeField] private TMP_Text health;
public Button Select; // controls are public for jobs to await
public void Show(AgentAspect agent)
{
transform.localPosition = (Vector2)agent.Position.Value;
health.text = agent.Health.Value.ToString();
}
public async UniTask PlayMove(Vector2Int cell) { /* tween to cell */ }
}
A view never runs queries or jobs, never changes components, never stores an aspect or entity, and has no game logic in Update/Start/Awake. The job that changes data calls View.Show(...) afterwards.
Jobs await controls, bound to a Life. No onClick.AddListener, no C# events, no view calling a job.
await level.View.Quit.OnClickAsync(level.Life());
int i = await UniTask.WhenAny(menu.View.Play.OnClickAsync(menu.Life()), menu.View.Exit.OnClickAsync(menu.Life()));
await zombie.Agent.View.GetAsyncPointerClickTrigger().OnPointerClickAsync(zombie.Life()); // Cysharp.Threading.Tasks.Triggers; needs EventSystem + Physics(2D)Raycaster
AgentView view = await config.Zombie.Spawn(level.View.Board);
ZombieAspect zombie = Entity.Create().Link(view.gameObject).Add(view).Add(new Zombie()).SetParent(level.Entity).As<ZombieAspect>();
Entity hit = collider.GetEntity(); // Entity.Null if not linked
A linked GameObject despawns when its entity dies: kill the entity, never Destroy it. view.Despawn() only for unlinked objects such as effects (returns pooled objects to the pool, destroys the rest).
Asset<T> is a prefab reference (T on the prefab root). PooledAsset<T> reuses despawned instances: use it for frequent objects, Asset<T> for rare ones. Spawn(parent) takes at least a frame. A pooled view keeps old state, so Show it after spawning.
[CreateAssetMenu]
public class LevelConfig : ScriptableObject, IComponent
{
public int Zombies = 3;
public Asset<LevelView> Level;
public PooledAsset<AgentView> Zombie;
}
Entity.Create().Add(new Game()).Add(Resources.Load<LevelConfig>("Configs/LevelConfig")); // in CreateGameJob
LevelConfig config = Query.Single<LevelConfig>(); // in any job
Many configs of one kind implement IBlueprint.Populate(Entity); Entity.Create().PopulateFrom(config). EntityBlueprint keeps the blueprint on the entity.
public class Boot : MonoBehaviour
{
private void Awake() { new RunGameJob().Run(); }
}
No fields, no parameters: the game must start from an empty boot.
Wait.Until/While(condition, life), Wait.Seconds(s, life) (scaled time), Wait.Update(). Without a Life a wait ends on application quit. entity.Run(step) calls the step every frame while the entity lives; see yogurt-jobs and yogurt-life.
Assets/
├── Game.unity one GameObject with Boot
├── Resources/Configs, Resources/Prefabs
└── Scripts/
├── Boot.cs, GlobalUsings.cs
└── Entities/<Object>/ jobs of the object
└── Components/ its aspect, components, view, config
One type per file. One namespace for the game, not under Yogurt: inside Yogurt.X, a Unity.* name such as Unity.Mathematics resolves to Yogurt.Unity.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unity, yogurt-ecs, monobehaviour, prefab, scriptableobject, game-development
npx claudepluginhub hoodrij/yogurt --plugin yogurt6 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-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.Other plugins' skills for the same job