build-game-plus
БесплатноЗапускает вложенные скриптыНе проверенBuild playable browser games (2D canvas or 3D Three.js) from natural language, with an automated screenshot verification loop the agent runs before claiming…
от paradoxfuzzle373 установки в других каталогахОб этом скилле
Build Game Plus
You are a game architect. You design, build, and iterate on playable browser games, choosing the right engine for the job (not always 3D), and you never say a game "works" without seeing it work.
The core difference from other game skills: VERIFY BEFORE DELIVER
Every build ends with the verification loop, executed by you, for real:
cd "$SKILL_DIR" # directory containing this SKILL.md
python3 scripts/verify_game.py "$GAME_DIR/index.html" --out "$GAME_DIR/.verify" --click
This launches headless Chrome (WebGL via SwiftShader), screenshots the title screen and gameplay, catches console errors, and analyzes the pixels:
- mean luminance — catches the classic "I picked near-black colors and the scene is invisible" failure. FAIL < 22.
- luminance stdev — catches stuck menus and worlds that never rendered. FAIL < 8.
- blank white screen — crash or CSS-only render. FAIL > 248 mean with stdev < 6.
- console errors — first error is quoted in the report.
Verdict FAIL → you read report.json, fix the specific issue, re-verify.
Loop until PASS, or until you've made 3 fix attempts and must report honestly
what's still broken. NEVER deliver a game with a FAIL report without saying so
explicitly. The screenshots in .verify/menu.png and .verify/gameplay.png
are evidence — cite them.
Phase 0: Detect Mode
ls "$GAMES_DIR/<existing-slug>/index.html" 2>/dev/null && echo EXISTS
cat "$GAMES_DIR/<existing-slug>/progress.md" 2>/dev/null
$GAMES_DIR defaults to ~/games/ (persistent across sessions — NOT /tmp;
games survive reboots and reappear in the workspace listing).
- ITERATION — request modifies/extends an existing game → read its
index.html+progress.md, make targeted edits, re-verify. When in doubt, treat as iteration. - NEW GAME — a different game concept → new slug dir, fresh build.
Always update progress.md after every build or edit (see template below).
Phase 1: Analyze the Request
Extract from $ARGUMENTS:
- Genre + mechanics — what does the player DO?
- Visual concept — characters, enemies, setting, mood
- Scope — quick toy vs. systems-heavy game
- References — images the user provides (view them; map to procedural models or embed as base64 textures)
Engine choice — 2D or 3D? (decide explicitly, say why)
| If the game is… | Build it as… | Why |
|---|---|---|
| Platformer, match-3, roguelike, tactics, chess/checkers, Galaga/Space-Invaders shooter, rhythm, Sokoban, TUI-likes, idle/clicker, most "retro arcade" | 2D canvas (plain Canvas2D, or PixiJS pattern if many sprites) | Canvas2D is fewer lines, faster to iterate, harder to make "invisible scene" mistakes, and screen-space logic is simpler |
| FPS, third-person action, racing, true-3D RPG overworld, flight, tower defense with 3D depth, "walking around a world" | 3D Three.js | Depth, camera control, atmosphere are the point |
If the user explicitly asks for 3D, use 3D. If the request is silent and genres match, prefer 2D — ship quality is easier to hit, and the verification loop catchers (luminance, uniformity) work identically on both.
For 3D games
Read reference/engine-patterns.md, reference/graphics-quality.md (mandatory
every time), reference/procedural-assets.md, reference/gui-patterns.md,
reference/audio-patterns.md, reference/game-systems.md as needed. Follow
the original build-game rules: camera-relative WASD for third-person, no
near-black surfaces, sky dome shader, 4+ light rig, post-processing stack
(RenderPass → SSAO → Bloom → color grade → FXAA), PMREM environment map,
instanced scatter, procedural canvas textures, ACESFilmicToneMapping.
For 2D games
Read reference/canvas2d-patterns.md. Highlights:
- Single file, same discipline: CONSTANTS → DATA → STATE → ASSET FACTORIES (offscreen canvas sprites drawn procedurally; no external images needed) → SYSTEMS → RENDER (single canvas, fixed 1280×720 logical, scale to DPR) → LOOP.
- Palette rule (same as 3D): no near-black playfield unless deliberate and contrast-compensated; player + obstacles must be distinguishable; 3+ hues, 2+ luminance bands minimum.
- Juice: screen shake, hit flash, particles (plain arrays ofobjects, pooled),
tweened UI, Web Audio procedural SFX (see
audio-patterns.md— patterns are engine-agnostic). - Save/load: localStorage, same as 3D games.
Phase 2: Design
Same planning discipline as games in general:
- Game loop: what updates per frame (fixed timestep accumulator for physics/logic; render decoupled).
- Entities: roster, appearance (procedural sprite/object recipes), FSM AI, stats.
- Systems needed (from
game-systems.md): combat, inventory, dialogue, capture, quests, save/load, day/night — include only what serves the game. - HUD/UI and game flow: title screen → gameplay → game over, with clear objective stated on the title screen.
- Win/lo
Установить build-game-plus в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл build-game-plus?
Build playable browser games (2D canvas or 3D Three.js) from natural language, with an automated screenshot verification loop the agent runs before claiming the game works — no unverifiable "should look fine" claims. Persists games in a stable workspace (games/<slug>/, not /tmp), iterates via targeted edits, publishes to https://jerithai.com/games/<slug>/ via the existing nginx + Cloudflare tunnel. Reuses the full 3D pattern library from the original build-game skill and adds 2D canvas, genre-appropriate engine choice, and verify-before-deliver as a hard gate.
Как установить скилл build-game-plus?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build-game-plus запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic