agent-manifesto-kit 1.8.2 → 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 (56) 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/concept-asset-builder/SKILL.md +14 -5
  39. package/collection/skills/concept-asset-builder/assets/templates/agent_brief.md +5 -2
  40. package/collection/skills/concept-asset-builder/references/field-lessons.md +9 -0
  41. package/collection/skills/concept-asset-builder/scripts/blender/render_views.py +4 -2
  42. package/collection/skills/concept-asset-builder/scripts/codex_review.sh +4 -1
  43. package/collection/skills/concept-asset-builder/scripts/godot/capture.gd +5 -2
  44. package/collection/skills/concept-asset-builder/scripts/init_workspace.sh +1 -1
  45. package/collection/skills/concept-asset-builder/scripts/measure_silhouette.py +18 -4
  46. package/collection/skills/concept-asset-builder/scripts/overlay_masks.py +25 -0
  47. package/collection/skills/concept-asset-builder/scripts/test_tools.py +44 -0
  48. package/collection/skills/concept-asset-builder/scripts/threejs/studio.js +4 -2
  49. package/collection/skills/concept-asset-builder/scripts/wear_stats.py +35 -1
  50. package/collection/skills/mixamo/SKILL.md +109 -0
  51. package/collection/skills/mixamo/agents/openai.yaml +4 -0
  52. package/collection/skills/mixamo/scripts/mixamo.py +264 -0
  53. package/collection/skills/mixamo/scripts/test_mixamo.py +108 -0
  54. package/collection/skills/sfx-creator/SKILL.md +160 -0
  55. package/collection/skills/sfx-creator/agents/openai.yaml +4 -0
  56. package/package.json +1 -1
