game-build
Builds one game component from the MVP plan as typed TypeScript with tests and mocks for unbuilt dependencies, then records it in the build registry. Use when…
от fcsouza★ 29 звёзд на GitHub
Установить game-build в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Game Build
Input: $ARGUMENTS; if empty, use the user's message. It holds a component name, <component> --rebuild, or status.
This command skips the game-dev index. The skill table in Phase 3 picks the skills.
Requires
game-backend-architecturequest-mission-designquest-narrative-coherencepostgres-game-schemaredis-game-patternsbullmq-game-queuesbetterauth-integrationstripe-game-paymentselevenlabs-sound-musicgame-state-syncmatchmaking-systemgameplay-analytics
Load a skill from this list only when the Phase 3 table picks it. Before you apply one, check that it appears in your available skills list. If it is not, name it, give this install line, and stop: bunx skills add fcsouza/agent-skills --skill <name>.
Prerequisites
docs/mvp-first-draft.mdin the project (run/game-architectfirst)
Phase 0: Load context
Do this before writing code.
- If
docs/mvp-first-draft.mdis missing, say: "Stopped: no MVP plan. Run/game-architectfirst, so the build follows one plan." Then stop. - Read the plan. If the component matches an item in Section 10 (Out of Scope for MVP), say "Deferred: [component] was deferred because [reason]. Building it now widens scope. Continue?" and wait.
- Read
docs/build-registry.md. If it is missing, copy the registry skeleton fromtemplates/build-registry.md. - If the component touches quests or story, read
docs/world-lore.mdanddocs/quest-registry.md.
status: before step 3, read the registry if it exists (do not create it), print a table of built, rebuilding, mocked and remaining components, build nothing, stop.
Phase 1: Dependencies
Resolve the component's dependencies from the plan. For each one, check the registry.
built: import it from its registered path. Do not regenerate it.- Not built: write a typed mock with the interface the real one will have and realistic fake data. Mark it
// MOCK: replace with real implementation via /game-build [dependency-name]and register it asstatus: mock.
List the mocks at the top of your output.
Component already built or rebuilding. Stop and say: "[component] is built (docs/build-registry.md). To redo it, run /game-build [component] --rebuild." For rebuilding, say instead: "[component] has a rebuild in progress. Run /game-build [component] --rebuild to resume it." Regenerating would overwrite code other components import, so only --rebuild proceeds. --rebuild on a component with no registry entry builds it as new. With --rebuild:
- List the components that depend on it (the registry entries whose "Depends on" names it) and tell the user they will need a re-check.
- Set its registry status to
rebuilding, build as normal, and set it back tobuiltin Phase 5. - Keep its public exports and types unless the user asked to change them; flag any change you make.
Phase 2: Clarify (at most 2 questions)
Ask only when the plan cannot answer, for example REST or WebSocket when it lists both. Never ask about naming or style.
Phase 3: Build
Code standards:
- TypeScript strict. No
any, no implicit types. - Error handling and input validation included.
- Build what the plan specifies for this component and nothing more. If you need schema, queues, routes or features the plan lacks, mark them
NOT IN PLANand ask. - Cite the skill that drove each major decision in a comment:
// [-> bullmq-game-queues: retry with exponential backoff] const retryConfig = { attempts: 3, backoff: { type: 'exponential', delay: 1000 } };
Files:
src/[component-name]/
index.ts public API
[component].ts core logic
[component].test.ts tests
types.ts types for this component
src/__mocks__/[dependency].mock.ts mocks from Phase 1
Skill table:
| Component involves | Apply |
|---|---|
| DB reads/writes | postgres-game-schema |
| Cache, realtime | redis-game-patterns |
| Background jobs | bullmq-game-queues |
| Auth, sessions | betterauth-integration |
| Payments | stripe-game-payments |
| Audio, SFX | elevenlabs-sound-music |
| Quests, missions | quest-mission-design, quest-narrative-coherence (coherence check first) |
| Client-server sync, multiplayer | game-state-sync, game-backend-architecture (server decides; the client sends intentions) |
| Matchmaking | matchmaking-system |
| Analytics | gameplay-analytics |
Tests cover: the happy path, boundary cases, failure when a dependency throws or returns bad data, and that each mock matches the interface it replaces. Assert on behavior, not snapshots. A component without tests is incomplete.
Test runner
Read package.json.
- If
vitestis a dependency, write tests with Vitest and run them withbun run test(add atestscript ofvitest runif missing). Vitest's guide says to usebun run testwith Bun, becausebun teststarts Bun's own runner instead. Docs: https://vit
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- templates/build-registry.md
FAQ
Что делает скилл game-build?
Builds one game component from the MVP plan as typed TypeScript with tests and mocks for unbuilt dependencies, then records it in the build registry. Use when the user wants to implement a planned component (for example auth, matchmaking, shop), check build progress with "status", or redo a built component with "--rebuild". Takes `$ARGUMENTS` (falls back to the user's message); needs `docs/mvp-first-draft.md`, which `/game-architect` writes.
Как установить скилл game-build?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл game-build запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…