Borrowing it
Nothing to install: this file belongs to swarm-ai-research/swarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/swarm-ai-research/swarm/main/.claude/commands/build_game.mdgit clone --depth 1 https://github.com/swarm-ai-research/swarmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/swarm-ai-research/swarm/build_game)<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/build_game"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/build_game/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/build_game"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/build_game.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00286 |
| Opus 5 | $0.00000 | $0.00143 |
| Sonnet 5 | $0.00000 | $0.00057 |
| Haiku 4.5 | $0.00000 | $0.00029 |
Grade A, and why
build_game scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
/build_game
Type-check and build the SWARM visualization game (viz/ TypeScript frontend) in one step — use after editing viz/src/ files, when TypeScript errors need triaging, or before deploying the interactive simulation frontend. Stops on type errors before attempting a build.
Usage
/build_game
Behavior
-
Type-check:
- Run
cd viz && npx tsc --noEmit - If there are type errors, report them and stop.
- Run
-
Dev build:
- Run
npm run build(fromviz/) - If the build fails, report errors and stop.
- Run
-
Deploy build:
- Run
npm run build:deploy(static export with basePath todocs/game-app/) - If the build fails, report errors and stop.
- Run
-
Report:
Game build complete Types: clean Build: success Deploy: success (docs/game-app/) Bundle: <first load JS size from build output>
Constraints
- Always run all three steps in order. Do not skip the type-check.
- If any step fails, stop and report the error. Do not continue to the next step.
- Do not commit or push — use
/shipfor that.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 37 lines · 0 tokens per session scan A 3d5c64eecc62
build_game is a command published in the GitHub repository swarm-ai-research/swarm (42 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 286 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
sim
Run the EmbodiedGen simulation rendering workflow with sim-cli.
combat-design
Design or revise combat rules, variables, readability, and tuning direction.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
status
Show 3d-design team status and recent activity.
unity-optimize
Profile and optimize performance — uses MCP profiler for frame timing, memory, rendering stats. Identifies bottlenecks and applies fixes.
play-dashboard
Play in the dashboard — the local viewer becomes your play surface, with a live AI DM beside it.