@@ -0,0 +1,309 @@
1
+ """Tests for the game-dev runtime. Standard library only; no model, network or Codex call.
2
+
3
+ python3 -m unittest discover -s <skill>/scripts
4
+ """
5
+
6
+ import contextlib
7
+ import io
8
+ import json
9
+ import sys
10
+ import tempfile
11
+ import unittest
12
+ from pathlib import Path
13
+
14
+ HERE = Path(__file__).resolve().parent
15
+ sys.path.insert(0, str(HERE))
16
+ import audit # noqa: E402
17
+ import balance # noqa: E402
18
+ import delegate # noqa: E402
19
+ import gamedev_config # noqa: E402
20
+ import install # noqa: E402
21
+ import instruction_size # noqa: E402
22
+ import pyramid # noqa: E402
23
+
24
+
25
+ def quiet(fn, *args, **kwargs):
26
+ out = io.StringIO()
27
+ with contextlib.redirect_stdout(out), contextlib.redirect_stderr(io.StringIO()):
28
+ code = fn(*args, **kwargs)
29
+ return code, out.getvalue()
30
+
31
+
32
+ class Project(unittest.TestCase):
33
+ def setUp(self):
34
+ self.tmp = tempfile.TemporaryDirectory()
35
+ self.root = Path(self.tmp.name)
36
+
37
+ def tearDown(self):
38
+ self.tmp.cleanup()
39
+
40
+ def write(self, rel, text):
41
+ path = self.root / rel
42
+ path.parent.mkdir(parents=True, exist_ok=True)
43
+ path.write_text(text, encoding="utf-8")
44
+ return path
45
+
46
+ def config(self, **values):
47
+ self.write("game-dev.json", json.dumps(values))
48
+
49
+
50
+ class ConfigTests(Project):
51
+ def test_defaults_fill_missing_keys_and_engine_preset(self):
52
+ self.config(engine="godot")
53
+ cfg, root = gamedev_config.load(self.root)
54
+ self.assertEqual(root, self.root.resolve())
55
+ self.assertEqual(cfg["models"]["code_review"]["tool"], "codex")
56
+ self.assertEqual(cfg["tests"]["levels"][0]["name"], "unit")
57
+ self.assertIn(".gd", cfg["tests"]["levels"][0]["pattern"])
58
+
59
+ def test_invalid_values_are_reported(self):
60
+ self.config(engine="unity", models={"image": {"tool": "claude", "model": "x", "effort": "high"}})
61
+ with self.assertRaises(gamedev_config.ConfigError) as error:
62
+ gamedev_config.load(self.root)
63
+ self.assertIn("engine", str(error.exception))
64
+ self.assertIn("image generation runs in Codex", str(error.exception))
65
+
66
+ def test_wrong_section_types_are_reported_not_raised(self):
67
+ for bad in ({"models": {"image": "codex"}}, {"policies": "strict"}):
68
+ self.write("game-dev.json", json.dumps(bad))
69
+ with self.assertRaises(gamedev_config.ConfigError) as error:
70
+ gamedev_config.load(self.root)
71
+ self.assertIn("must be an object", str(error.exception))
72
+
73
+ def test_null_art_path_and_bad_timeout_are_reported(self):
74
+ self.config(paths={"generated_art": None}, timeouts={"delegate_seconds": "x"})
75
+ with self.assertRaises(gamedev_config.ConfigError) as error:
76
+ gamedev_config.load(self.root)
77
+ self.assertIn("paths.generated_art", str(error.exception))
78
+ self.assertIn("timeouts.delegate_seconds", str(error.exception))
79
+
80
+ def test_missing_file_is_an_error_when_required(self):
81
+ with self.assertRaises(gamedev_config.ConfigError):
82
+ gamedev_config.load(self.root)
83
+
84
+
85
+ class DelegateTests(Project):
86
+ def cfg(self):
87
+ self.config(engine="threejs")
88
+ return gamedev_config.load(self.root)[0]
89
+
90
+ def test_review_runs_in_the_other_agent(self):
91
+ cfg, found = self.cfg(), (lambda name: f"/bin/{name}")
92
+ self.assertEqual(delegate.review_spec(cfg, "code", "auto", {"CLAUDECODE": "1"}, found)["tool"], "codex")
93
+ self.assertEqual(delegate.review_spec(cfg, "code", "auto", {"CODEX_THREAD_ID": "t"}, found)["tool"], "claude")
94
+ with self.assertRaises(delegate.DelegationError):
95
+ delegate.review_spec(cfg, "code", "codex", {"CODEX_THREAD_ID": "t"}, found)
96
+
97
+ def test_missing_cli_fails_closed(self):
98
+ with self.assertRaises(delegate.DelegationError):
99
+ delegate.review_spec(self.cfg(), "visual", "auto", {"CLAUDECODE": "1"}, lambda name: None)
100
+
101
+ def test_codex_command_reads_stdin_and_uses_config(self):
102
+ cfg = self.cfg()
103
+ command = delegate.codex_command(self.root, cfg["models"]["code_review"], Path("o.md"), [], "read-only")
104
+ self.assertEqual(command[-1], "-")
105
+ for flag in ("--skip-git-repo-check", "--ephemeral", "--sandbox", "read-only", "gpt-6.2-sol"):
106
+ self.assertIn(flag, command)
107
+ self.assertIn('model_reasoning_effort="high"', command)
108
+
109
+ def test_image_refuses_paths_outside_generated_art_and_overwrites(self):
110
+ self.cfg()
111
+ prompt = self.write("p.md", "a crate")
112
+ code, _ = quiet(delegate.main, ["--project", str(self.root), "image", "--out", str(self.root / "x.png"),
113
+ "--prompt", str(prompt), "--dry-run"], env={})
114
+ self.assertEqual(code, 2)
115
+ self.write("assets/generated/x.png", "old")
116
+ code, _ = quiet(delegate.main, ["--project", str(self.root), "image", "--out",
117
+ str(self.root / "assets/generated/x.png"), "--prompt", str(prompt),
118
+ "--dry-run"], env={})
119
+ self.assertEqual(code, 2)
120
+ code, out = quiet(delegate.main, ["--project", str(self.root), "image", "--out",
121
+ str(self.root / "assets/generated/y.png"), "--prompt", str(prompt),
122
+ "--dry-run"], env={})
123
+ self.assertEqual(code, 0)
124
+ self.assertIn("workspace-write", out)
125
+ self.config(engine="threejs", paths={"generated_art": "../outside"})
126
+ code, _ = quiet(delegate.main, ["--project", str(self.root), "image", "--out",
127
+ str(self.root.parent / "outside/x.png"), "--prompt", str(prompt),
128
+ "--dry-run"], env={})
129
+ self.assertEqual(code, 2)
130
+
131
+ def test_changed_files_sees_edits_to_already_dirty_files(self):
132
+ import shutil
133
+ import subprocess
134
+ if shutil.which("git") is None:
135
+ self.skipTest("git not installed")
136
+ subprocess.run(["git", "init", "-q"], cwd=self.root, check=True)
137
+ self.write("package.json", "{}")
138
+ before = delegate.changed_files(self.root)
139
+ self.write("package.json", "{\"x\": 1}")
140
+ after = delegate.changed_files(self.root)
141
+ self.assertNotEqual(before["package.json"], after["package.json"])
142
+
143
+ def test_review_prompt_carries_role_rubric_and_attachments(self):
144
+ brief = "Changed the spawner."
145
+ text = delegate.review_prompt("code", self.root, brief, [self.root / "d.patch"])
146
+ self.assertIn("independent reviewer", text)
147
+ self.assertIn("d.patch", text)
148
+ self.assertIn(brief, text)
149
+
150
+
151
+ class BalanceTests(Project):
152
+ def test_schema_subset(self):
153
+ schema = {"type": "array", "uniqueKey": "id", "items": {"type": "object", "required": ["id", "hp"],
154
+ "additionalProperties": False, "properties": {"id": {"type": "string"},
155
+ "hp": {"type": "integer", "minimum": 1}}}}
156
+ good = [{"id": "a", "hp": 3}]
157
+ bad = [{"id": "a", "hp": 0}, {"id": "a", "hp": 2, "x": 1}, {"hp": 1.5}]
158
+ self.assertEqual(balance.validate(good, schema), [])
159
+ problems = "\n".join(balance.validate(bad, schema))
160
+ for expected in ("minimum", "unknown key", "missing required key 'id'", "expected integer", "duplicate id"):
161
+ self.assertIn(expected, problems)
162
+
163
+ def test_check_requires_a_schema_per_data_file(self):
164
+ self.config(engine="other")
165
+ self.write("data/units.json", json.dumps([{"id": "a"}]))
166
+ code, out = quiet(balance.main, ["--project", str(self.root), "check"])
167
+ self.assertEqual(code, 1)
168
+ self.assertIn("no schema", out)
169
+ self.write("data/schemas/units.schema.json", json.dumps({"type": "array", "uniqueKey": "id"}))
170
+ code, out = quiet(balance.main, ["--project", str(self.root), "check"])
171
+ self.assertEqual(code, 0, out)
172
+
173
+ def test_xlsx_import_and_drift(self):
174
+ try:
175
+ from openpyxl import Workbook
176
+ except ImportError:
177
+ self.skipTest("openpyxl not installed")
178
+ self.config(engine="other", balance={"source": "xlsx"})
179
+ book = Workbook()
180
+ sheet = book.active
181
+ sheet.title = "units"
182
+ for row in (["id", "hp"], ["unique id", "1..100"], ["scout", 10], ["tank", 40]):
183
+ sheet.append(row)
184
+ book.create_sheet("_notes").append(["ignored"])
185
+ (self.root / "design/balance").mkdir(parents=True)
186
+ book.save(self.root / "design/balance/units.xlsx")
187
+ code, _ = quiet(balance.main, ["--project", str(self.root), "import", "--check"])
188
+ self.assertEqual(code, 1) # no JSON yet
189
+ code, _ = quiet(balance.main, ["--project", str(self.root), "import"])
190
+ self.assertEqual(code, 0)
191
+ data = json.loads((self.root / "data/units.json").read_text())
192
+ self.assertEqual(data, {"units": [{"id": "scout", "hp": 10}, {"id": "tank", "hp": 40}]})
193
+ code, _ = quiet(balance.main, ["--project", str(self.root), "import", "--check"])
194
+ self.assertEqual(code, 0)
195
+ code, out = quiet(balance.main, ["--project", str(self.root), "check"])
196
+ self.assertEqual(code, 0, out) # workbook JSON needs no schema
197
+ sheet["B3"] = 11
198
+ book.save(self.root / "design/balance/units.xlsx")
199
+ code, out = quiet(balance.main, ["--project", str(self.root), "import", "--check"])
200
+ self.assertEqual(code, 1)
201
+ self.assertIn("out of date", out)
202
+
203
+ def test_xlsx_source_without_workbooks_fails_the_drift_check(self):
204
+ self.config(engine="other", balance={"source": "xlsx"})
205
+ code, _ = quiet(balance.main, ["--project", str(self.root), "import", "--check"])
206
+ self.assertEqual(code, 1)
207
+
208
+
209
+ class PyramidTests(Project):
210
+ def test_inverted_pyramid_and_unknown_level_fail(self):
211
+ self.config(engine="threejs")
212
+ self.write("src/a.unit.test.ts", "it('a', () => {})\n" * 2)
213
+ self.write("tests/e2e/b.spec.ts", "test('b', () => {})\n" * 12)
214
+ self.write("src/c.test.ts", "it('c', () => {})\n")
215
+ code, out = quiet(pyramid.main, ["--project", str(self.root)])
216
+ self.assertEqual(code, 1)
217
+ self.assertIn("matches no test level", out)
218
+ self.assertIn("pyramid inverted", out)
219
+
220
+ def test_godot_preset_counts_test_functions_and_flags_focus(self):
221
+ self.config(engine="godot")
222
+ self.write("tests/unit/test_hp.gd", "func test_a():\n\tpass\nfunc test_b():\n\tpass\n")
223
+ self.write("tests/integration/test_wave.gd", "# SKIP flaky\nfunc test_c():\n\tpass\n")
224
+ counts, problems = pyramid.measure(self.root, gamedev_config.load(self.root)[0]["tests"])
225
+ self.assertEqual(counts["unit"]["cases"], 2)
226
+ self.assertTrue(any("focused or skipped" in p for p in problems))
227
+
228
+ def test_godot_project_in_a_subfolder_and_unlevelled_smoke_tests(self):
229
+ self.config(engine="godot")
230
+ self.write("game/tests/unit/test_a.gd", "func test_a():\n\tpass\n")
231
+ self.write("game/tests/inventory_smoke.gd", "func test_b():\n\tpass\n")
232
+ counts, problems = pyramid.measure(self.root, gamedev_config.load(self.root)[0]["tests"])
233
+ self.assertEqual(counts["unit"]["cases"], 1)
234
+ self.assertTrue(any("inventory_smoke.gd: matches no test level" in p for p in problems))
235
+
236
+
237
+ class SizeTests(Project):
238
+ def test_limits(self):
239
+ self.config(engine="other", limits={"max_lines": 3})
240
+ self.write("AGENTS.md", "a\n" * 5)
241
+ self.write(".claude/skills/x/SKILL.md", "---\nname: x\ndescription: " + "d" * 500 + "\n---\nbody\n")
242
+ problems = instruction_size.measure(self.root, gamedev_config.load(self.root)[0]["limits"])
243
+ self.assertTrue(any("AGENTS.md: 5 lines" in p for p in problems))
244
+ self.assertTrue(any("description 500" in p for p in problems))
245
+
246
+
247
+ class InstallAndAuditTests(Project):
248
+ def test_install_is_idempotent_and_keeps_text_outside_the_section(self):
249
+ self.write("AGENTS.md", "# Game\n\nOwn rule.\n")
250
+ self.write("project.godot", "")
251
+ args = ["--project", str(self.root), "--engine", "godot", "--genre", "tactics", "--balance", "xlsx"]
252
+ code, out = quiet(install.main, args + ["--dry-run"])
253
+ self.assertEqual(code, 0)
254
+ self.assertFalse((self.root / "game-dev.json").exists())
255
+ code, out = quiet(install.main, args)
256
+ self.assertEqual(code, 0, out)
257
+ agents = (self.root / "AGENTS.md").read_text()
258
+ self.assertIn("Own rule.", agents)
259
+ self.assertIn("engine godot, genre tactics", agents)
260
+ self.assertIn("XLSX workbooks", agents)
261
+ self.assertTrue((self.root / "tools/game-dev/delegate.py").is_file())
262
+ self.assertTrue((self.root / "tools/game-dev/prompts/code_review.md").is_file())
263
+ self.assertEqual((self.root / install.CLAUDE_ADAPTER).read_text(), "@AGENTS.md\n")
264
+ code, out = quiet(install.main, args)
265
+ self.assertEqual(code, 0)
266
+ self.assertNotIn("add ", out)
267
+ self.assertNotIn("update ", out)
268
+ self.assertEqual((self.root / "AGENTS.md").read_text(), agents)
269
+
270
+ def test_locally_changed_runtime_is_kept_as_conflict(self):
271
+ quiet(install.main, ["--project", str(self.root), "--engine", "other"])
272
+ self.write("tools/game-dev/balance.py", "# adapted\n")
273
+ code, out = quiet(install.main, ["--project", str(self.root), "--engine", "other"])
274
+ self.assertEqual(code, 1)
275
+ self.assertIn("conflict", out)
276
+ self.assertEqual((self.root / "tools/game-dev/balance.py").read_text(), "# adapted\n")
277
+
278
+ def test_audit_reports_engine_hardcoded_models_and_suggestions(self):
279
+ self.write("package.json", json.dumps({"dependencies": {"three": "1"}}))
280
+ self.write("scripts/img.sh", "codex exec -m gpt-6.2-sol\n")
281
+ self.write("art/concepts/hero.png", "")
282
+ self.write("assets/sfx/hit.wav", "")
283
+ report = audit.audit(self.root)
284
+ self.assertEqual(report["engine"], "threejs")
285
+ self.assertEqual(report["hardcoded_models"][0]["models"], ["gpt-6.2-sol"])
286
+ names = {s["name"] for s in report["suggest"]}
287
+ self.assertTrue({"art-direction-pass", "sfx-creator", "qa-automation", "astro-preview"} <= names)
288
+ self.assertEqual(report["game_dev"]["runtime"]["delegate.py"], "missing")
289
+ quiet(install.main, ["--project", str(self.root), "--engine", "threejs"])
290
+ self.write("tools/game-dev/pyramid.py", "# adapted\n")
291
+ runtime = audit.audit(self.root)["game_dev"]["runtime"]
292
+ self.assertEqual((runtime["delegate.py"], runtime["pyramid.py"]), ("same", "differs"))
293
+ self.write(".claude/skills/game-dev-setup/scripts/gamedev_config.py", "MODEL = 'gpt-6.2-sol'\n")
294
+ files = [h["file"] for h in audit.audit(self.root)["hardcoded_models"]]
295
+ self.assertEqual(files, ["scripts/img.sh"])
296
+
297
+ def test_unknown_force_file_is_a_conflict(self):
298
+ code, out = quiet(install.main, ["--project", str(self.root), "--engine", "other", "--force-file", "nope.py"])
299
+ self.assertEqual(code, 1)
300
+ self.assertIn("not a runtime file", out)
301
+
302
+ def test_dot_slash_import_counts_as_adapter(self):
303
+ self.write(install.CLAUDE_ADAPTER, "@./AGENTS.md\n")
304
+ code, out = quiet(install.main, ["--project", str(self.root), "--engine", "other"])
305
+ self.assertEqual(code, 0, out)
306
+
307
+
308
+ if __name__ == "__main__":
309
+ unittest.main()
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: game-planning
3
+ description: Plan a game's work by phase (pre-alpha, alpha, beta, release) and keep its Taskpilot tracker useful - epics, features with separate DoR/DoD, tasks sized as one reviewable change, bugs only when they outlive the work that found them, and a current roadmap. Use when planning work, creating or closing items, moving work between phases, or when the tracker looks noisy.
4
+ ---
5
+
6
+ # Game planning
7
+
8
+ ## Prerequisites
9
+
10
+ - `taskpilot` CLI (`npm install -g @alexey_platkovsky/taskpilot`; verify `taskpilot --help`) and
11
+ an initialized workspace (`taskpilot init . --key <KEY> --name "<Game>"`).
12
+ - `game-dev.json` for the current phase. Optional companion `roadmap` for the roadmap page.
13
+
14
+ ## Phases
15
+
16
+ The current phase is `phase` in game-dev.json; the roadmap plan holds the dates.
17
+
18
+ | Phase | Goal | Exit criteria |
19
+ | --- | --- | --- |
20
+ | pre-alpha | The core loop is playable end to end | Every core system works in greybox; the test range reaches each one; numbers come from data; no final art required |
21
+ | alpha | Feature complete | Every planned feature exists in first-pass form; first-pass art and sound; balance simulations run; save/load and settings work |
22
+ | beta | Content complete and stable | All content in; polish, performance budget met, localization, no known crash; only fixes and tuning land |
23
+ | release | Shippable | Store build, platform checks, release notes |
24
+
25
+ - Work that the current phase does not need goes to a later phase or is cancelled, even when it
26
+ is easy. Visual polish is not pre-alpha work unless it blocks judging the core loop.
27
+ - When the user asks for something from a later phase, say so and ask whether to pull it in.
28
+
29
+ ## Tracker shape
30
+
31
+ - **epic**: a large capability or milestone area (combat, economy, first biome). Has features.
32
+ - **feature**: one player-visible capability. `description` is a short goal, scope and non-goals;
33
+ `dor` and `dod` are separate fields (never inside the description); tests belong in `dod`.
34
+ Every feature has a parent epic and a phase tag (`pre-alpha`, `alpha`, `beta`, `release`).
35
+ - **task**: one reviewable change, usually a few hours of agent work, with its parent feature.
36
+ Do not create a task per step, per file or per review round; steps go in the task's comments.
37
+ When the user asks for such tasks, say why one task fits better and create them only if they insist.
38
+ - **bug**: a defect that survives the work that found it (found later, in another area, or left
39
+ for another phase), linked to the related feature. A defect fixed in the same task is a comment
40
+ on that task, not an item.
41
+ - Status: a parent moves to `in_progress` when its first child starts and to `done` only when all
42
+ children are done or cancelled. Nothing stays `in_progress` without work on it. Obsolete items
43
+ are `cancelled` with a one-line reason; deletion is only on the user's explicit request.
44
+ - Item IDs go into branch names and commit messages so the roadmap can link work to items.
45
+
46
+ ## Taskpilot commands
47
+
48
+ ```sh
49
+ taskpilot --json validate < /dev/null
50
+ taskpilot --json item list < /dev/null
51
+ taskpilot --json item create --type feature --title "..." --parent EPIC --tag alpha --description "..." < /dev/null
52
+ taskpilot --json item update ID --status in_progress < /dev/null
53
+ taskpilot --json item comment ID "What changed and what was verified." < /dev/null
54
+ ```
55
+
56
+ - Close stdin (`< /dev/null`): with an open terminal stdin some calls wait or are killed.
57
+ - When the CLI cannot set `dor`/`dod`, edit those keys in `.taskpilot/items/<ID>.yaml` as YAML
58
+ lists, keep every other key, then run `validate` at once.
59
+ - Validate after every create or update; stop on errors.
60
+
61
+ ## Roadmap
62
+
63
+ With the `roadmap` companion: phases and milestones live in `docs/roadmap_plan.json`, the page
64
+ is generated from Taskpilot. After items or phases change: `build`, then `check`; never hand-edit
65
+ the page. Phase blocks list epics or features, not tasks.
66
+
67
+ ## Procedure
68
+
69
+ 1. Read game-dev.json (`phase`), the roadmap plan and the open items of the current phase.
70
+ 2. For a new request, find the epic and phase it belongs to. Agree the feature's scope, DoR and
71
+ DoD with the user, then create the feature and its tasks; ask when the phase is unclear.
72
+ 3. Review the tracker when asked or when it looks noisy: merge micro-tasks into one task, turn
73
+ same-task defects into comments, re-parent orphans, cancel obsolete items, move out-of-phase
74
+ work. Propose the changes as a table first; apply after approval.
75
+ 4. Rebuild and check the roadmap when items or phases changed.
76
+
77
+ ## Output contract
78
+
79
+ Emit `Skill: game-planning - output below`, then a table: item ID, title, type, phase, action
80
+ (created / updated / cancelled / moved / kept), and the `validate` result.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Game Planning"
3
+ short_description: "Plan by phase and keep the Taskpilot tracker and roadmap useful"
4
+ default_prompt: "Use $game-planning to plan this feature into the current phase and Taskpilot."
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: game-testing
3
+ description: Test a game with a real pyramid - many unit tests of rules and data, fewer component and integration tests, a few end-to-end playthroughs; run only what a change can affect while working, keep every system in a test range, and check the shape with a script. Use when adding or changing tests, fixing a regression, or when tests are slow, flaky or top-heavy.
4
+ ---
5
+
6
+ # Game testing
7
+
8
+ ## Prerequisites
9
+
10
+ - `game-dev.json` (`engine`, `tests`, `commands.test`) and `tools/game-dev/` from `game-dev-setup`.
11
+ - The engine profile in skill `game-code` names the folders, suffixes and runners.
12
+
13
+ ## Rules
14
+
15
+ - **Lowest level that catches it.** A rule, formula or data constraint gets a unit test. A scene,
16
+ node or widget with its script gets a component test. Systems talking to each other get an
17
+ integration test. A playthrough (scripted or bot) is e2e and covers a journey, not a rule.
18
+ - **Shape is checked.** `python3 tools/game-dev/pyramid.py` fails when a test file matches no
19
+ level, a test is focused or skipped, or a level holds more tests than the level below.
20
+ - **Data is tested by its schema and by rules.** Schemas catch shape and range; unit tests catch
21
+ rules across rows (no unit costs nothing, every wave references an existing unit).
22
+ - **Balance is measured, not felt.** Balance claims come from batch simulations: many seeded runs
23
+ per configuration, one compact table (win rate, time to kill, resources). Keep the simulation
24
+ command in the repository.
25
+ - **Every regression gets a test** at the level where it could have been caught, in the same change.
26
+ - **Deterministic tests.** Seed every random generator; no sleeps for timing, step the simulation.
27
+ A flaky test is fixed or deleted the day it is seen, never retried into green.
28
+ - **Visuals are reviewed, not asserted.** Screenshots and captures feed the visual reviewer (skill
29
+ `game-delegation`); pixel comparisons only for fixed, deterministic UI.
30
+
31
+ ## Running
32
+
33
+ - While working: only the tests the change can affect - the touched domain's tests and the
34
+ integration tests that use it. Do not rebuild every asset or run every suite for one change.
35
+ - Before reporting done: `python3 tools/game-dev/check.py` (game-dev checks plus `commands.test`).
36
+ - Heavy tools (headless engines, Blender, simulations) run one at a time unless the project's
37
+ command runs them in parallel by design.
38
+
39
+ ## Test range
40
+
41
+ The main menu has New Game, Test Range, Settings and Exit (unfinished entries greyed out). In the
42
+ test range every system is reachable: spawn units or objects for either side, tune data values
43
+ live with sliders, toggle debug overlays, read FPS, collapse sections. A new system without a
44
+ test-range entry is not done. The engine profile in `game-code` says how to build it. The
45
+ user's manual checks happen there; give them a short numbered list of what to check.
46
+
47
+ ## Procedure
48
+
49
+ 1. List the behaviors the change adds or alters; pick the level for each.
50
+ 2. Write the failing test first for a bug or a new rule; watch it fail for the right reason.
51
+ 3. Implement, run the affected tests, then `pyramid.py`.
52
+ 4. Add or update the test-range entry for a new or changed system.
53
+ 5. Run `check.py` and report its lines.
54
+
55
+ ## Output contract
56
+
57
+ Emit `Skill: game-testing - output below`, then: tests added or changed per level, the
58
+ pyramid line (`test declarations: ...`), what was run while working, and the check.py lines.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Game Testing"
3
+ short_description: "Test pyramid, affected-only runs, test range"
4
+ default_prompt: "Use $game-testing to decide and write the tests for this change."
@@ -18,7 +18,7 @@ contains a short intro and a table with these columns:
18
18
  | Column | Meaning |
19
19
  | --- | --- |
20
20
  | Companion | The capability's name |
21
- | Kind | `skill`, `agent`, or `pipeline` |
21
+ | Kind | `skill`, `agent`, `pipeline`, or `bundle` (a whole bundle installed as one unit) |
22
22
  | Suggested source | Where it typically lives in the kit (a path that may or may not exist) |
23
23
  | Touchpoint | The point in the bundle's workflow where it helps, and why |
24
24