@babylonjs-toolkit/agent 1.1.55 → 1.1.58
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.
- package/README.md +61 -13
- package/package.json +1 -1
- package/skills/bt-execute/SKILL.md +69 -15
- package/skills/bt-execute/templates/dashboard/dashboard.html +1697 -0
- package/skills/bt-execute/templates/dashboard/dashboard.template.js +134 -0
- package/skills/bt-execute/templates/dashboard/live.template.js +25 -0
- package/skills/bt-gauntlet/references/spec-composition.md +6 -5
- package/skills/bt-hero/SKILL.md +2 -2
- package/skills/bt-plan/SKILL.md +29 -16
- package/skills/bt-spec/SKILL.md +17 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Babylon Toolkit Desktop Agent (1.1.
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.1.58)
|
|
2
2
|
|
|
3
3
|
The desktop agent owns the entire pipeline end to end — frontend and UI design, gameplay code, shaders, generated art and audio, 3D models in headless Blender, whole game levels and prefabs in a terminal-driven Unity Editor, the interactive glTF export, the web build, the dev server, and visual QA by screenshotting both Unity and the running browser.
|
|
4
4
|
|
|
@@ -241,7 +241,7 @@ pair or schedule the bridge.
|
|
|
241
241
|
|-------|---------|--------------|
|
|
242
242
|
| [`bt-spec`](skills/bt-spec/SKILL.md) | `/bt-spec` | Turn a short idea into a feature spec file on a new git branch. Add `--grill-me` to be interviewed first, `--parity` to allow numeric parity bars in the acceptance criteria. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
|
|
243
243
|
| [`bt-plan`](skills/bt-plan/SKILL.md) | `/bt-plan` | Produce a detailed, task-checklist technical plan from a spec. Add `--heavy` for a decision-complete plan that keeps a long, fresh-context-per-task run cohesive, and `--parity` for numeric parity gates instead of the default functional proof. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
|
|
244
|
-
| [`bt-execute`](skills/bt-execute/SKILL.md) | `/bt-execute` | Implement one task, a range (`T3-T7`, `T12-`, `NEXT:3`) or all remaining tasks from a plan/spec; with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended overnight run that never stops for human input,
|
|
244
|
+
| [`bt-execute`](skills/bt-execute/SKILL.md) | `/bt-execute` | Implement one task, a range (`T3-T7`, `T12-`, `NEXT:3`) or all remaining tasks from a plan/spec; with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended overnight run that never stops for human input, `--strict` for an adversarial verifier on every task, and `--verbose` for an in-depth write-up of every task and the After Action Report on the dashboard. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
|
|
245
245
|
| [`bt-recon`](skills/bt-recon/SKILL.md) | `/bt-recon` | Deep-dive existing code — a subsystem named in a brief, or the whole codebase — and write an evidence-cited technical grounding spec (`.agents/recon/<slug>_recon.md`) plus, when it has UI, a plain-language user guide (`.agents/recon/<slug>_guide.md`). Built for taking over undocumented code; `bt-spec` and `bt-plan` read the recon as grounding. Includes an observe-only live pass when the brief gives a URL; `--refresh` updates a recon after code changes. |
|
|
246
246
|
| [`bt-convert`](skills/bt-convert/SKILL.md) | `/bt-convert` | Convert source code to Babylon Toolkit TypeScript. |
|
|
247
247
|
| [`bt-copycat`](skills/bt-copycat/SKILL.md) | `/bt-copycat` | Re-create the specified website adapted to specified genre. |
|
|
@@ -258,6 +258,54 @@ the frontmatter `name` + `description` to decide when the skill applies. The `al
|
|
|
258
258
|
line is honored by Claude Code (auto-approves those tools) and safely ignored by Codex and
|
|
259
259
|
Copilot.
|
|
260
260
|
|
|
261
|
+
### Feature folders and the dashboard
|
|
262
|
+
|
|
263
|
+
Every feature gets one folder, created by `bt-spec` — or by `bt-plan` in Quick Plan mode when you
|
|
264
|
+
start without a spec:
|
|
265
|
+
|
|
266
|
+
```
|
|
267
|
+
.agents/specs/<slug>/
|
|
268
|
+
dashboard.html the feature dashboard — double-click to open in a browser
|
|
269
|
+
documents/<slug>_spec.md the spec (bt-spec; absent for a Quick Plan)
|
|
270
|
+
documents/<slug>_plan.md the plan (bt-plan)
|
|
271
|
+
documents/<slug>_autopilot.md the run log (bt-execute)
|
|
272
|
+
documents/<slug>_dashboard.js the dashboard's data, updated task by task
|
|
273
|
+
documents/<slug>_live.js what is happening this minute, updated step by step
|
|
274
|
+
snapshots/ meaningful snapshots of the build
|
|
275
|
+
tests/ every test the plan's tasks write
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
`dashboard.html` is a live dashboard for the whole feature. `bt-plan` writes it as a roadmap (every
|
|
279
|
+
phase and task pending, with the time estimate); `bt-execute` updates it **task by task**, not phase
|
|
280
|
+
by phase: a *Now* banner says which task is being worked on and what is happening this minute (the
|
|
281
|
+
agents rewrite a small live-status file at every step, and the page warns if it goes quiet for 20
|
|
282
|
+
minutes), and each task's result appears the moment it is built. An open tab keeps itself current: it
|
|
283
|
+
re-reads its data in the background (every 10 s during a run, every 30 s otherwise) and refreshes
|
|
284
|
+
only when something changed — a task result, a finished run, the next run starting, or a plan
|
|
285
|
+
reopened because you added a task after it was complete (the dashboard drops back to *paused* and
|
|
286
|
+
the After Action Report is revised when the new work is done). Phase by phase and task by task it shows what was actually done, files, tests,
|
|
287
|
+
verifier verdicts, attempts, commits, decisions, deferrals and follow-ups. The snapshots tell the
|
|
288
|
+
story of the build: **progressions** captured from the same camera each time a meaningful layer
|
|
289
|
+
lands (a terrain: heightmap → textures → roads → trees → foliage → lighting), played back as a
|
|
290
|
+
storyboard, plus before/after sliders and stills where those prove the point. When later work
|
|
291
|
+
revises an earlier result, the earlier entry is marked **Updated** with who changed it and why —
|
|
292
|
+
nothing is rewritten silently.
|
|
293
|
+
|
|
294
|
+
The top of the page follows the run. While a run is going it shows **Current run activity** — the *Now*
|
|
295
|
+
banner and the milestones so far. Once the run is over, that slot becomes the **After Action Report**
|
|
296
|
+
(marked *Interim* if the plan is not finished yet), and the milestone history folds into the Milestone
|
|
297
|
+
activity logs at the bottom. The After Action Report is the whole plan's execution summarized — what
|
|
298
|
+
was built, how it was proven, what surprised, the run's figures — around **one before/after for the
|
|
299
|
+
plan as a whole**, taken from the same camera before the first task and after the last. Recon docs
|
|
300
|
+
stay in `.agents/recon/`; older flat specs and plans in `.agents/specs/` keep working where they are.
|
|
301
|
+
|
|
302
|
+
Add `--verbose` to `bt-execute` for a fully written-up dashboard: every task card gains its approach
|
|
303
|
+
and why, each file's change, every test case and acceptance item with evidence, each failed attempt
|
|
304
|
+
with its root cause and fix, the live check and the time spent, and the After Action Report adds an
|
|
305
|
+
in-depth debrief (architecture, problems and resolutions, deviations from the plan, known limitations,
|
|
306
|
+
lessons learned, estimate vs actual, next steps). It changes what is written, not how the work is
|
|
307
|
+
verified.
|
|
308
|
+
|
|
261
309
|
### Heavy plans (`/bt-plan --heavy`)
|
|
262
310
|
|
|
263
311
|
A plan can hold 50+ tasks and run for days, with each task executed by `bt-execute` in a fresh
|
|
@@ -278,7 +326,7 @@ Execution time is dominated by verification, not by the code edits, so the loop
|
|
|
278
326
|
feature. `bt-spec` records a `size` (small / medium / large); `bt-plan` uses it to set the task
|
|
279
327
|
budget (a small feature is 1–3 tasks in one phase), groups tasks into phases, marks each task's
|
|
280
328
|
`Verify level` (`standard` or `live`), and never pins absolute test counts. By default
|
|
281
|
-
`bt-execute` has the implementer write and run each task's named tests, then runs **one
|
|
329
|
+
`bt-execute` has the implementer write and run each task's named tests (in the feature folder's `tests/`), then runs **one
|
|
282
330
|
independent verifier per phase** with a scoped charter (Acceptance, the Verify commands, the
|
|
283
331
|
tests re-run and judged for coverage, a diff review for real defects), always does live
|
|
284
332
|
Unity/browser QA on any task whose correctness shows only at runtime (rendering, visuals,
|
|
@@ -288,8 +336,8 @@ Docs are read once by the orchestrator and handed to subagents as a brief instea
|
|
|
288
336
|
subagent re-fetching the Agent Reference.
|
|
289
337
|
|
|
290
338
|
```
|
|
291
|
-
/bt-execute --strict @.agents/specs/<feature>_plan.md ALL
|
|
292
|
-
/bt-execute --auto-pilot --strict @.agents/specs/<feature>_plan.md ALL
|
|
339
|
+
/bt-execute --strict @.agents/specs/<feature>/documents/<feature>_plan.md ALL
|
|
340
|
+
/bt-execute --auto-pilot --strict @.agents/specs/<feature>/documents/<feature>_plan.md ALL
|
|
293
341
|
```
|
|
294
342
|
|
|
295
343
|
Proof is sized the same way. By default a feature is proven **functionally**: tests, cheap
|
|
@@ -310,7 +358,7 @@ implementer writes the tests and the independent verifier judges them.
|
|
|
310
358
|
### Unattended runs (`/bt-execute --auto-pilot`)
|
|
311
359
|
|
|
312
360
|
```
|
|
313
|
-
/bt-execute --auto-pilot @.agents/specs/<feature>_plan.md ALL
|
|
361
|
+
/bt-execute --auto-pilot @.agents/specs/<feature>/documents/<feature>_plan.md ALL
|
|
314
362
|
```
|
|
315
363
|
|
|
316
364
|
Auto-pilot is for running a 50-task plan overnight. There is no one to ask, so `bt-execute`
|
|
@@ -326,7 +374,7 @@ What changes is that a failure never halts the run: a failing task gets a bounde
|
|
|
326
374
|
attempts, 5 under `--strict`), is then marked `⏭️ DEFERRED (auto-pilot): <reason>` in the plan, and the run moves
|
|
327
375
|
on; deferred tasks get one more pass at the end. Each verified task is committed as a checkpoint
|
|
328
376
|
on the current branch (an `autopilot/<plan>` branch is created if you are on `main`; nothing is
|
|
329
|
-
ever pushed), and a `<
|
|
377
|
+
ever pushed), and a `<slug>_autopilot.md` run log next to the plan records every task outcome,
|
|
330
378
|
decision and deferral for you to read in the morning, plus clock times per phase and per task
|
|
331
379
|
(interactive runs log the clock times too) so bt-plan's time estimates can be recalibrated from
|
|
332
380
|
real runs. Re-running the same command resumes and re-attempts anything deferred.
|
|
@@ -496,7 +544,7 @@ Want to redirect the loop? Edit `progress.md`'s `NEXT ACTION` (or part prioritie
|
|
|
496
544
|
Hand it a **pre-filled loop card** (either template with every slot answered, including `<NAME>`) and it starts immediately, no questions:
|
|
497
545
|
|
|
498
546
|
```
|
|
499
|
-
/bt-gauntlet --card:.agents/specs/racing-game_gauntlet-card.md --rounds:10
|
|
547
|
+
/bt-gauntlet --card:.agents/specs/racing-game/documents/racing-game_gauntlet-card.md --rounds:10
|
|
500
548
|
```
|
|
501
549
|
|
|
502
550
|
If any slot is unfilled or vague it STOPS and tells you which — it never guesses. This is the entry point used by the spec workflow below, and handy any time you want to author the card by hand.
|
|
@@ -515,8 +563,8 @@ Typical two-phase sequence for a real game:
|
|
|
515
563
|
```
|
|
516
564
|
# Phase 1 — foundation (checklist-shaped work: scaffold, controller, physics, HUD)
|
|
517
565
|
/bt-spec <feature brief>
|
|
518
|
-
/bt-plan @.agents/specs/<feature>_spec.md
|
|
519
|
-
/bt-execute @.agents/specs/<feature>_plan.md ALL
|
|
566
|
+
/bt-plan @.agents/specs/<feature>/documents/<feature>_spec.md
|
|
567
|
+
/bt-execute @.agents/specs/<feature>/documents/<feature>_plan.md ALL
|
|
520
568
|
|
|
521
569
|
# Phase 2 — quality (reference-bar work on top of what now exists)
|
|
522
570
|
/bt-gauntlet --name:aaa-polish <polish brief + reference media>
|
|
@@ -528,7 +576,7 @@ Or fold the gauntlet INTO a spec run by naming it in the brief:
|
|
|
528
576
|
/bt-spec Build the racing game, then polish it to Gran Turismo quality using bt-gauntlet
|
|
529
577
|
```
|
|
530
578
|
|
|
531
|
-
In that flow, bt-spec runs the gauntlet interview at spec time and writes the pre-filled card (`.agents/specs/<feature>_gauntlet-card.md`); bt-plan makes the gauntlet the final task invoking `--card:`; bt-execute re-enters a parked job via `--resume <name>` on each `NEXT` and flips the task's checkbox only when the job genuinely reports DONE.
|
|
579
|
+
In that flow, bt-spec runs the gauntlet interview at spec time and writes the pre-filled card (`.agents/specs/<feature>/documents/<feature>_gauntlet-card.md`); bt-plan makes the gauntlet the final task invoking `--card:`; bt-execute re-enters a parked job via `--resume <name>` on each `NEXT` and flips the task's checkbox only when the job genuinely reports DONE.
|
|
532
580
|
|
|
533
581
|
## 9. Which method should I use for making games? (recommendation)
|
|
534
582
|
|
|
@@ -545,8 +593,8 @@ Here's the reasoning:
|
|
|
545
593
|
```
|
|
546
594
|
# Phase 1 — foundation (cheap, deterministic, checkbox-resumable)
|
|
547
595
|
/bt-spec <game systems brief>
|
|
548
|
-
/bt-plan @.agents/specs/<feature>_spec.md
|
|
549
|
-
/bt-execute @.agents/specs/<feature>_plan.md ALL
|
|
596
|
+
/bt-plan @.agents/specs/<feature>/documents/<feature>_spec.md
|
|
597
|
+
/bt-execute @.agents/specs/<feature>/documents/<feature>_plan.md ALL
|
|
550
598
|
|
|
551
599
|
# Phase 2 — quality (reference-chasing, critic-judged, round-resumable)
|
|
552
600
|
/bt-gauntlet --name:aaa-polish <polish brief + reference screenshots>
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bt-execute
|
|
3
|
-
description: "The Babylon Toolkit Execute Skill runs one task — or all remaining tasks — from a feature plan or spec file. Use when asked to run a task (e.g. `bt-execute @plan T1`), all tasks (e.g. `bt-execute @plan ALL`), or a range (e.g. `bt-execute @plan T3-T7`, `T12-`, `NEXT:3`); with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended run (e.g. `bt-execute --auto-pilot @plan ALL`): the agent owns the whole pipeline (code, UI, shaders, generated assets, Blender, Unity, export, build, dev server, visual QA), every decision is made autonomously from the plan, spec, Babylon Toolkit Agent Reference and codebase, it never asks the user a question, failing tasks are retried then deferred, and the run never stops until the requested range (or every task) is done. Every task is tested, checked by an independent verifier, and checked live in the browser when its result is visual; add `--strict` for an adversarial verifier on every task."
|
|
3
|
+
description: "The Babylon Toolkit Execute Skill runs one task — or all remaining tasks — from a feature plan or spec file. Use when asked to run a task (e.g. `bt-execute @plan T1`), all tasks (e.g. `bt-execute @plan ALL`), or a range (e.g. `bt-execute @plan T3-T7`, `T12-`, `NEXT:3`); with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended run (e.g. `bt-execute --auto-pilot @plan ALL`): the agent owns the whole pipeline (code, UI, shaders, generated assets, Blender, Unity, export, build, dev server, visual QA), every decision is made autonomously from the plan, spec, Babylon Toolkit Agent Reference and codebase, it never asks the user a question, failing tasks are retried then deferred, and the run never stops until the requested range (or every task) is done. Every task is tested, checked by an independent verifier, and checked live in the browser when its result is visual; add `--strict` for an adversarial verifier on every task, and `--verbose` for a fully written-up dashboard — each task and the After Action Report documented in depth. Every run keeps the feature's live dashboard (`.agents/specs/<slug>/dashboard.html`) current task by task — what is being worked on right now, each task's result the moment it is built, verifier results, and meaningful snapshots of the build as it progresses — and, once the run is over, puts an After Action Report in place of the live activity: the whole plan's execution summarized, with one before/after for the plan as a whole."
|
|
4
4
|
allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Run tasks from a plan: build each one with its tests, have an independent verifier check it, and only then tick its box. Follow the project's agent instructions (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md). The user's message after the skill name is the `arguments`.
|
|
7
|
+
Run tasks from a plan: build each one with its tests, have an independent verifier check it, and only then tick its box — and keep the feature's dashboard current as you go (see *Feature folder and dashboard*). Follow the project's agent instructions (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md). The user's message after the skill name is the `arguments`.
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
/bt-execute [--auto-pilot] [--strict] [--no-time-limit] <plan> [task] [brief]
|
|
10
|
+
/bt-execute [--auto-pilot] [--strict] [--verbose] [--no-time-limit] <plan> [task] [brief]
|
|
11
|
+
|
|
12
|
+
/bt-execute @.agents/specs/<slug>/documents/<slug>_plan.md ALL
|
|
11
13
|
|
|
12
14
|
/bt-execute @plan.md # NEXT: the next unchecked task
|
|
13
15
|
/bt-execute @plan.md T4 # one task
|
|
@@ -18,9 +20,10 @@ Run tasks from a plan: build each one with its tests, have an independent verifi
|
|
|
18
20
|
/bt-execute --strict @plan.md ALL # adversarial verifier on every task
|
|
19
21
|
/bt-execute --auto-pilot @plan.md ALL # unattended; combine with --strict if wanted
|
|
20
22
|
/bt-execute --no-time-limit @plan.md ALL # turn off the default TIME MATTERS mode
|
|
23
|
+
/bt-execute --verbose @plan.md ALL # a fully written-up dashboard: every task and the After Action Report in depth
|
|
21
24
|
```
|
|
22
25
|
|
|
23
|
-
- Strip `--auto-pilot` / `--strict` / `--no-time-limit`, and any literal `TIME MATTERS`, first (anywhere in the arguments, never part of the brief). `<plan>` is required — if missing, ask (auto-pilot: say so and end). Never guess a path.
|
|
26
|
+
- Strip `--auto-pilot` / `--strict` / `--verbose` / `--no-time-limit`, and any literal `TIME MATTERS`, first (anywhere in the arguments, never part of the brief). `<plan>` is required — if missing, ask (auto-pilot: say so and end). Never guess a path.
|
|
24
27
|
- `[task]` is the token right after the plan, only if it is `T<id>`, `T<a>-T<b>`, `T<a>-`, `NEXT`, `NEXT:<n>` or `ALL` (case-insensitive). Otherwise it is part of the brief, and the task defaults to `NEXT` (`ALL` under auto-pilot). Never ask which task to run.
|
|
25
28
|
- A range is a slice of the checklist **in file order** (sub-tasks like `T3.1` between the endpoints included). An unknown id → list the available ids and stop. A reversed range → error; never swap it. Tasks outside the slice are never touched.
|
|
26
29
|
- Tasks already `- [x]` are skipped — that is what makes every mode resumable. Nothing left to do → say so and stop. Except in `ALL` / range / `NEXT:<n>` runs, do one task and do not continue to the next.
|
|
@@ -33,7 +36,7 @@ Run tasks from a plan: build each one with its tests, have an independent verifi
|
|
|
33
36
|
- **Read the docs once.** For Babylon work, if you have not read the Agent Reference this session, fetch it once — https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md — plus only the sub-documents the plan's tasks need. It is the authority for conventions and API. Fetch fails → stop and tell the user *(auto-pilot: retry 3×, then continue on what you know and log it)*. Read the plan's checklist and the parts of `SPEC.md` the tasks touch; re-read after a context compaction.
|
|
34
37
|
- **SPEC.md** constrains how you build. If the code and SPEC.md disagree, stop and tell the user *(auto-pilot: decide which is right, fix SPEC.md in the same task, log it)*. When a task changes architecture, a system, a convention or a dependency, SPEC.md must end up matching — normally the plan's final `Update SPEC.md` task; if the plan has none, do it anyway; a new dependency is recorded in SPEC.md by the task that introduces it. Follow SPEC.md's "How to update this spec". **Write the product, never the procedure** — no capture protocols, tool lists, ledgers or gates: recorded there, they become a bar every later feature must clear.
|
|
35
38
|
- **Say what you are doing** — one short line at each task and phase boundary, and before anything slow.
|
|
36
|
-
- **Clock every run** — auto-pilot or not, so bt-plan's time estimates can be recalibrated from real runs. Take every time from the shell (`date '+%Y-%m-%d %H:%M %Z'`, local time), never from memory, the conversation or a tool result's UTC timestamp. Append to the run log
|
|
39
|
+
- **Clock every run** — auto-pilot or not, so bt-plan's time estimates can be recalibrated from real runs. Take every time from the shell (`date '+%Y-%m-%d %H:%M %Z'`, local time), never from memory, the conversation or a tool result's UTC timestamp. Append to the run log `documents/<slug>_autopilot.md` beside the plan (a legacy plan keeps its existing `<plan-basename>_autopilot.md`; an interactive run writes only these lines and its task lines):
|
|
37
40
|
- Run start: `⏱ Run <n> start <date time> · queue T<a>–T<b> (<k> tasks) · plan estimate <the plan's Total line, or none> · flags <auto-pilot / strict / interactive>`
|
|
38
41
|
- Each phase — read the clock when the implementer launches, when each verifier launches, and at the tick — once its tasks are ticked or deferred: `⏱ Phase <N> (T<a>–T<b>): <HH:MM>→<HH:MM> · <m> min · build <m> · verify <m> · fix <m> (<rounds> rounds)`. Time spent waiting on the user (a question, a permission prompt) is logged as `· waited <m>` and left out of `<m> min`.
|
|
39
42
|
- Each task line ends `· done <HH:MM>`.
|
|
@@ -44,19 +47,70 @@ Run tasks from a plan: build each one with its tests, have an independent verifi
|
|
|
44
47
|
|
|
45
48
|
Work in **phases**: a `### Phase N` group in the plan, or — if the plan has none — up to 3 consecutive tasks (a `live` task, the `Update SPEC.md` task and the last task each close a group). A single task or `NEXT` is a phase of one. Under `--strict` every task is its own phase.
|
|
46
49
|
|
|
47
|
-
1. **Build** each task in the phase, in order, **following the Agent Reference's Coding Practices — ENFORCED** (clean, professional TypeScript or JavaScript in the project's own language; meaningful full-word names, never one- or two-letter names or obfuscation; well-structured, readable, maintainable code for human developers; meaningful JSDoc on every class, function, method and public member — always written, never a reason to fail a task), **with its tests**: the cases the plan's `Tests:` names (or, with none, meaningful cases for its Acceptance and edge cases), in the
|
|
48
|
-
2. **Verify** the phase with a fresh **independent verifier** subagent (charter below), giving it the list of files changed. It returns PASS/FAIL per task, with evidence.
|
|
49
|
-
3. **Tick** `- [ ]` → `- [x]` for every task that passed, immediately — except a task that depends on one that failed in the same phase, which waits for it. Never tick partial, skipped or unverified work.
|
|
50
|
+
1. **Build** each task in the phase, in order, **following the Agent Reference's Coding Practices — ENFORCED** (clean, professional TypeScript or JavaScript in the project's own language; meaningful full-word names, never one- or two-letter names or obfuscation; well-structured, readable, maintainable code for human developers; meaningful JSDoc on every class, function, method and public member — always written, never a reason to fail a task), **with its tests**: the cases the plan's `Tests:` names (or, with none, meaningful cases for its Acceptance and edge cases), in the feature folder's `tests/` (`.agents/specs/<slug>/tests/` — never a root `tests/` folder), using the repo's test runner and style. Get them green — fix the code, not the test, unless the test is wrong. No testable surface (config, docs, assets) → say so. A task with visible output also **saves its progression snapshots** as it builds (*Snapshots tell the story*, below). The implementer keeps the **dashboard current task by task** — the live file at every step, the task's entry at start and the moment it is built — so the user never waits for the phase to end to see progress. Boxes stay unticked.
|
|
51
|
+
2. **Verify** the phase with a fresh **independent verifier** subagent (charter below), giving it the list of files changed. It returns PASS/FAIL per task, with evidence, and marks each task `verifying` on the dashboard (and the live file) as it checks it.
|
|
52
|
+
3. **Tick** `- [ ]` → `- [x]` for every task that passed, immediately — except a task that depends on one that failed in the same phase, which waits for it. Never tick partial, skipped or unverified work. Mark each ticked task `done` on the dashboard as you tick it, then write the phase's dashboard entry before its commit.
|
|
50
53
|
4. **Fix loop** for a task that failed: fix the code in the context that wrote it; re-run its tests; re-verify with a **fresh** verifier given only the failed items and the evidence (`--strict`: the whole task). A records-only slip (a stale number or note) is fixed directly and re-checked by you. 3 attempts (`--strict`: 5), each changing something material; stop early if two attempts fail the same way with no new idea. Still failing → leave it unticked, stop and report *(auto-pilot: defer and continue)*.
|
|
51
|
-
5. **Report:** tasks done (for `ALL` / ranges: the range asked for, completed/total, and whether the plan is now finished; if fewer than `n` tasks remained for `NEXT:<n>`, say so), files changed, tests run (`tests: 4 passed (implementer) · verifier-checked`), verifier result (`verified (independent subagent)` or `verified (self)`), and the next task id — for reference only.
|
|
54
|
+
5. **Report:** tasks done (for `ALL` / ranges: the range asked for, completed/total, and whether the plan is now finished; if fewer than `n` tasks remained for `NEXT:<n>`, say so), files changed, tests run (`tests: 4 passed (implementer) · verifier-checked`), verifier result (`verified (independent subagent)` or `verified (self)`), the dashboard path (`.agents/specs/<slug>/dashboard.html` — open it in a browser), and the next task id — for reference only.
|
|
52
55
|
|
|
53
|
-
**The verifier is told:** *"Confirm each task's Acceptance is genuinely met and run its `Verify` commands against the stated expected output. Re-run the tests and the relevant suite once; check they really cover the Acceptance and named edge cases and could fail — missing or vacuous tests are a FAIL. Read the diff for real defects: logic errors, broken callers, unhandled edge cases the plan names, a documented behavior dropped or inverted, a sibling-skill template re-implemented instead of copied. Check every code file the task created or changed against the Agent Reference's Coding Practices — ENFORCED: clean, professional TypeScript or JavaScript in the language the project already uses (never converted to the other unasked); strict types with no needless `any` in TypeScript; meaningful full-word names for every class, method, property, variable and parameter (one- or two-letter names, cryptic abbreviations and code-golf tricks are violations, except the allowed loop counters, axis/`uv` names and toolkit aliases, and names that bind to exported data); no dead code, unused imports or leftover `console.log`; well-structured code a developer new to the project can read and maintain. Any violation is a FAIL for that task — quote the offending lines. JSDoc is never a FAIL: missing, thin or stale JSDoc (including JavaScript type tags) never fails a test, a verification or an Acceptance item — list it under a separate non-blocking `JSDoc notes` heading. For any task whose correctness shows only at runtime — rendering, UI, interaction, Unity↔Babylon parity — check it live in the browser (and Unity where relevant) whether or not the plan marks it `live`, and do the plan's final end-to-end check live: look at the running result, beside the reference image when there is one, and judge it as a user would; passing unit tests never substitute. Do all of a phase's live checks in one session on the already-running dev server, and re-export from Unity only if the phase changed that scene's export — then only the project and the scenes the phase works on. Treat an absolute count in the plan as 'named tests pass, no new failures'. [SCOPE] Return PASS/FAIL per task with evidence, listing records-only slips separately."*
|
|
56
|
+
**The verifier is told:** *"Confirm each task's Acceptance is genuinely met and run its `Verify` commands against the stated expected output. Re-run the tests and the relevant suite once; check they really cover the Acceptance and named edge cases and could fail — missing or vacuous tests are a FAIL. Read the diff for real defects: logic errors, broken callers, unhandled edge cases the plan names, a documented behavior dropped or inverted, a sibling-skill template re-implemented instead of copied. Check every code file the task created or changed against the Agent Reference's Coding Practices — ENFORCED: clean, professional TypeScript or JavaScript in the language the project already uses (never converted to the other unasked); strict types with no needless `any` in TypeScript; meaningful full-word names for every class, method, property, variable and parameter (one- or two-letter names, cryptic abbreviations and code-golf tricks are violations, except the allowed loop counters, axis/`uv` names and toolkit aliases, and names that bind to exported data); no dead code, unused imports or leftover `console.log`; well-structured code a developer new to the project can read and maintain. Any violation is a FAIL for that task — quote the offending lines. JSDoc is never a FAIL: missing, thin or stale JSDoc (including JavaScript type tags) never fails a test, a verification or an Acceptance item — list it under a separate non-blocking `JSDoc notes` heading. For any task whose correctness shows only at runtime — rendering, UI, interaction, Unity↔Babylon parity — check it live in the browser (and Unity where relevant) whether or not the plan marks it `live`, and do the plan's final end-to-end check live: look at the running result, beside the reference image when there is one, and judge it as a user would; passing unit tests never substitute. Do all of a phase's live checks in one session on the already-running dev server, and re-export from Unity only if the phase changed that scene's export — then only the project and the scenes the phase works on. Save the frames from your live session that show each visual task's verified result to `[SNAPSHOTS]` as `T<n>-<NN>-<stage>.png` — the same camera or viewport as the implementer's progression frames, plus any angle or comparison (Unity beside browser, before beside after) that proves the Acceptance — and return each path with a one-line caption saying what it shows. Snapshots never add a page session or an export of their own. Keep the dashboard current as you go: set each task `verifying` when you start checking it, and rewrite the live file at each check (what you are checking, on what) — never 15 minutes without a write. Treat an absolute count in the plan as 'named tests pass, no new failures'. [SCOPE] Return PASS/FAIL per task with evidence, listing records-only slips separately."*
|
|
54
57
|
|
|
55
|
-
`[SCOPE]` is one of two sentences. **Standard:** *"Do not add mutation testing, fuzzing, restarts or audits of untouched files unless something you found points there; aim for about 25 tool calls and report rather than expand."* **`--strict`:** *"Be adversarial: actively look for any reason the Acceptance is NOT met, using whatever you judge worthwhile — mutation checks against the tests, randomized inputs, re-deriving values from the plan's Decisions and Design Reference, live QA of every rendered or exported surface."*
|
|
58
|
+
`[SNAPSHOTS]` is the feature folder's `snapshots/` path (`.agents/specs/<slug>/snapshots/`). `[SCOPE]` is one of two sentences. **Standard:** *"Do not add mutation testing, fuzzing, restarts or audits of untouched files unless something you found points there; aim for about 25 tool calls and report rather than expand."* **`--strict`:** *"Be adversarial: actively look for any reason the Acceptance is NOT met, using whatever you judge worthwhile — mutation checks against the tests, randomized inputs, re-deriving values from the plan's Decisions and Design Reference, live QA of every rendered or exported surface."*
|
|
56
59
|
|
|
57
60
|
For a task built on a sibling skill (e.g. bt-design's 3D-Hero-Scroll), give the verifier the relevant part of that skill *(where skills load through a tool: `load_skill` + `read_skill_resource`; where they are files: the skills directory this skill was loaded from, e.g. `~/.claude/skills/`, `~/.agents/skills/` or the project's equivalent)* — its documented options (e.g. `sweep: page` really reaches the document bottom) are part of Acceptance.
|
|
58
61
|
|
|
59
|
-
**Every subagent gets a brief, not homework:** the task block(s), the plan Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Agent Reference excerpts needed (with URLs) — **always including the full `Coding Practices — ENFORCED` section**, since implementers write to it and verifiers fail work that breaks it — the test command, the project's agent instructions, the *Work fast* rules below, and: *"Do not fetch the Agent Reference or read SPEC.md in full — the parts you need are here, and this overrides any standing instruction to fetch it first. Fetch one sub-document only if you hit an API this brief does not cover, and say which."*
|
|
62
|
+
**Every subagent gets a brief, not homework:** the task block(s), the plan Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Agent Reference excerpts needed (with URLs) — **always including the full `Coding Practices — ENFORCED` section**, since implementers write to it and verifiers fail work that breaks it — the test command and the feature folder's `tests/` path, the `snapshots/` path and *Snapshots tell the story* (for any phase with visible output), the dashboard and live file paths with the per-task update rules from *Feature folder and dashboard* (with `--verbose`, the `details` fields that role writes), the project's agent instructions, the *Work fast* rules below, and: *"Do not fetch the Agent Reference or read SPEC.md in full — the parts you need are here, and this overrides any standing instruction to fetch it first. Fetch one sub-document only if you hit an API this brief does not cover, and say which."*
|
|
63
|
+
|
|
64
|
+
## Feature folder and dashboard
|
|
65
|
+
|
|
66
|
+
Every feature lives in one folder, created by bt-spec (or by bt-plan for a Quick Plan):
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
.agents/specs/<slug>/
|
|
70
|
+
dashboard.html the feature dashboard — opens straight from disk
|
|
71
|
+
documents/<slug>_spec.md bt-spec (absent for a Quick Plan)
|
|
72
|
+
documents/<slug>_plan.md bt-plan
|
|
73
|
+
documents/<slug>_autopilot.md this skill's run log
|
|
74
|
+
documents/<slug>_dashboard.js the dashboard's data (task by task)
|
|
75
|
+
documents/<slug>_live.js what is happening this minute (step by step)
|
|
76
|
+
snapshots/ the meaningful snapshots the dashboard shows
|
|
77
|
+
tests/ every test this plan's tasks write
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`<slug>` is the folder name (the plan sits at `<slug>/documents/<slug>_plan.md`). **Legacy flat plan** (`.agents/specs/<slug>_plan.md`): run it where it is, keep its run log and the test paths its `Tests:` lines name, and still create `.agents/specs/<slug>/` for `dashboard.html`, `documents/<slug>_dashboard.js`, `documents/<slug>_live.js` and `snapshots/` — move nothing unless the user asks.
|
|
81
|
+
|
|
82
|
+
**The dashboard.** `dashboard.html` is a fixed template; `documents/<slug>_dashboard.js` holds everything it shows. Both come from this skill's `templates/dashboard/` *(where skills load through a tool: `load_skill` + `read_skill_resource`; where they are files: the skills directory this skill was loaded from)*: `dashboard.html` copied with `{{slug}}` replaced — never otherwise edited — and `dashboard.template.js`, whose header comment is the data schema. bt-plan writes both in the `planned` state; if either is missing, create it now from the plan. A third file, `documents/<slug>_live.js` (from `live.template.js`), carries what is happening this minute.
|
|
83
|
+
|
|
84
|
+
**Update per task, not per phase — the user watches this page instead of asking "what are you doing?"** Whoever is doing the work writes: the implementer while it builds, the verifier while it checks, you (the orchestrator) between them. Only one agent works at a time in this loop, so writes never collide; if you ever run subagents in parallel, they report back and you write. Every implementer and verifier brief carries the three paths and these rules. Every timestamp comes from the shell clock.
|
|
85
|
+
|
|
86
|
+
- **The live file — at every meaningful step.** Rewrite `documents/<slug>_live.js` whole (it is small) when a task starts, at each milestone inside it, before anything slow (a build, an export, a bake, a capture, a test run), at each fix attempt, at the hand-over to the verifier and while it checks each task, and at the commit: the phase, the task, the role, one plain-language sentence on what is happening now, and the task's step log. Never let it go 15 minutes without a write during active work — the page flags a 20-minute silence. Between tasks, `task: ""` and a `title` (`Verifying phase 2`, `Committing phase 2`).
|
|
87
|
+
- **The dashboard data — at every task boundary:** a task becomes `in-progress` when it starts; `built` the moment it is built and its tests are green — with its summary of what was actually done (and anything surprising), files, tests and snapshots filled in **right then**, not at the phase end; `verifying` while the verifier checks it; `done` when it passes (verifier result, attempts, commit, done time, its `DECISION` lines); back to `in-progress` with `attempts` + 1 on a FAIL. Each change also adds an `activity` line and refreshes `updatedAt`.
|
|
88
|
+
- **Valid JavaScript, always.** Both files are loaded as scripts — one bad comma blanks the page. After every write, run `node --check <file>` where Node is available and fix it at once.
|
|
89
|
+
|
|
90
|
+
On top of the per-task updates:
|
|
91
|
+
|
|
92
|
+
- **Run start:** first **sync the dashboard with the plan file** — re-read its checklist and add any phase or task (including sub-tasks like `T3.1`) the dashboard lacks, in plan order, as `pending`, with an `updates` note on it (`Added to the plan after <the plan was complete / phase 2 ran> — <why, if the plan says>`); a task the plan no longer has is removed with an `activity` line saying so. Then `status: "in-progress"`, `runs` + 1, the run-log document link, an `activity` line, and the first live-file write.
|
|
93
|
+
- **Each phase, after its ticks and before its commit:** the phase's status, times and minutes (from its `⏱` line), its verifier result and a two-or-three-sentence summary of what it delivered; the phase-level snapshots (a progression spanning several tasks — below); `decisions`; `activeTime`; an `activity` line; and a current "so far" `outcome` headline.
|
|
94
|
+
- **A deferral:** the task's `status: "deferred"` and `deferredReason`, an `activity` line.
|
|
95
|
+
- **Run end — the After Action Report.** **decide the status by re-reading the plan file's checkboxes, never from memory:** `complete` when every task in the plan is `- [x]`; `incomplete` when every task is either ticked or marked ⏭️ DEFERRED; otherwise `paused` (the run covered only a slice, or tasks were added). The page refuses a `complete` it can see is false — it shows the plan as paused with a warning — but the plan file is the authority; never leave `in-progress` behind, because the status picks the page's top slot: `in-progress` shows *Current run activity* (the live file and the milestones), any other run-ended status shows the After Action Report in its place. Write `followUps` for a human, and `afterAction` — the whole plan's execution, start to finish: a one-sentence headline of what the plan delivered; two to four paragraphs on what was built, how it was proven and what surprised; highlights; and **one before/after for the plan as a whole** (`comparison`) — the plan-wide "before" frame beside a final "after" taken now from the same camera or viewport (the end-to-end check's session supplies it). Add the plan's key progression to `afterAction.snapshots` if one tells the story better than any single phase. The figures (tasks, tests, retries, time) are computed by the page — never type them in. A run that ends before the plan is finished writes it too; the page marks it *Interim* while `paused`, and the next run revises it with an `updates` entry. **A reopened plan** (tasks added after it was complete) works the same way: the run that finishes the added tasks rewrites the After Action Report to cover them, notes the change in its `updates` (`Revised — T7 added after completion: <why>`), and retakes the plan-wide "after" from the same camera so the comparison shows the plan as it now stands.
|
|
96
|
+
- **`--verbose` — the same work, written up in depth.** It changes what is written, never what is done: tests, the verifier, live checks and snapshot captures are exactly as without it, and TIME MATTERS still holds (the extra cost is writing, not checking). Set `detail: "verbose"` at run start. Each task gets a `details` write-up (schema in `dashboard.template.js`), filled in by whoever has the facts, at the same per-task moments as everything else:
|
|
97
|
+
- **the implementer, when the task is built:** `approach` (how it was built, how the pieces fit together, why this way and not the alternatives it weighed); `changes` — every file touched, with what changed in it and why; `testCases` — every named case with its expected and actual result; `problems` — each failed attempt or dead end, with what failed, the root cause and the fix; `notes` for a future maintainer; `timing.build`;
|
|
98
|
+
- **the verifier, while it checks:** `acceptance` — every Acceptance item with its verdict and the evidence it rests on (command output, the screenshot, the line read); `liveCheck` — what it looked at, on which engine, at what resolution, and how it judged it; `timing.verify`;
|
|
99
|
+
- **you, at the tick and in the fix loop:** each fix round added to `problems`, `timing.fix`, and snapshot captions that say what to notice, not just what is shown.
|
|
100
|
+
|
|
101
|
+
At run end the After Action Report adds `sections`, one card each where it applies: **Architecture** (what now exists and how it connects), **Phase by phase**, **Problems and resolutions**, **Deviations from the plan** (and why), **Known limitations**, **Lessons learned**, **Estimate vs actual** (per phase, from the `⏱` lines), **Recommended next steps**. Plain language a new developer can follow, concrete over vague — name the files, classes, numbers and screenshots. A later run without `--verbose` keeps everything a verbose run wrote and never thins it; `detail` stays `verbose`.
|
|
102
|
+
- **Updated notifications.** Never silently rewrite an earlier part of the dashboard. When later work changes an earlier result — a figure corrected, a decision reversed, a reopened task, a snapshot superseded by a better one — change it and append `{ at, by: "T<n>", note }` to that entry's `updates`. The page badges it **Updated** and lists it under *Updates and revisions*. A superseded snapshot stays; add the new one beside it.
|
|
103
|
+
- The dashboard is a record, never a gate: a dashboard slip never fails or blocks a task. At run end, leave the live file's last entry saying the run finished (the page hides it once the status is no longer `in-progress`).
|
|
104
|
+
|
|
105
|
+
### Snapshots tell the story
|
|
106
|
+
|
|
107
|
+
The snapshots are how a human sees what was built, so choose them for meaning, not coverage. Never just one before and one after per task: show **how the work came together**.
|
|
108
|
+
|
|
109
|
+
- **Progressions first.** For a task with visible output, capture a frame each time a meaningful layer of the work lands, from the **same camera or viewport** every time so the frames line up, and caption each with what that stage added. A terrain: heightmap → splat textures → road network → trees → foliage → baked lighting. A UI: layout → styling → states → motion. A shader: base colour → each lighting term → final. A level: blockout → props → lighting → post. A progression can span several tasks; record it on the phase, with each frame's `task`.
|
|
110
|
+
- **Then whatever proves the point.** A comparison when a change is best seen side by side (a fix, the state before the phase, Unity beside the browser for parity); a second angle when one view hides it (overview, ground level, close detail); a still when one image proves one thing.
|
|
111
|
+
- **As many frames as the build has meaningful stages** — usually 3–8 for a visual task, none for a task with nothing to see. No near-duplicates, no frame per iteration, and a failed attempt only when it explains a decision (say so in the caption).
|
|
112
|
+
- **Who takes them.** At the start of the first run, before T1 changes anything, take the **plan-wide "before"** (`snapshots/plan-before.png`) from the camera or viewport that will best show the finished feature — the starting state, even if that is an empty scene or the old page; skip it only when the plan has nothing to see. The implementer saves a "before" frame before the first change of a visual phase, and saves milestone frames while it builds — it is already capturing to iterate, so it keeps the meaningful ones instead of discarding them. The verifier adds the verified final frames from its live session. You pick and order them into the dashboard. Frames come from sessions and exports the work already runs — never an extra page session or re-export just for a picture.
|
|
113
|
+
- **Files.** `snapshots/T<n>-<NN>-<stage>.png` (phase-level: `P<N>-<NN>-<stage>.png`), at most about 1600 px wide; prefer JPEG or WebP for large scenes. Unity frames come through the bridge's camera capture, browser frames through the browser tool.
|
|
60
114
|
|
|
61
115
|
## Work fast
|
|
62
116
|
|
|
@@ -66,7 +120,7 @@ Writing the code is about a tenth of a run; keep the loop around it short.
|
|
|
66
120
|
- **Export minimally.** Re-export only the Unity project being tested, only the scenes the task works on, and only when the change actually alters that scene's export. Never re-export other scenes or projects "for consistency" — they pick the change up at their next natural export. Exports are the slowest step of a run; brief every implementer and verifier with this rule, and never widen a plan's export step in a brief.
|
|
67
121
|
- **Never sleep-poll.** No `until …; do sleep N; done`. Run long commands in the foreground with a generous timeout, or in the background and wait for the completion notice.
|
|
68
122
|
- **Judge visuals by looking** — screenshot the running result and compare it to what it must match. Build numeric gates only when the plan asks for them.
|
|
69
|
-
- **Reuse the project's tools; keep evidence light.** No one-off tools per task; no ledgers, md5 or environment records, archives or checked-in capture trees unless the plan asks. The
|
|
123
|
+
- **Reuse the project's tools; keep evidence light.** No one-off tools per task; no ledgers, md5 or environment records, archives or checked-in capture trees unless the plan asks. The dashboard's curated snapshots are the one exception — they are the record a human reads, alongside the run log.
|
|
70
124
|
- **Someone else's red is not your task.** A failing test that belongs to another feature and that you did not touch is logged as pre-existing and left alone.
|
|
71
125
|
|
|
72
126
|
## Auto-pilot (`--auto-pilot`)
|
|
@@ -99,5 +153,5 @@ An unattended run: **nobody is there to answer, and nothing waits for anyone's a
|
|
|
99
153
|
- **Safety.** Never push, force-push, deploy, publish, spend money, or delete/overwrite anything outside the plan's scope unless the plan explicitly says so — defer that step instead. Asset generation the plan or spec explicitly calls for (images, textures, audio, video, 3D through the documented generation tools) is in scope: do it. Never `git init`.
|
|
100
154
|
- **Checkpoints.** In a git repo, commit after each phase's boxes are ticked: `T<n>: <title> (auto-pilot)` (or `T<a>–T<b>: …`). On the default branch, first switch to `autopilot/<plan-basename>`. Uncommitted changes that are not yours → leave them untouched and stage only the paths this run changed; never ask about them.
|
|
101
155
|
- **Context.** Implement each phase in a fresh implementer subagent (it builds and tests; keep it for that phase's fix loop), so you only orchestrate: read plan → implementer → verifier → tick → commit → log → next phase. The plan's checkboxes and the run log are the only state — re-read them at each phase boundary and after a compaction.
|
|
102
|
-
- **Run log** —
|
|
103
|
-
- **Exit report** — only once the queue is empty: tasks completed, completed/total, deferred tasks with reasons, decisions logged and the run-log path, branch and last commit, whether the plan is done. It states results; it asks nothing. Re-running the same command resumes and re-attempts deferred tasks.
|
|
156
|
+
- **Run log** — `documents/<slug>_autopilot.md` beside the plan, appended per run: the `⏱` lines from *Clock every run* and completed/total; one line per task (outcome, attempts, tests, verifier, files, commit, done time); one line per decision; deferred tasks with what a human should look at first. Narrate the same boundaries to the console: `▶ [auto-pilot] T12/50 — <title>`, `✅ … verified`, `⏭️ … deferred — <reason>`.
|
|
157
|
+
- **Exit report** — only once the queue is empty: tasks completed, completed/total, deferred tasks with reasons, decisions logged and the run-log path, the dashboard path, branch and last commit, whether the plan is done. It states results; it asks nothing. Re-running the same command resumes and re-attempts deferred tasks.
|