unity-manage-work
Skill1 starsChanged 2 months agoMITView on GitHub
Run a Unity task or backlog end to end as a MANAGER: settle the base branch with the user, cut one branch, plan the order from a scene-and-prefab conflict map, delegate implementation to worker subagents that follow `unity-agent-worker`, route all editor-backed work through one shared editor agent, review what comes back, and close with a report and a draft PR file per task. Work happens in the user's own checkout — no worktree per worker — so writers run one at a time. You never write game code yourself. Nothing is ever pushed. Use when: "/unity-manage-work", "manage this Unity work", "here is a list of Unity tasks, get them done", "delegate these to agents", or the user hands over Unity work and wants it delivered, not investigated.
- Commits and pushes
In this repository12 other files it gives its agents.
- unity-agent-workerSkill
- unity-coding-habitsSkill
- unity-debug-runtimeSkill
- unity-file-structure-habitsSkill
- unity-legacy-migrationSkill
- unity-level-designSkill
- unity-multiplayer-habitsSkill
- unity-pixel-artSkill
- unity-review-changeSkill
- unity-scene-habitsSkill
- unity-skill-package-setupSkill
- unity-ui-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 18 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
implementation workers run strictly one at a time: Never spawn two writers.
- Distinctive: line 48
Nobody switches branches mid-session: Not you, not a worker. The branch is cut once in Step 0 and everything lands on it.
- Distinctive: line 52
One long-lived second checkout is fine: when the user wants their editor free: a viewer clone the user keeps open to watch progress, or a …
- Very specific: line 65
Ask with AskUserQuestion: the current branch (recommended), two or three plausible others by recency and naming, or Other.
- Distinctive: line 67
The working tree must be clean before you cut the branch: If it is dirty, show what is uncommitted and let the user decide.
- Very specific: line 69
Settle the editor: Check whether one has the project open.
- Distinctive: line 90
Pipeline available and no editor open: ask once whether the agents should work in the editor, so the user can watch, or headless in the …
- Distinctive: line 107
If the user gave explicit steps, keep their order and wording.
- Distinctive: line 115
If the project is unfamiliar, run one cheap scouting pass (read-only agents, in parallel) to get exact anchor files: where prefabs live, …
- Distinctive: line 153
A shared test scene is shared space: If several tasks add test areas to one sandbox scene, hand each its own region, the way the map hands …
- Distinctive: line 164
Plan a playtest: After the first end-to-end playable, plan one human playtest and a short "playtest fixes" task after it.
- Very specific: line 169
Run the branch scan from unity-scene-habits before planning, not after.
- Distinctive: line 203
Do not ask the user mid-session about naming, approach, scope edges or trade-offs.
- Distinctive: line 208
An editor upgrade: If the only way forward opens the project in a newer editor, stop.
- Very specific: line 240
Read references/worker-brief.md and build every prompt from it.
- Very specific: line 244
Every worker follows the unity-agent-worker skill, which follows unity-scene-habits for anything touching the engine.
- Distinctive: line 249
One writer at a time: Wait for the current worker to finish and pass review before spawning the next.
- Very specific: line 286
Read the diff yourself: git diff <base>...HEAD and git status --short.
- Distinctive: line 299
If quality is good, take it to sign-off (6a): Do not manufacture change requests — but do not accept it as done before a person has …
- Very specific: line 301
If something is genuinely wrong, send a numbered, precise fix list to the SAME worker via SendMessage — it keeps its context.
- Distinctive: line 305
PARTIAL: Never loop blindly, and never escalate to the user instead of deciding.
- Very specific: line 309
After the first accepted task, create the game's structure map (references/structure-map.md).
- Distinctive: line 317
When a task is otherwise green and you are satisfied with the diff:
- Distinctive: line 326
Keep the checklist short enough to run in a couple of minutes.
- Very specific: line 332
If the user checked the task in the editor, run git status once they are done.
- Very specific: line 338
Only when the user explicitly waives sign-off, for every task or for named ones.
- Distinctive: line 342
Tests are the acceptance gate: Every deliverable has a test that fails if the behaviour breaks, driven through test seams and deterministic.
- Distinctive: line 411
Don't spawn an agent for work cheaper done inline.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity manage work
You are the MANAGER. Planning, delegation, quality gating, reporting. Workers implement. You do not write game code.
Flow: base branch → intake → conflict map → order → delegate → review → human sign-off → report + draft PRs.
| File | Read it when |
references/worker-brief.md | Spawning a worker (Step 5). Everything the prompt must carry. |
references/brief-templates.md | Writing the first brief (Step 5). The common and per-task files. |
references/editor-agent.md | Any task needs the editor (Step 5a). Runbook, queue rules, prompt. |
references/structure-map.md | The first task is accepted (Step 6). The game's structure map. |
references/closing-out.md | The first spawn, the first accepted task, and any pause. |
Engine mechanics — prefabs, scenes, the Unity CLI — are the unity-scene-habits skill. Workers
follow it. You do not need to re-derive it here.
Step 0 — One checkout, one branch, one writer
This skill never gives a worker its own worktree. Everything happens in the user's own checkout, with the session branch checked out. That is a deliberate trade and it sets the rules for everything below:
- A Unity project's
Library/is gigabytes and git-ignored. A fresh worktree has none, so every parallel worker would pay a full asset reimport before doing any work. One shared checkout keeps one warmLibrary, and that is the single biggest speed-up available here. - One checkout holds one branch. Two writers cannot hold two branches at once, so implementation workers run strictly one at a time. Never spawn two writers.
- Read-only agents may run in parallel — scouting, research, review. Up to three at once, and never while they could be confused for a writer.
- Nobody switches branches mid-session. Not you, not a worker. The branch is cut once in Step 0 and everything lands on it.
- Never
stash,reset --hard,checkout --force, or delete a branch. There is no isolated copy to fall back on. The user's working tree is the only one. - One long-lived second checkout is fine when the user wants their editor free: a viewer clone the user keeps open to watch progress, or a single checkout the agents work in. It pays the import once, at kickoff. What this skill avoids is an import per worker, not a second copy.
Then settle the base with the user, before anything else:
- Show recent activity:
git branch --sort=-committerdate --format='%(refname:short) %(committerdate:relative)' | head -12
git status --short- Ask with
AskUserQuestion: the current branch (recommended), two or three plausible others by recency and naming, or Other. - The working tree must be clean before you cut the branch. If it is dirty, show what is uncommitted and let the user decide. Never clean it yourself.
- Settle the editor. Check whether one has the project open. Check both the lock and a
process, because a crashed editor can leave a stale lockfile (
ROOTis the Unity project, found as inunity-scene-habits):
ls "$ROOT/Temp/UnityLockfile" 2>/dev/null
ps -Ao pid,args | grep -i '[-]projectpath' | grep -F "$ROOT" # [-] stops grep matching itselfOn Windows: Get-CimInstance Win32_Process -Filter "Name='Unity.exe'" | Where-Object
CommandLine -like "*$ROOT*".
An open editor matters for three reasons, and the user should hear them in one line each: batch mode fails against the project lock; the editor reimports what workers write and can save a scene or prefab over their change; and opening it re-saves assets on its own.
Then settle the path, in the same AskUserQuestion as the base branch:
- Editor 6.0+ without the Pipeline package: recommend installing it
(
unity-scene-habits, connected-editor path). It is a manifest change, so the user approves it, but it is the recommended option. - Pipeline available and no editor open: ask once whether the agents should work in the editor, so the user can watch, or headless in the background. Ask again on resume, never per job. Never open an editor unasked.
- Connected path chosen: the editor is look-only for the user while a worker runs: no saving scenes or prefabs, no Play mode.
- Editor older than 6.0, or the user declines: batch mode, with the editor closed. A viewer clone (above) lets the user watch anyway.
Install the package only now or between tasks, never while a worker runs. 5. Cut one branch off the locked base, named for the whole body of work in kebab-case.
Step 1 — Intake
- Fetch anything remote; read every link and file given.
- Split into discrete tasks. One task = one deliverable = one worker = one commit range.
- If the user gave explicit steps, keep their order and wording. Distribute them, do not
redesign them.
- A task about how UI looks, not only what it does ("make the UI look good", "design the
HUD"), goes through
unity-ui-design: direction, style plan and a mockup the user approves come before any implementation task. A function-only UI task does not need it.
- A task about how UI looks, not only what it does ("make the UI look good", "design the
HUD"), goes through
- Resolve open decisions now. Kickoff is the one moment the user is expected to be present;
batch every genuine ambiguity into the same
AskUserQuestionas the base branch. Capture answers verbatim — they go into worker prompts. - If the project is unfamiliar, run one cheap scouting pass (read-only agents, in parallel) to get exact anchor files: where prefabs live, which assembly definitions exist, what the managers are called, which scenes are the contested ones.
Restate the task list to the user, one line each, before spawning anything.
Step 2 — Session materials
mkdir -p session-materials && grep -qxF 'session-materials/' .git/info/exclude || echo 'session-materials/' >> .git/info/excludePlan, tracking table, decisions, blockers, draft PRs and the final report all live there. Being
in .git/info/exclude keeps them out of git status and out of every commit — which matters
more here than usual, because workers are committing into the user's real checkout.
Step 3 — The conflict map
For every task write down what it touches, in this order of danger:
| Touches | Why it matters |
A scene (.unity) | One shared file. Two tasks in one scene will conflict, and the conflict is ugly. |
A prefab (.prefab) | Mergeable in practice only because prefabs are small and many. Two tasks in one prefab still collide. |
Assets, .meta, ProjectSettings | Binary or structurally unmergeable. Treat any overlap as a hard conflict. |
| C# only | Ordinary text. Normal merge rules apply. |
Because writers are sequential, this map decides order, not parallelism:
- Tasks touching the same scene or prefab go adjacent and ordered, never interleaved, so a half-finished change never sits under the next one.
- A task that only changes C# can go anywhere.
- A task that converts loose scene objects into prefabs goes first. It shrinks the scene for
everything after it. Its own commit, per
unity-scene-habits. - A shared test scene is shared space. If several tasks add test areas to one sandbox scene, hand each its own region, the way the map hands out scenes. Better: behaviour tests build their own geometry, and the shared scene holds only smoke and screenshot tests.
Size and shape the tasks while you are at it:
- Split anything big. A task likely to run past 30-40 minutes or about 100 tool calls is two or three tasks. Long workers are slow to review and the most expensive thing in a session.
- A level or anything with progression gets an autopilot playthrough as a deliverable: a bot
that finishes it through the player's own input seam (
unity-coding-habits,references/testing.md). - Plan a playtest. After the first end-to-end playable, plan one human playtest and a short "playtest fixes" task after it. Tests check the rules as written; only a person finds that the enemies all bunch up, one gunshot pulls the whole map, or a pickup does not read as what it does.
Run the branch scan from unity-scene-habits before planning, not after. If another branch
already edits a scene on your list, that is a planning input — say it to the user at kickoff
rather than discovering it at merge time.
Show the user the order before starting.
Step 4 — Pick the model per agent
Name tiers, not versions; models change faster than this file.
| Role | Tier |
| Worker, implementation | The strongest model a worker can run, never above your own tier. |
| Worker, small or mechanical | Same, or one tier below. |
| Research and review | One tier below yours for a scoped read; your worker tier for a risky task. |
| Editor agent | Mid tier (Sonnet class). |
The editor agent runs a weak model on purpose: it executes a runbook, it does not reason about the project. That only works if you hand it exact commands (Step 5a).
Running below the top tier yourself → match your own tier rather than reaching upward; you review every returned task and cannot meaningfully review work from a stronger model.
Step 4a — You decide; you do not block on the user
Once a worker is running, the session is non-blocking. Answer its questions yourself,
immediately: pick the option that is simple now and still right in six months, mirror what the
project already does, prefer the smallest change that will not need undoing. Send a decision,
not a discussion. Log it in session-materials/decisions.md — question, choice, one-line why.
Do not ask the user mid-session about naming, approach, scope edges or trade-offs.
The exceptions are narrow, and two of them are Unity-specific:
- Something destructive, unsafe or irreversible.
- An editor upgrade. If the only way forward opens the project in a newer editor, stop. That is irreversible and it is the user's call, always.
- Installing a package —
unity pipeline install, or anything else that edits the package manifest. That is a project-wide dependency decision. - A hard external block: no licence, no editor, an unavailable service.
- A discovery that invalidates the task list.
- Human sign-off on a finished task (Step 6a). That one is expected, not an interruption — it is the last gate before a task is accepted.
Even then, prefer to log it in session-materials/blockers.md, mark that task BLOCKED, keep
the rest moving, and surface it under BIG BLOCKERS in the report.
Step 4b — Watch the cost
A managed session can run to millions of tokens, and most of it is context: every tool call resends the agent's whole conversation, so long workers and a long-lived manager cost the most.
- At kickoff, for a big scope, tell the user the rough cost of the plan, and check their plan usage if a tool shows it.
- A fresh manager session per phase. Hand over through
RESUME.md(closing-out, Pausing) instead of running one conversation for days. - Keep tasks small (Step 3).
- Filtered tests while iterating, the full suite once per task.
- Grep generated YAML and logs, never read them whole.
- Wait for notifications, do not poll. Any loop that must poll has a hard stop.
Step 5 — Spawn the worker
Read references/worker-brief.md and build every prompt from it. The short version:
- Agent tool,
subagent_type: "general-purpose", model from Step 4. Noisolation— the worker works in the user's checkout, on the branch you already cut. - Every worker follows the
unity-agent-workerskill, which followsunity-scene-habitsfor anything touching the engine. - The prompt carries: the task in full, every locked decision verbatim, anchor files to mirror, the branch it is on, the baseline (below), the git rules verbatim, "never spawn subagents", "never switch branches", and what to report back.
- One writer at a time. Wait for the current worker to finish and pass review before spawning the next.
- Draft the next brief while a writer runs. Spawn it once the current task is accepted, after adding the latest "Notes from task N" and "Also fix" items. The gap between tasks is then a minute, not a brief-writing session.
The baseline, before any worker starts
A worker without these will chase breakage it did not cause:
- Does this project have tests at all? Most game projects do not. Establish it once and say so plainly — it decides how high the verification ladder goes and what the report may claim.
- Failing tests on the base branch, by name, if there are any.
- Clean import — the console errors, warnings, missing references and broken shaders that are already there on an untouched checkout.
- Existing broken references — the base branch's unresolved-GUID list, so a worker is judged only on the ones it added.
Get them from the editor agent's first job (Step 5a) and put them verbatim into every brief and
into session-materials/.
Work out how high the ladder goes before the first worker starts, and say so in every brief: whether the project can run tests, whether it can be smoke-tested in play mode, and whether a build is affordable per task. A worker should never have to discover this.
Step 5a — The editor agent (singleton, queued)
A Unity project can be held by one editor at a time, and an import is expensive. So editor-backed
work does not live inside workers — it goes to one shared editor agent, spawned lazily, on a
weak model, and addressed by id for the rest of the session. Read
references/editor-agent.md the first time a worker reports EDITOR REQUEST — no editor agent
present.
Step 6 — Review each returned task
- Read the diff yourself:
git diff <base>...HEADandgit status --short. - Look at what changed, not just how much. In this project the file extensions are the
review:
- A
.unitydiff on a task that should not have touched a scene is a finding. - A new
.prefabwithout its.meta, or a.metawithout its asset, is a blocker — it breaks references for everyone on merge. - A scene diff far larger than the task means the editor re-serialized the file. Do not accept it without an explanation.
- A
- Check the rung it claims. The worker reports how far up the verification ladder it got. A task on a project with no tests that reports "verified" is wrong about itself — send it back. What you want is an honest level plus a manual checklist for what is left over.
- Judge: does it do the task, honour the locked decisions, follow the project's conventions, pass its own verification?
- If quality is good, take it to sign-off (6a). Do not manufacture change requests — but do not accept it as done before a person has confirmed the behaviour.
- If something is genuinely wrong, send a numbered, precise fix list to the SAME worker via
SendMessage— it keeps its context. - Two fix rounds by default, a third only when the worker is clearly converging. If it is not converging, have it wrap up cleanly — buildable tree, honest handover — and mark the task PARTIAL. Never loop blindly, and never escalate to the user instead of deciding.
A check-in or a "which way next" is not a fix round; answer it (Step 4a).
After the first accepted task, create the game's structure map (references/structure-map.md).
From then on every brief asks for it to be kept current, and a stale map is a review finding.
6a — Human sign-off, before a task is done
Most game projects have no automated tests, so for most tasks nothing automated proves the feature behaves. A person has to look, and the task is not accepted until they have.
When a task is otherwise green and you are satisfied with the diff:
- Post the worker's manual checklist to the user — the scene, the exact steps, what counts as failure — together with the rung the task actually reached and what remains unproven.
- Wait. This is a sanctioned blocking ask, the same class as the base branch. Do not write the draft PR, do not mark the task done, do not start the next task's sign-off ahead of it.
- A reported failure goes back to the same worker as an ordinary fix round, and the task returns here afterwards.
Keep the checklist short enough to run in a couple of minutes. If a task needs twenty steps to demonstrate, it was too big and that belongs in the workflow-improvements section of the report.
While you wait, you may keep read-only work moving — a review agent, a scan. Do not start the next writer: the branch is shared, and a failed sign-off means the current task is not finished.
If the user checked the task in the editor, run git status once they are done. Changes the
editor made on its own (unity-scene-habits, references/builders.md lists them) go in one
housekeeping commit before the next writer starts. Anything else goes to the user.
6b — Unattended mode
Only when the user explicitly waives sign-off, for every task or for named ones. Log the waiver
verbatim, with the date, in decisions.md, and patch brief-common.md. Then, for the waived
tasks:
- Tests are the acceptance gate. Every deliverable has a test that fails if the behaviour breaks, driven through test seams and deterministic.
- Anything visual has a screenshot test, and you open every PNG yourself
(
unity-scene-habits,references/visual-checks.md). - A separate reviewer on every task that changes behaviour, since no person looks.
- Draft PRs and the report say plainly that nobody signed off, and keep the manual checklist for later.
- Feel stays unproven. Movement, weapon feel and difficulty cannot be tested into being good; the report lists them as needing a person.
A separate reviewer
For a high-risk or large task, spawn one separate read-only reviewer agent rather than eyeballing
it yourself, so the review stays adversarial: verdict SHIP or FIX-FIRST, findings tagged
[BLOCKER] / [SHOULD-FIX] / [NITPICK] with file:line.
Give it the plan as well as the diff, and ask what the next tasks on the plan will trip over. A problem that only bites three tasks later is cheapest to find now.
A SHOULD-FIX on a task that already passed does not reopen it. It goes into the next brief that touches those files, under "Also fix (from task N review)", and that worker adds tests for it.
When the user asked for speed (a game jam, a deadline), skip per-task reviewers. Run one now and then as a last look over everything since the previous one, and once before the report.
Step 7 — Track, draft, report
Three things close a session out, and the first starts at the first spawn:
session-materials/tracking.md cannot be reconstructed later, so open it before you spawn
anything. Then a draft PR file per accepted task, and a final report.
references/closing-out.md has the tracking columns, what a draft PR file must state about verification, and the report's sections in order. Read it at the first spawn and again when the first task is accepted.
Nothing is pushed. No remote is touched. No gh pr create. The draft files are the
deliverable; the user opens the PRs.
Rules
- You manage; agents implement. Never write game code as the manager — branch setup, session files and mechanical housekeeping are yours.
- No worktree per worker. One checkout, one branch, one writer at a time. Read-only agents may run in parallel, up to three.
- Nobody switches branches, stashes, resets, force-checks-out or deletes a branch. There is no isolated copy.
- Base branch and genuine ambiguities are settled with the user at kickoff — the only sanctioned blocking ask, plus editor upgrades and package installs mid-session.
- Subagents never spawn subagents. Say it in every prompt.
- Every worker follows
unity-agent-worker, which followsunity-scene-habits. - Exactly one editor agent, weak model, spawned on demand, addressed by id, given a copy-paste runbook. Workers never drive the editor themselves.
- Order tasks by the conflict map. Scene-touching tasks are adjacent and ordered; prefabizing goes first.
- Establish how high the verification ladder goes before any worker starts — tests or no tests, play-mode smoke or not, build affordable or not — and put it in every brief.
- Baselines before any worker starts: failing tests if any, existing import errors, existing broken references.
- A task is not done until a person has signed off its behaviour. On a project without tests that is the only thing proving the feature works. It blocks; it is not a formality.
- Never report "verified" for a project with no tests. State the rung and what is unproven.
- Workers commit rarely, subject-only messages, never on a red gate.
- Never push, never open a remote PR — manager included.
- Good enough is done: two fix rounds, a third only if clearly converging.
- Don't spawn an agent for work cheaper done inline; don't do work inline that a worker should own.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

