agent-manifesto-kit 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +29 -2
  2. package/collection/bundles/game-dev/README.md +69 -0
  3. package/collection/bundles/game-dev/RECOMMENDS.md +24 -0
  4. package/collection/bundles/game-dev/agents/game-code-reviewer.md +36 -0
  5. package/collection/bundles/game-dev/agents/game-image-generator.md +34 -0
  6. package/collection/bundles/game-dev/agents/game-visual-reviewer.md +34 -0
  7. package/collection/bundles/game-dev/skills/game-code/SKILL.md +54 -0
  8. package/collection/bundles/game-dev/skills/game-code/agents/openai.yaml +4 -0
  9. package/collection/bundles/game-dev/skills/game-code/references/engine-godot.md +45 -0
  10. package/collection/bundles/game-dev/skills/game-code/references/engine-threejs.md +47 -0
  11. package/collection/bundles/game-dev/skills/game-delegation/SKILL.md +58 -0
  12. package/collection/bundles/game-dev/skills/game-delegation/agents/openai.yaml +4 -0
  13. package/collection/bundles/game-dev/skills/game-dev-setup/SKILL.md +103 -0
  14. package/collection/bundles/game-dev/skills/game-dev-setup/agents/openai.yaml +4 -0
  15. package/collection/bundles/game-dev/skills/game-dev-setup/assets/agents-section.md +20 -0
  16. package/collection/bundles/game-dev/skills/game-dev-setup/references/config.md +46 -0
  17. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/audit.py +202 -0
  18. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/balance.py +197 -0
  19. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/check.py +62 -0
  20. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/delegate.py +350 -0
  21. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/gamedev_config.py +163 -0
  22. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/install.py +172 -0
  23. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/instruction_size.py +75 -0
  24. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/code_review.md +19 -0
  25. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/image.md +5 -0
  26. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/visual_review.md +13 -0
  27. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/pyramid.py +84 -0
  28. package/collection/bundles/game-dev/skills/game-dev-setup/scripts/test_game_dev.py +309 -0
  29. package/collection/bundles/game-dev/skills/game-planning/SKILL.md +80 -0
  30. package/collection/bundles/game-dev/skills/game-planning/agents/openai.yaml +4 -0
  31. package/collection/bundles/game-dev/skills/game-testing/SKILL.md +58 -0
  32. package/collection/bundles/game-dev/skills/game-testing/agents/openai.yaml +4 -0
  33. package/collection/bundles/kit-adopt/conventions/recommended-companions.md +1 -1
  34. package/collection/skills/astro-preview/SKILL.md +97 -41
  35. package/collection/skills/astro-preview/references/manifest.md +42 -0
  36. package/collection/skills/astro-preview/scripts/portal.py +686 -0
  37. package/collection/skills/astro-preview/scripts/test_portal.py +576 -0
  38. package/collection/skills/mixamo/SKILL.md +109 -0
  39. package/collection/skills/mixamo/agents/openai.yaml +4 -0
  40. package/collection/skills/mixamo/scripts/mixamo.py +264 -0
  41. package/collection/skills/mixamo/scripts/test_mixamo.py +108 -0
  42. package/collection/skills/sfx-creator/SKILL.md +160 -0
  43. package/collection/skills/sfx-creator/agents/openai.yaml +4 -0
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -92,8 +92,10 @@ Use the local Astro Preview application for project asset previews:
92
92
  agentkit sync astro-preview --provider claude,codex
93
93
  ```
94
94
 
95
- The [Astro Preview skill](collection/skills/astro-preview/SKILL.md) covers stable preview links,
96
- linked model animations, image differences, audio A/B and local HTML/Vite profiles.
95
+ The [Astro Preview skill](collection/skills/astro-preview/SKILL.md) registers a project in the
96
+ portal (`.astro/portal.json`), keeps its wiki current from recent commits with an optional hook,
97
+ declares approved sound folders and the run command, and covers stable preview links, linked
98
+ model animations, image differences, audio A/B and local HTML/Vite profiles.
97
99
  Supply the application's checkout once through
98
100
  `ASTRO_PREVIEW_DIR` or project context. The skill reuses its local server and catalog;
99
101
  Agentkit installs the instructions, while the application is installed separately.
@@ -168,6 +170,31 @@ parts on an armature from a spec and ships a Blender `validate.py` for collision
168
170
  budgets and sockets. Both share the `docs/art/` format with Art Direction Pass; Blender and the game
169
171
  engine are installed separately.
170
172
 
173
+ Set up a game project for AI-assisted development in one pass:
174
+
175
+ ```bash
176
+ agentkit sync game-dev --provider claude,codex
177
+ ```
178
+
179
+ The [Game Dev bundle](collection/bundles/game-dev/README.md) starts with `game-dev-setup`: it audits
180
+ the project, proposes what to add, fix or remove, and after approval writes a short AGENTS.md
181
+ section, `game-dev.json` (engine, phase, a model per role, commit and preview policies) and a
182
+ `tools/game-dev/` runtime: one check command, a test-pyramid check, balance checks (JSON schemas or
183
+ XLSX imported to JSON), an instruction-size check, and Codex image generation plus cross-agent code
184
+ and visual reviews. Four task skills cover planning by phase with Taskpilot, code and data layout
185
+ with Godot 4 and Three.js profiles, testing and delegation. It offers companions such as
186
+ `roadmap`, `astro-preview`, `blender-3d`, `sfx-creator` and `mixamo` only when the project needs them.
187
+
188
+ Make game sounds with a local sfx-factory, and rig humanoids through Mixamo:
189
+
190
+ ```bash
191
+ agentkit sync sfx-creator mixamo --provider claude,codex
192
+ ```
193
+
194
+ [sfx-creator](collection/skills/sfx-creator/SKILL.md) finds the factory through `SFX_FACTORY` or
195
+ `paths.sfx_factory` in `game-dev.json`; [mixamo](collection/skills/mixamo/SKILL.md) uses the user's
196
+ own token from `--token-file`, `MIXAMO_TOKEN`, `MIXAMO_TOKEN_FILE` or `~/.config/mixamo/token`.
197
+
171
198
  Build one object to concept fidelity, and run a scene as an object conveyor:
172
199
 
173
200
  ```bash
