/game:fleet-game-devfrom Game Design and Build
Habits that let many agent sessions build one Godot game at the same time without breaking each other: one git worktree per plan unit, a fresh import, a baseline, small committed steps, merges of a moving base, a finish gate, and a clean land. It also covers the shared-machine rules (a slot runner for headless Godot, mkdir locks for the window, the timing machine and the main checkout), scope questions, dependency waits, compaction handoffs, long runs, the steward who lands branches, the balance lead, and the owner who decides gameplay changes. Use it whenever a fleet, an orchestrator, a worker, a steward or several parallel agents work on a game repo, or someone asks how to split a feature into parallel units, why a worktree fails its tests after a merge, how to land a branch safely, how to stop agents from overloading one machine, or how a worker should wait or ask, even if nobody says "fleet".
Ships in Game Design and Build. 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; scripts run unread.
A game built by many agent sessions breaks in ways a solo project never sees. Two workers edit the same row, a fresh worktree fails 40 tests because its import cache is empty, 20 headless runs load the machine while the human plays, a question gets lost and a worker idles for hours, and a DONE claim hides a red suite. The method gives each plan unit its own worktree and a fixed loop: import, baseline, small steps, merge, finish gate, land. It puts every shared resource behind one lock shape and every decision behind one message shape. It works because each failure above has one owner and one check, so a fresh session can follow the loop and land clean work without the history.
This skill is the Godot and game side of the fleet. The agents plugin in the same repo gives the generic worker and orchestrator mechanics (herdr-worker, herdr-orchestrator). Read those for the horch commands. Read this skill for what a game fleet adds.
Rules: The agents plugin gives the fleet protocol: agents:herdr-orchestrator, agents:herdr-worker, and agents:herdr-setup when the fleet tool fails to install or start. This skill is the Godot side of that fleet.
godot-testing for the test loop instead.agents:herdr-setup.| Word | Meaning |
|---|---|
| unit | 1 plan file with GOAL, FILES (own and do-not-touch), STEPS, DONE WHEN. 1 worker builds it. |
| base branch | The integration branch that units branch from and land on. It moves while you work. |
| orchestrator | The session that writes plans, spawns workers and answers questions. |
| steward | The only session that commits on the base branch. It lands units by hash. |
| lead | A worker that owns shared targets and shared code for a wave (for example a balance wave). |
| owner | The human who decides gameplay and looks. Only the owner's own words are direction. |
| parse check | A headless tool script that loads every project script with the autoloads and prints each parse error. |
| visual gate | A short windowed run that captures the key screens, so a human or a diff can judge them. |
| message keywords | ready, NOTE, QUESTION, BLOCKED, READY, DONE, COMPACT-READY. 1 keyword starts each report. |
git -C <worktree> branch --show-current names your unit branch..godot cache, so class names do not resolve. Copy the cache from a working worktree if the rules allow, then run 1 headless import with a time limit. Check: the import log has no ERROR line..uid files of your own new scripts with the scripts. Leave other units' .uid files out. Check: git status --short shows no stray file of yours.git status, and a diff that lists only your files. The godot-testing skill owns the gate. Check: the gate output and the counts go into your notes.When a failure appears only after a merge, test the base alone in a detached worktree. That proves whether the merge or the base causes it.
Map every seam and out-of-scope file you need before you code. Then ask once per decision.
A planned wait for another unit's land is not a block.
ready and the state, not BLOCKED.git branch --merged or git show --stat, not only a plan commit or a steward log line.git log with sleep.Some units have phases that a lead or the orchestrator reviews before GO.
A long unit outlives one context. Hand off with no loss.
/tmp into the unit's review folder, because /tmp does not survive.git status, the last commit and live processes of your role.The orchestrator side (run the compact at once, wait on new log lines only) is in references/fleet-roles.md.
Bot sweeps, long batches and full suites often run longer than 1 tool call.
Many agents and a human share 1 machine. Unbounded headless runs make it unusable.
mkdir, an owner file with role and pid, stale-pid cleanup, and the command under nice. The shipped scripts/slot-run.sh has this shape.quit(), --quit-after, or the alarm.nice) and windowed runs (they take a window lock).The Godot flags, the log check and the run cleanup are in the headless-godot-runs skill.
Use 1 lock folder per scarce resource: each window slot, the timing machine, the main checkout. mkdir is atomic, so it is a safe lock on any Unix machine.
if mkdir "$L" 2>/dev/null; then echo "$ROLE $(date -u +%FT%TZ)" > "$L/owner"; <run>; release; fi.
Release means: check that the owner line names you, remove the owner file, rmdir.mkdir "$L" && run; rm -rf "$L". When mkdir fails, the rm still runs and deletes another worker's lock.scripts/with-lock.sh does it. Try each window lock in turn and take the first free one.git status --short. Save uncommitted work with git diff > /tmp/<unit>.patch and restore those files to the committed version..uid or plan copy, compare it with the incoming file, delete your copy, and merge again..uid conflict, take the base's id. For a lead-owned file, take the owner's side.MERGE_HEAD exists, because the commit completes that merge.git apply --3way --include=<file>. A whole-patch apply fails on 1 file and applies nothing.git merge-tree instead of a second merge.A sed or a heredoc can change the wrong row or a second match without a sound.
scripts/rep.py does this for a list of pairs.cat -et and count the tabs. Or pick a longer anchor when the anchor matched 2 places.git diff after a bulk edit. Read the new value back before you measure or commit.Agents bring GNU habits; macOS has zsh and BSD tools.
timeout. Use perl -e 'alarm N; exec @ARGV' <command>, gtimeout, or the tool's own quit flag.sed -i '' with 1 -e per expression, or perl -pi -e, for 1-line changes only.sh script.grep --include and find -name. zsh stops on an unmatched glob.echo $? after a pipe gives the status of the last command. Use a log file or pipefail.cd in a compound command.git grep needs -E or several -e for "or". Test a search on a known hit before you trust an empty result.python3 -I hides user-site packages. Check that imports load, or use a venv.A wrong number in a DONE travels into the next plan.
The orchestrator side (treat DONE as a claim, liveness evidence) is in references/fleet-roles.md.
Number tuning, behaviour-neutral bug fixes and perf fixes go on. A new or removed mechanic, verb or cue is a proposal, not a build. The owner decides it.
The design side of the rule is in upgrade-tree-design.
Some fleet workers run in a sandbox (often a fallback agent when quota runs out). They cannot write .git, user:// or the home folder, read the process table, or open a window.
git worktree add, git commit or git merge. It sends COMMIT REQUEST: <worktree>, <files>, <message> after each passed step.user:// is writable, and a log file in /tmp.
Make logger autoloads fail safe: 1 warning, then no writes.user:// writes, nice denied). Group FAIL lines by cause and report exact counts per group..uid files, and runs the suite outside the sandbox. Sandbox results hide real failures.The prompt can name flags that the installed fleet CLI does not have.
done --unlanded or done --handoff is rejected, run plain done with the reason in the summary.worktree land is unknown, report that the branch is committed and not landed.done fails twice on a registry file, do not edit that file. Note it and tell the orchestrator.Read references/fleet-roles.md when you plan a wave, lead a balance wave, land branches, push, or run 2 fleets on 1 repo. It holds:
The most common faults are below. Read references/pitfalls.md for the full table when something fails that this list does not name.
| Symptom | Cause | Fix |
|---|---|---|
| 30 or more UI tests fail with "Identifier not declared" or "Compilation failed". | Fresh worktree or a merge brought new class names; the cache is stale. | Import after every merge and in every fresh worktree. |
godot --check-only says "Identifier not found" for an autoload. | --check-only does not load autoloads. | Use the project parse check or the suite. |
| Another worker's lock disappeared; 2 timing runs overlapped. | mkdir L && run; rm L ran the rm after a failed mkdir. | Release only inside the success branch, after an owner check. |
| Load average 50+ while the owner plays. | Unbounded runs; hung windows. | Slot runner, nice, 1 process per worker, runs that end by themselves. |
| 1 call waited about 10 hours. | The slot wait sat inside or outside the alarm. | Alarm on the Godot command only; check the runner after a long gap. |
| A worker idled for hours. | The question went only to the ledger, or the message failed. | Tell plus a notes-file copy. |
| The orchestrator said "running" for a blocked worker. | Status from memory, not evidence. | Check note times, open questions and file times in UTC. |
| A land brought 2 later commits with red tests. | The steward merged a branch name. | Merge the exact hash only. |
A sed for 1 value changed another unit's row. | Pattern matched a shared value. | Asserted edit on the unique row id. |
| A comma-separated test filter ran 0 tests and looked green. | The runner takes 1 filter. | 1 filter per call; check the count is not 0. |
| A worker sent BLOCKED for a planned wait. | Wait read as a block. | Report ready and wait. |
| A worker sat idle after COMPACT-READY for about 1 hour. | The orchestrator only acknowledged it. | Run the compact at once. |
/tmp.scripts/slot-run.sh, run with sh): mkdir slot pool, owner file, stale-pid cleanup, nice. 1 command per call. sh scripts/slot-run.sh --help prints usage.scripts/with-lock.sh, run with sh): take-wait-run-release in the if-mkdir shape. sh scripts/with-lock.sh --help prints usage.scripts/rep.py, run with python3 -I): pairs of old and new text, each must match once.COMMIT REQUEST, MERGE NOTICE n, GATE OPEN, READY-2A, INT-READY for the special flows.godot-testing: the test loop and the unit finish gate that step 9 runs.headless-godot-runs: Godot flags, import and parse hygiene, tool save isolation; this skill only gives the slot and load rules.visual-verification: the windowed gate and the capture queue that run inside a window lock.bot-balance-loop: the tables a balance wave measures and proposes from.upgrade-tree-design: the design side of the gameplay-change rule.feature-seams-and-saves: what a seam looks like when a scope question asks for one.safe-refactor-and-review: review units and fix waves that a steward lands.Companion plugin, outside this plugin: the agents plugin gives the fleet CLI and the generic worker and orchestrator loops (its skills are agents:herdr-worker and agents:herdr-orchestrator).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mattmakes/skill-marketplace --plugin game30 skills in this plugin
/art-directionUse when a game concept needs its visual direction set: a style sheet (palette, shape language, lighting, texture), a shot list tied to the target fun, and image-generation prompts for a key art, hero and gameplay-mock placeholder. Trigger on: "art direction", "style sheet", "what should this look like", "shot list", or when `game-brief` needs its art section. Every image prompt carries fixed content-boundary negatives and never names a living artist./balance-model-dataKeep a game's numbers in a scripted balance model (for example Python modules) that checks design targets and exports the JSON the Godot game loads, and change that data without drift. It covers the edit-export-diff loop, FAIL-key baselines, deterministic exports, parity fixtures between the model and GDScript, what-if and lever searches inside the model, and design docs whose tables must match the model. Use it whenever someone wants to change a price, a yield, a pacing curve, a content table or an upgrade row that a script exports; asks why the model and the game disagree, why a parity test fails, or why a chapter runs too long; wants to tune or fit levers before touching game data; or writes a design doc full of numbers, even if nobody says "balance model" or "source of truth"./bot-balance-loopTune bosses, encounters and game rules with scripted bots that play the real Godot game headless, then compare the measured tables against written target bands. The loop writes the bands first, builds a fight tool with several bot steerings (coached, tight, wide, wait, ram), runs fixed seeds with repeatable flags, builds a table of first-try wins, mean tries, resource left and fight length, names each odd result BOT or GAME, and changes 1 lever at a time. It also covers model start states, rule probes, a shared pipeline, wall triage by snapshot replay, a full-playthrough bot, coach text from winning fights and telegraph-to-hit tests. Use it whenever someone wants to balance or retune a boss, check a kill rate or a difficulty band, find out why players or bots stall at an encounter, measure a rule change with encounter bots or a full-playthrough bot, or run a bot playthrough of the whole game, even if nobody says "bot table" or "target band"./core-loopUse when designing or diagramming a game's core loop — applies Stone Librande's "flowchart first" to draw the moment-to-moment, session and long-term loops, each as player action → system response → feedback → next decision, as Mermaid flowcharts, with every feedback edge labeled by the kind of fun it serves (LeBlanc's eight kinds), and checks that the inner loops (not the long-term loop) produce every target kind. Trigger on: "core loop", "gameplay loop", "draw the loop", "moment-to-moment", "session loop", "long-term loop", "retention loop", or the loop step of the game-design pipeline. Runs headless: never asks, infers and states assumptions./design-diagramsUse when a game design needs the right diagram, not more prose: an engine loop, a whole-game storyboard, a time-and-space map, a faction relationship chart, an axes-first matrix, or a module map. Trigger on: "what diagram should I use", "map out the loop", "chart the factions", "storyboard the game", or when `core-loop` or `game-brief` needs a diagram picked and drawn. Picks the diagram from Librande's vocabulary, applies the "wrong metaphor" check, and emits a Mermaid or JSON/SVG recipe./feature-seams-and-savesAdd new content, variants and whole modes to a Godot game through data seams and off-by-default flags, and keep player saves and settings safe across versions. It covers a new playable variant (vehicle, class, character) or encounter batch on a shared base class, an optional row key whose default keeps old rows exact, a prototype branch plus a flagged landing for a big mode, mode fields on content rows, atomic signed saves with backups, save-version migration tested with a real old save, graphics presets with a first-launch Auto pick, and setup tools that give the same project file on a second run. Use it whenever someone wants to add a character, enemy, boss, level type, game mode or data field, bump the save format, rename a settings key, harden saves against corruption or edits, or asks "will old saves still load?" or "how do I add this without breaking the base game?", even if nobody says "seam" or "migration".