@@ -0,0 +1,69 @@
1
+ # Game Dev
2
+
3
+ A starter setup for AI-assisted game development, installed into any game project in one pass: phase-based planning with a Taskpilot tracker and roadmap, domain-organized code with balance in data, a checked test pyramid and test range, Codex image generation and independent code and visual reviews configured per role, Astro Preview registration, and offers of the 3D, art and sound companions the project actually needs.
4
+
5
+ ## Contents
6
+
7
+ | Item | Purpose |
8
+ | --- | --- |
9
+ | `game-dev-setup` skill | Entry point: audit the project, propose a table of add / fix / remove / keep, apply after approval, re-review later |
10
+ | `game-dev-setup/scripts/` | `audit.py` and `install.py`, plus the runtime that `install.py` copies into the project's `tools/game-dev/` |
11
+ | `game-dev-setup/assets/agents-section.md` | The short AGENTS.md section that setup fills from game-dev.json |
12
+ | `game-dev-setup/references/config.md` | Every `game-dev.json` key and its default |
13
+ | `game-planning` skill | Phases (pre-alpha, alpha, beta, release), tracker shape and granularity, roadmap upkeep |
14
+ | `game-code` skill | Domain modules, simulation apart from presentation, balance in JSON or XLSX, Godot 4 and Three.js profiles |
15
+ | `game-testing` skill | Test pyramid, affected-only runs, balance simulations, test range |
16
+ | `game-delegation` skill | Image, code review and visual review roles; what stays in the main session |
17
+ | `game-code-reviewer`, `game-visual-reviewer`, `game-image-generator` agents | Thin wrappers around `tools/game-dev/delegate.py` |
18
+ | `RECOMMENDS.md` | Companion skills and bundles that setup offers when the project shows a need |
19
+
20
+ The runtime in `tools/game-dev/` (Python standard library; `openpyxl` only for XLSX):
21
+
22
+ | Script | Does |
23
+ | --- | --- |
24
+ | `check.py` | Runs every check below, then `commands.test`; the "done means checked" command |
25
+ | `delegate.py` | Codex image generation and cross-agent reviews with models from game-dev.json; prompt on stdin, `--skip-git-repo-check`, MCP servers off for reviews, `--ephemeral`, timeout |
26
+ | `balance.py` | `check`: data JSON against schemas; `import [--check]`: XLSX workbooks to JSON with drift detection |
27
+ | `pyramid.py` | Test levels by path pattern, focused or skipped tests, inverted pyramid |
28
+ | `instruction_size.py` | AGENTS.md line limit, skill size, description length |
29
+ | `prompts/*.md` | Role prompts for the reviewers and image generation; the project may tune them |
30
+
31
+ ## What lands in a project
32
+
33
+ Setup writes little: a marked section in `AGENTS.md` (about 20 lines), the Claude Code adapter
34
+ that imports `AGENTS.md` when it is missing, `game-dev.json`, and `tools/game-dev/`. Everything
35
+ else is a proposal row the user approves: Taskpilot clean-up, the roadmap plan, Astro Preview
36
+ portal and wiki, companions. Rules that do not apply to the project are proposed for removal;
37
+ rules a script can check become checks.
38
+
39
+ Sync installs all five skills; agents load only the skill a task needs and only the engine
40
+ profile `game-dev.json` names, so unused parts cost nothing at run time.
41
+
42
+ ## Install and requirements
43
+
44
+ ```bash
45
+ agentkit sync game-dev --provider claude,codex
46
+ ```
47
+
48
+ Then ask the agent: "Use game-dev-setup on this project." Re-run the same request after a
49
+ bundle update or when the setup feels stale.
50
+
51
+ - [Python 3](https://www.python.org/downloads/), verify `python3 --version`. For XLSX balance:
52
+ `python3 -m pip install openpyxl`, verify `python3 -c "import openpyxl"`.
53
+ - [Git](https://git-scm.com/downloads).
54
+ - Optional: [Taskpilot](https://www.npmjs.com/package/@alexey_platkovsky/taskpilot)
55
+ (`npm install -g @alexey_platkovsky/taskpilot`), [Codex CLI](https://github.com/openai/codex)
56
+ for images and Codex reviews, [Claude Code](https://code.claude.com/docs) for reviews of Codex
57
+ sessions, [Godot 4](https://godotengine.org/download/) or Node 20+ with Vite for the engine
58
+ profiles, `agentkit` to install companions.
59
+
60
+ Model defaults are written into the project's `game-dev.json` and changed there; see
61
+ `skills/game-dev-setup/references/config.md`. `commands.test` runs through the platform shell.
62
+
63
+ ## Boundaries
64
+
65
+ - No CLI changes and no always-on hooks; Astro Preview's wiki hook and the roadmap hook are
66
+ offered by their own skills.
67
+ - No game-specific rules, numbers or style guides: those belong to the project.
68
+ - Engine profiles exist for Godot 4 and Three.js; other engines get the engine-agnostic rules.
69
+ - Companions are offered, never installed without the user's approval.
@@ -0,0 +1,24 @@
1
+ # Recommended Companions
2
+
3
+ Optional capabilities from the collection that complement the Game Dev bundle. None are required.
4
+ The audit (`game-dev-setup/scripts/audit.py`, `suggest`) maps each touchpoint below to a signal;
5
+ `roadmap`, `astro-preview` and `session-retro` have none and are always offered, `brainstorm` is
6
+ offered on request.
7
+
8
+ See `../kit-adopt/conventions/recommended-companions.md` for the declaration format.
9
+
10
+ | Companion | Kind | Suggested source | Touchpoint |
11
+ | --- | --- | --- | --- |
12
+ | `roadmap` | skill | `collection/skills/roadmap/` | Phases and milestones drawn from Taskpilot items (`game-planning`) |
13
+ | `astro-preview` | skill | `collection/skills/astro-preview/` | Register the game in Astro Preview, keep its wiki, README, sounds and run command current |
14
+ | `blender-3d` | bundle | `collection/bundles/blender-3d/` | `.blend`, FBX or GLB files, or Blender on the machine: props, reference models, retargeting |
15
+ | `art-direction-pass` | skill | `collection/skills/art-direction-pass/` | Concept art exists: bring the game's look closer to it, per category |
16
+ | `concept-scene-builder` | skill | `collection/skills/concept-scene-builder/` | Concept art exists: rebuild an environment scene from it |
17
+ | `concept-asset-builder` | skill | `collection/skills/concept-asset-builder/` | Concept art exists: build single objects to concept fidelity |
18
+ | `machine-builder` | skill | `collection/skills/machine-builder/` | Mechs, vehicles, turrets or aircraft to model |
19
+ | `mixamo` | skill | `collection/skills/mixamo/` | Humanoid models that need a rig and animation clips |
20
+ | `sfx-creator` | skill | `collection/skills/sfx-creator/` | Audio files exist or sounds are planned, with a local sfx-factory |
21
+ | `qa-automation` | bundle | `collection/bundles/qa-automation/` | Browser game: Playwright e2e creation, debugging and review |
22
+ | `session-retro` | bundle | `collection/bundles/session-retro/` | Retro after a session, then fix the skills it exposed |
23
+ | `brainstorm` | skill | `collection/skills/brainstorm/` | Open design decisions with several valid paths |
24
+ | `code-reviewer` | agent | `collection/agents/code-reviewer.md` | Only one of the Codex and Claude CLIs is available: a fresh-context review in the same tool |
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: game-code-reviewer
3
+ description: Get an independent, read-only review of a finished game code change from the other agent (Codex for a Claude session, Claude for a Codex session) with the model set in game-dev.json, and return its ranked findings. Use after implementing or refactoring game code, before reporting the work done.
4
+ isolation_reason: "The reviewer must not share the context that wrote the change, so its verdict is independent."
5
+ tools: Bash, Read, Grep, Glob
6
+ codex:
7
+ sandbox_mode: workspace-write
8
+ ---
9
+
10
+ # Game code reviewer
11
+
12
+ ## Responsibility
13
+
14
+ Prepare a review packet, run `tools/game-dev/delegate.py review code`, and return the result. Do
15
+ not edit project files, fix findings, or judge the change yourself instead of the reviewer.
16
+
17
+ ## Inputs
18
+
19
+ - The goal of the change and its acceptance criteria (Taskpilot item or the caller's words).
20
+ - The base to diff against (default: the repository's default branch, `origin/HEAD`).
21
+
22
+ ## Procedure
23
+
24
+ 1. `T=$(mktemp -d)`; write the packet there, never into the project. The diff includes
25
+ uncommitted work: `git diff $(git merge-base <base> HEAD) > "$T/change.patch"`. List untracked
26
+ files (`git ls-files --others --exclude-standard`) in the brief, which also states the goal,
27
+ acceptance criteria, base, and what the caller is unsure about.
28
+ 2. Run `python3 tools/game-dev/delegate.py review code --brief "$T/brief.md" --attach "$T/change.patch"`.
29
+ 3. On any non-zero exit, return its message verbatim; do not review in its place unless the caller asks,
30
+ and then say that the review is not independent.
31
+ 4. Return the script's output unchanged after one header line.
32
+
33
+ ## Output Contract
34
+
35
+ `Agent: game-code-reviewer - output below`, then the reviewer line (tool, model), the findings
36
+ exactly as returned, and the path of the saved review.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: game-image-generator
3
+ description: Generate game images (concept variants, object sheets, textures, icons) with Codex image generation through tools/game-dev/delegate.py, with the model from game-dev.json, writing only new files under paths.generated_art with a prompt record. Use when a task needs a generated image; the user picks among variants.
4
+ isolation_reason: "Image generation runs in Codex with its own sandbox and quota; the caller keeps only the result paths."
5
+ tools: Bash, Read, Write, Glob
6
+ codex:
7
+ sandbox_mode: workspace-write
8
+ ---
9
+
10
+ # Game image generator
11
+
12
+ ## Responsibility
13
+
14
+ Turn the caller's request into prompts, generate each image with `tools/game-dev/delegate.py
15
+ image`, and return the paths. Never choose a variant for the user; the script refuses overwrites
16
+ and paths outside the configured folder.
17
+
18
+ ## Inputs
19
+
20
+ - What to generate, how many variants (default 3 for concepts, 1 otherwise), the target folder
21
+ under `paths.generated_art`, and reference images (style, palette, layout).
22
+
23
+ ## Procedure
24
+
25
+ 1. `T=$(mktemp -d)`; write one prompt file per variant there. State subject, framing,
26
+ palette (exact hex values when the reference defines them), style, background, and what must
27
+ not appear. Vary one named aspect between variants.
28
+ 2. For each: `python3 tools/game-dev/delegate.py image --out <folder>/<name>-v<N>.png --prompt <file> [--ref <image>]`.
29
+ 3. Stop at the first non-zero exit and return its message.
30
+
31
+ ## Output Contract
32
+
33
+ `Agent: game-image-generator - output below`, then the script's `Generator:` line and a table:
34
+ path, what varies, references used.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: game-visual-reviewer
3
+ description: Get a fresh-context visual review of game screenshots, renders or generated images against their concept or reference from the other agent, with the model set in game-dev.json, and return at most five ranked findings. Use when a model, scene, UI or effect must match a concept, before accepting it.
4
+ isolation_reason: "Visual judgment must not inherit the maker's assumptions, notes or scores."
5
+ tools: Bash, Read, Glob
6
+ codex:
7
+ sandbox_mode: workspace-write
8
+ ---
9
+
10
+ # Game visual reviewer
11
+
12
+ ## Responsibility
13
+
14
+ Send the result images and their references to `tools/game-dev/delegate.py review visual` with a
15
+ brief that carries no build notes, metrics or hints, and return the verdict. Do not edit files or
16
+ soften the findings.
17
+
18
+ ## Inputs
19
+
20
+ - Result images (screenshots, renders) at the size the player sees them, plus close-ups if needed.
21
+ - Reference images (concept, approved look) and the must-have list from the caller.
22
+
23
+ ## Procedure
24
+
25
+ 1. `T=$(mktemp -d)`; write the brief there: what the object or screen is, which image is the
26
+ reference, the display size, the must-haves. Nothing about how it was built.
27
+ 2. Run `python3 tools/game-dev/delegate.py review visual --brief "$T/brief.md" --attach <result> ... --attach <reference> ...`.
28
+ 3. On any non-zero exit return the message verbatim and stop.
29
+ 4. Return the output unchanged after one header line.
30
+
31
+ ## Output Contract
32
+
33
+ `Agent: game-visual-reviewer - output below`, then the reviewer line, the findings and verdict
34
+ exactly as returned, and the path of the saved review.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: game-code
3
+ description: Write and organize game code - domain modules, a simulation separated from presentation, gameplay numbers and content in data files (JSON with schemas or XLSX imported to JSON) instead of logic, and the engine profile (Godot 4 or Three.js) named in game-dev.json. Use when adding or restructuring game code, adding units, items, levels or tuning values, or when balance data and its checks change.
4
+ ---
5
+
6
+ # Game code
7
+
8
+ ## Prerequisites
9
+
10
+ - `game-dev.json` (`engine`, `balance`) and the runtime in `tools/game-dev/` (from `game-dev-setup`).
11
+ - Read only the profile for the configured engine:
12
+ `.claude/skills/game-code/references/engine-godot.md` or
13
+ `.claude/skills/game-code/references/engine-threejs.md`. For `other`, follow the rules below
14
+ and the project's own conventions.
15
+
16
+ ## Rules
17
+
18
+ - **Domain modules.** Group code by game domain (`combat/`, `units/`, `economy/`, `world/`,
19
+ `ui/`, `audio/`), not by technical kind. One file, one responsibility; a file that needs "and"
20
+ to describe it is two files. Shared helpers live in a small `core/` and depend on nothing above.
21
+ - **Simulation apart from presentation.** Rules and state change in plain code that renders
22
+ nothing. Rendering, UI, audio and input read that state and send commands. Where the game
23
+ needs replays, networking or reproducible tests, the simulation advances in fixed steps from a
24
+ seeded random generator and never reads wall-clock time.
25
+ - **Numbers and content in data.** Stats, costs, timings, spawn tables, drop rates, level lists
26
+ and key bindings live in `balance.data`; logic reads them by id. A literal in logic is
27
+ allowed only for a true constant (a physics epsilon, an array index). Every data file has a
28
+ schema, except JSON generated from a workbook (checked by `import --check`);
29
+ `python3 tools/game-dev/balance.py check` validates them.
30
+ - **XLSX source** (`balance.source: xlsx`): edit the workbook in `balance.workbooks`, never the
31
+ generated JSON; row 1 keys, row 2 a note with unit and range, rows from 3 data; sheets starting
32
+ with `_` are notes. Run `python3 tools/game-dev/balance.py import`, commit workbook and JSON
33
+ together; `import --check` fails on drift.
34
+ - **Player text** goes to the localization files with a key; code and data refer to the key.
35
+ - **Names** come from the game's vocabulary in its design document; do not invent synonyms.
36
+ - **No speculative systems.** Build what the current phase needs (`phase` in game-dev.json).
37
+ Ask before inventing a mechanic the design does not describe.
38
+ - **Comments** say why, briefly, in English. No commented-out code.
39
+
40
+ ## Procedure
41
+
42
+ 1. Read the design document's section for the system and the matching engine profile.
43
+ 2. Put new numbers and content into data first (schema or workbook), then write the logic that
44
+ reads them, then the presentation.
45
+ 3. Add the tests the change needs (skill `game-testing`) at the lowest level that catches it.
46
+ 4. Run `python3 tools/game-dev/balance.py check` and the affected tests; before finishing, run
47
+ `python3 tools/game-dev/check.py`.
48
+ 5. When balance changes need evidence, run or add a batch simulation (many seeded runs, one
49
+ compact table per configuration) instead of judging from one playthrough.
50
+
51
+ ## Output contract
52
+
53
+ Emit `Skill: game-code - output below`, then: modules touched, data files and schemas added or
54
+ changed, tests added (with level), and the check.py lines.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Game Code"
3
+ short_description: "Domain modules, simulation apart from presentation, numbers in data"
4
+ default_prompt: "Use $game-code to implement this change with its data and engine rules."
@@ -0,0 +1,45 @@
1
+ # Godot 4 profile
2
+
3
+ ## Layout
4
+
5
+ ```
6
+ project.godot
7
+ src/<domain>/ # scripts by domain: combat/, units/, world/, ui/ ...
8
+ scenes/<domain>/ # .tscn next to the domain they belong to
9
+ data/ # JSON the game loads (balance.data); schemas in data/schemas/
10
+ design/balance/ # XLSX sources when balance.source is xlsx
11
+ assets/ # art, audio, models; assets/generated/ for generated images
12
+ tests/unit|component|integration|e2e/ # test_*.gd, one level per folder
13
+ tools/ # headless and Blender scripts, tools/game-dev/
14
+ ```
15
+
16
+ - Scene-first: a reusable thing is a scene with its script; wire signals in the scene when
17
+ possible. Autoloads only for true singletons (data registry, settings, save).
18
+ - Typed GDScript (`var hp: int`, typed function signatures); `class_name` for shared types.
19
+ - The simulation lives in plain `RefCounted`/`Resource` classes that never touch nodes, so it runs
20
+ in unit tests without a scene tree.
21
+ - Load data once through a registry autoload that reads `data/*.json` and exposes lookups by id;
22
+ fail loudly on a missing id.
23
+
24
+ ## Tests and commands
25
+
26
+ | Level | Folder | What |
27
+ | --- | --- | --- |
28
+ | unit | `tests/unit/` | simulation and data rules, no scene tree |
29
+ | component | `tests/component/` | one scene or node with its script |
30
+ | integration | `tests/integration/` | several systems in a test scene |
31
+ | e2e | `tests/e2e/` | a scripted or bot playthrough, screenshots on failure |
32
+
33
+ - Test functions are `func test_<name>():`. A `# SKIP` line fails the pyramid check until it is
34
+ removed, so fix or delete the test instead.
35
+ - The project supplies the runner (its own `tests/run.gd`, GUT or gdUnit4); record its full
36
+ command in `commands.test`. Example: `godot --headless --path . -s tests/run.gd -- --level unit`.
37
+ Use `--path` with the folder that holds `project.godot`; check it once with
38
+ `godot --headless --path . --quit`. Profile written against Godot 4.4 and later.
39
+ - Rendering and screenshots need a display or GPU; headless runs cannot judge visuals.
40
+
41
+ ## Test range
42
+
43
+ A `scenes/test_range/` scene behind the main menu's Test Range entry; sliders write into the data
44
+ registry at runtime, overlays are `CanvasLayer` nodes toggled from the range panel. What the range
45
+ must offer is in skill `game-testing`.
@@ -0,0 +1,47 @@
1
+ # Three.js profile
2
+
3
+ ## Layout
4
+
5
+ ```
6
+ src/sim/<domain>/ # pure TypeScript rules and state: no three.js, DOM, timers or Math.random
7
+ src/render/<domain>/ # three.js scenes, meshes, materials, cameras
8
+ src/ui/ # menus and HUD
9
+ src/audio/ # sound playback
10
+ src/data/ # typed loaders for data/*.json
11
+ data/ # JSON the game loads (balance.data); schemas in data/schemas/
12
+ design/balance/ # XLSX sources when balance.source is xlsx
13
+ tests/integration/ # *.int.test.ts
14
+ tests/e2e/ # *.spec.ts (Playwright)
15
+ tools/ # simulations, Blender scripts, tools/game-dev/
16
+ ```
17
+
18
+ - Strict TypeScript (`"strict": true`), ES modules, Vite. No `any` in simulation code.
19
+ - `src/sim` never imports from `src/render`, `src/ui` or `src/audio`; enforce it with a
20
+ dependency rule (for example dependency-cruiser or an ESLint import rule) in the check command.
21
+ - Random numbers come from a seeded generator passed into the simulation; time comes from the
22
+ fixed-step loop, never `Date.now()` or `performance.now()` inside `src/sim`.
23
+ - Data loaders validate on load in development and expose typed lookups by id.
24
+ - Dispose geometries, materials and textures when a scene is left; reuse materials across
25
+ instances.
26
+
27
+ ## Tests and commands
28
+
29
+ | Level | Place and suffix | Runner |
30
+ | --- | --- | --- |
31
+ | unit | `src/**/*.unit.test.ts` beside the module | Vitest |
32
+ | component | `src/**/*.comp.test.ts` (a render or UI piece with a fake scene or jsdom) | Vitest |
33
+ | integration | `tests/integration/*.int.test.ts` | Vitest |
34
+ | e2e | `tests/e2e/*.spec.ts` | Playwright |
35
+
36
+ - `.only`, `.skip` and `.fixme` with a title fail the pyramid check.
37
+ - While working: `npx vitest run <changed paths>` or `vitest related <files>`; the full run
38
+ (`commands.test`, for example `npm test && npx playwright test`) before finishing.
39
+ - e2e tests drive the game through a test hook (`window.__game` in development builds only), not
40
+ pixel positions; screenshots are evidence for visual review, not assertions.
41
+
42
+ ## Test range
43
+
44
+ A `?range` route behind the main menu's Test Range entry; sliders write into the loaded data at
45
+ runtime, and the stats panel shows FPS and `renderer.info` draw calls. What the range must offer
46
+ is in skill `game-testing`. Profile written against Vitest 3, Playwright 1.5x and three.js r17x;
47
+ check the project's versions.
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: game-delegation
3
+ description: Delegate game work to the roles in game-dev.json through tools/game-dev/delegate.py - images generated by Codex, independent read-only code review and fresh-context visual review by the other agent, and decide what stays in the main session. Use when a task needs generated images, a review before acceptance, or a choice about handing work to a subagent.
4
+ ---
5
+
6
+ # Game delegation
7
+
8
+ ## Prerequisites
9
+
10
+ - `game-dev.json` (`models`, `paths.generated_art`, `timeouts`) and `tools/game-dev/delegate.py`.
11
+ - The Codex CLI for images and Codex reviews (`codex --version`); the Claude Code CLI for reviews
12
+ of Codex sessions (`claude --version`). `python3 tools/game-dev/delegate.py check` shows both.
13
+
14
+ ## Roles
15
+
16
+ | Role | Runs in | Writes | Use for |
17
+ | --- | --- | --- | --- |
18
+ | image | Codex (`models.image`) | one PNG under `paths.generated_art` plus its `.prompt.md` | concepts (3-4 variants for the user to pick), object sheets, textures |
19
+ | code review | the other agent (`models.code_review` / `claude_review`) | nothing | every non-trivial code change before it is reported done |
20
+ | visual review | the other agent, fresh context (`models.visual_review` / `claude_review`) | nothing | any result that must match a concept or reference |
21
+ | worker subagent | the session's own tool | the files of its task | a self-contained task the session can verify afterwards |
22
+
23
+ The agents `game-code-reviewer`, `game-visual-reviewer` and `game-image-generator` wrap these
24
+ calls; use them or call the script directly.
25
+
26
+ ## Commands
27
+
28
+ ```sh
29
+ python3 tools/game-dev/delegate.py image --out assets/generated/<area>/<name>.png --prompt prompt.md [--ref concept.png]
30
+ python3 tools/game-dev/delegate.py review code --brief brief.md [--attach change.patch]
31
+ python3 tools/game-dev/delegate.py review visual --brief brief.md --attach shot.png --attach concept.png
32
+ ```
33
+
34
+ - The brief names the goal, the acceptance criteria and the files or images to judge. Give the
35
+ visual reviewer the reference and the result only: no build notes, no scores, no hints.
36
+ - For a code review attach the diff including uncommitted work, written outside the project
37
+ (`git diff $(git merge-base <base> HEAD) > "$T/change.patch"`), and list untracked files.
38
+ - The script refuses to overwrite an image; pick a new name and let the user choose.
39
+ - `--reviewer codex|claude` overrides the automatic choice; it never picks the calling agent.
40
+
41
+ ## Rules
42
+
43
+ - **Nothing is accepted by the context that made it.** The reviewer's findings are claims: check
44
+ each against the code or image, fix the real ones, say which you rejected and why.
45
+ - **At most three review rounds** for one piece of work; then stop and show the user what is left.
46
+ - **Do not delegate tiny work.** A rename, a recolor or a one-line fix stays in the session.
47
+ - **A worker's report is a claim.** Verify its result (tests, check.py, a look at the output)
48
+ before reporting it done. Workers do not commit unless the project's commit policy says so.
49
+ - **Long runs.** A delegated run that exceeds `timeouts.delegate_seconds` is killed; report it,
50
+ do not restart it in a loop.
51
+ - **Quota.** Each delegated run spends the user's quota. Run what the task needs, not variants
52
+ nobody asked for.
53
+ - Change models in `game-dev.json`, never in the script or a prompt.
54
+
55
+ ## Output contract
56
+
57
+ Emit `Skill: game-delegation - output below`, then per run: role, tool and model (from the
58
+ script's `Reviewer:` or `Generator:` line), inputs, output path, accepted and rejected findings.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Game Delegation"
3
+ short_description: "Codex images, independent code and visual reviews per game-dev.json"
4
+ default_prompt: "Use $game-delegation to get an independent review of this change."
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: game-dev-setup
3
+ description: Set up or re-review a game project for AI-assisted development in one pass - audit it, propose what to add, fix or remove (lean AGENTS.md section, game-dev.json with per-role models and policies, tools/game-dev checks, Taskpilot, roadmap, Astro Preview, companions), apply after approval. Use for a game new to this bundle, after a bundle update, or when its AI setup feels heavy or stale.
4
+ ---
5
+
6
+ # Game dev setup
7
+
8
+ One entry point for the game-dev bundle. It never writes before the user approves the proposal,
9
+ and it leaves the project with less instruction text, not more: rules that a script can check
10
+ become checks, rules that do not apply are removed.
11
+
12
+ ## Prerequisites
13
+
14
+ - Python 3 (standard library). XLSX balance needs `openpyxl`: `python3 -m pip install openpyxl`.
15
+ - Git. Optional CLIs that the audit looks for: `taskpilot`, `codex`, `claude`, `agentkit`,
16
+ `godot`, `blender`, `node`.
17
+ - This skill's resources, installed with it under `.claude/skills/game-dev-setup/` (other tools
18
+ use their own skills directory): `scripts/` (audit, install and the runtime copied into the
19
+ project), `assets/agents-section.md`, `references/config.md` (every game-dev.json key).
20
+
21
+ ## Stop conditions
22
+
23
+ - The project folder is not a game, or the user wants only one narrow change: do that change, skip the setup.
24
+ - Uncommitted work (`git.uncommitted` in the audit) in files the proposal would touch: ask the
25
+ user to commit or stash first.
26
+ - The user has not approved the proposal table: write nothing.
27
+ - `install.py` reports `conflict`: show the file and the difference; ask whether to keep it or
28
+ replace it (`--force-file PATH` for one file, `--force` for every differing runtime file). A
29
+ conflict on the Claude Code adapter is resolved by merging the `@AGENTS.md` import by hand.
30
+
31
+ ## Procedure
32
+
33
+ The stop conditions apply at every step and halt it.
34
+
35
+ 1. **Audit** (read-only): `python3 .claude/skills/game-dev-setup/scripts/audit.py --project . --json`.
36
+ Read its facts; then read the project's AGENTS.md, the Claude Code adapter that imports it, the
37
+ skills and agents it lists, and the README. Note what each rule is for.
38
+ 2. **Ask** only what the audit cannot answer, one question at a time:
39
+ genre and the shape of its balance data (see "Balance source" below), the commit policy
40
+ (`on-request` or `after-checks`), the preview policy (`in-game` or `web-page`), the current
41
+ phase if `docs/roadmap_plan.json` does not say it, and the test and run commands if none are
42
+ evident. Defaults are in `references/config.md`; offer them as the first option.
43
+ 3. **Propose** one table, nothing written yet:
44
+
45
+ | Item | Action | Why | Files |
46
+ | --- | --- | --- | --- |
47
+
48
+ Actions are `add`, `fix`, `remove`, `keep`. Cover:
49
+ - the AGENTS.md game-dev section and the Claude Code adapter;
50
+ - `game-dev.json` and the runtime in `tools/game-dev/`;
51
+ - existing rules that duplicate the section, contradict it, belong to a finished phase, or
52
+ can become a script check (propose the check);
53
+ - model names hard-coded in scripts (`hardcoded_models`): point them at `game-dev.json`;
54
+ - an established test layout that matches no level (`tests.problems`): either map it with
55
+ `tests.levels` in game-dev.json or plan the move into the preset folders - the user picks;
56
+ - gameplay JSON outside the data folder (`json_in_code`): set `balance.data` to where it
57
+ lives or plan the move, and add schemas;
58
+ - Taskpilot: init when missing, re-parent orphan tasks, move DoD out of descriptions
59
+ (rules: skill `game-planning`);
60
+ - the roadmap plan (companion `roadmap`) and the game's Astro Preview entry with wiki and
61
+ README (companion `astro-preview`, following that skill; wiki updates do not commit unless
62
+ the commit policy is `after-checks`); skip a companion that is not installed;
63
+ - companions from `suggest` with their signal, installed with
64
+ `agentkit sync <name> --provider <providers>`; leave out what has no signal.
65
+ 4. **Apply** after approval, in this order:
66
+ `python3 .claude/skills/game-dev-setup/scripts/install.py --project . --engine <e> --genre <g>
67
+ --phase <p> --balance <json|xlsx> --commit <p> --preview <p> [--test-command CMD] [--run-command CMD]`
68
+ (run it with `--dry-run` first and show the output), then the approved removals and fixes,
69
+ then companions, Taskpilot and Astro Preview steps. `install.py` never rewrites an existing
70
+ `game-dev.json`: edit the approved keys in the file, then run it again to re-render the section.
71
+ 5. **Verify**: `python3 tools/game-dev/check.py` and `python3 tools/game-dev/delegate.py check`.
72
+ Report the printed lines. A failing pyramid or balance check in an existing project is a
73
+ finding to plan, not a reason to weaken the check.
74
+
75
+ ## Re-review
76
+
77
+ Run the same procedure on a project that already has `game-dev.json`. The audit compares the
78
+ runtime with this kit version; the proposal lists stale or adapted runtime files, section drift,
79
+ rules that grew back into AGENTS.md, phase changes, and companions that are now needed or no
80
+ longer used. Keep project adaptations unless the user chooses the kit version.
81
+
82
+ ## Balance source
83
+
84
+ The game always reads JSON from `balance.data`. Choose the source by the data's shape:
85
+
86
+ - **json** (with a schema per file in `balance.schemas`): few entities with nested parameters -
87
+ action, runner, arcade, settings, input bindings.
88
+ - **xlsx** (imported to JSON by `tools/game-dev/balance.py import`): tables of many entities by
89
+ many stats that people tune side by side - strategy, tactics, tower defense, RPG, cards.
90
+
91
+ ## Output contract
92
+
93
+ Emit `Skill: game-dev-setup - output below`, then:
94
+
95
+ | Field | Content |
96
+ | --- | --- |
97
+ | Mode | setup / re-review |
98
+ | Engine, genre, phase | values written to game-dev.json |
99
+ | Applied | the approved table rows, each with its result |
100
+ | Removed | rules or files removed, with where their intent now lives |
101
+ | Companions | installed / offered and declined |
102
+ | Checks | the lines check.py and delegate.py check printed |
103
+ | Open items | conflicts, failing checks, decisions left to the user |
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Game Dev Setup"
3
+ short_description: "Audit a game project and set up lean AI development, checks, tracker, roadmap and companions"
4
+ default_prompt: "Use $game-dev-setup to audit this game project and propose its game-dev setup."
@@ -0,0 +1,20 @@
1
+ <!-- game-dev:begin (managed by game-dev-setup: change game-dev.json, then re-run the setup review) -->
2
+ ## Game development
3
+
4
+ - Settings live in `game-dev.json`: engine {engine}, genre {genre}, phase {phase}, a model per
5
+ role, and the policies below. Change models and policies there, never in scripts or prompts.
6
+ - Phase {phase}: build only what this phase needs; move the rest to a later phase or drop it.
7
+ Phases, roadmap and Taskpilot items: skill `game-planning`.
8
+ - Code is split into domain modules. Gameplay numbers and content live in `{data}` ({balance}),
9
+ never in logic. Layout, data and engine rules: skill `game-code`.
10
+ - Write each test at the lowest pyramid level that catches the behavior. While working, run the
11
+ tests the change can affect; every system is reachable in the test range. Skill `game-testing`.
12
+ - Images are generated, and code and visuals are reviewed, by the roles in `game-dev.json` through
13
+ `tools/game-dev/delegate.py`; nothing is accepted by the context that made it. Skill `game-delegation`.
14
+ - Text for AI readers (instructions, prompts, code comments) is English. Player-facing text lives
15
+ in localization files.
16
+ - Commits: {commit}
17
+ - Previews: {preview}
18
+ - Done means checked: run `python3 tools/game-dev/check.py` and report what it printed. When a rule
19
+ can be checked by a script, add the check instead of another sentence here.
20
+ <!-- game-dev:end -->