@babylonjs-toolkit/agent 1.2.6 → 1.2.9
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 +1 -1
- package/package.json +1 -1
- package/skills/bt-design/SKILL.md +7 -0
- package/skills/bt-execute/SKILL.md +3 -3
- package/skills/bt-landing/SKILL.md +2 -0
- package/skills/bt-plan/SKILL.md +1 -0
- package/skills/bt-prototype/SKILL.md +1 -1
- package/skills/bt-recon/SKILL.md +1 -1
- package/skills/bt-spec/SKILL.md +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Babylon Toolkit Desktop Agent (1.2.
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.2.9)
|
|
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
|
|
package/package.json
CHANGED
|
@@ -52,6 +52,13 @@ Interpret creatively and make unexpected choices that feel genuinely designed fo
|
|
|
52
52
|
- **A property the frame loop writes has no CSS `transition`** — it restarts every frame and lags the game. Smooth in the loop.
|
|
53
53
|
- **Before finishing**, search the HUD files for state setters, `dispatch(`, store updates and unguarded `EventBus.PostMessage(` inside `requestAnimationFrame`, `useFrameLoop`, render observables and `update()` / `late()` / `after()`, and search every menu, splash, preloader and landing-page file for `requestAnimationFrame`, `useFrameLoop`, `setInterval` and animation-library ticks; any hit is a violation to fix.
|
|
54
54
|
|
|
55
|
+
**GAMEPAD SUPPORT — only when asked, then in full (every screen, both halves).** Never add it to a design unasked. When the request, spec or plan asks for gamepad / controller support, or the project already has it (a `GamepadMenuNavigator` / `useGamepadMenuNavigation` in `src/`, or gamepad rules in `SPEC.md`), read the Agent Reference's `html-gamepad.md` and build to it. Copy its files; never write your own pad poller:
|
|
56
|
+
- **Every screen you design is a surface driven by the pad alone** — title, menus, steps, pause, results, settings, How to Play, dialogs, error cards. It registers with `useGamepadMenuNavigation(ref, { onBack })` and opens focused on its primary control. B and Escape go back, A and Enter choose, and the D-pad or left stick moves focus to the nearest control in that direction. Add it to the project's surface table.
|
|
57
|
+
- **Design for spatial focus.** Use real `<button>` / `<a href>` controls on aligned rows and columns. Nothing is hover-only. Art and previews follow `:focus` as well as hover. Locked items are not focusable. Long pages get focus stops, and a focused control never sits under a docked bar.
|
|
58
|
+
- **The focus cursor is a designed element**, not the browser outline: bold, readable across a room, visible on every button colour, and shown on `:focus-visible`, on `[data-input="gamepad"] :focus`, and on pointer-moved focus on menus (one highlighted control at a time).
|
|
59
|
+
- **Button prompts swap glyphs by input.** Prompt bars and hints carry both variants, a circled **(A)** OK / **(B)** Back for the pad and **[Enter]** / **[Esc]** key caps for the keyboard, and CSS on `<html data-input="gamepad">` shows one. No React state and no listener.
|
|
60
|
+
- **Gameplay input is the other half** — every action on the pad through `TOOLKIT.InputController`. When you build in-game UI, make sure the pause menu is reachable with Start and resumes with B.
|
|
61
|
+
|
|
55
62
|
**IMPORTANT**: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
|
|
56
63
|
|
|
57
64
|
Remember: You are capable of extraordinary creative work. Don't hold back, show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
|
|
@@ -64,7 +64,7 @@ Work in **phases**: the plan's `### Phase N` groups, else up to 3 consecutive ta
|
|
|
64
64
|
|
|
65
65
|
### The verifier's charter
|
|
66
66
|
|
|
67
|
-
*"Confirm each task's Acceptance is met and run its `Verify` commands against their expected output. Re-run the tests and the relevant suite once; tests that miss the Acceptance or named edge cases, or could not fail, are a FAIL. Read the diff for real defects: logic errors, broken callers, unhandled named edge cases, documented behavior dropped or inverted, a sibling-skill template re-implemented instead of copied. FAIL a touched code file that breaks Coding Practices — ENFORCED: not in the project's language; needless `any`; one- or two-letter names, cryptic abbreviations or code-golf tricks (loop counters, axis/`uv` names, toolkit aliases and exported-data names excepted); dead code, unused imports, leftover `console.log`; structure a newcomer cannot maintain. FAIL a HUD, overlay or GUI file that breaks Game UI Performance — ENFORCED: a per-frame value (speed, needles, timers, bars) through React state, props, context, a store or a per-frame EventBus post; a setter, `dispatch(` or `EventBus.PostMessage(` inside `requestAnimationFrame`, a frame-loop hook, a render observable or `update()`; `width` / `height` / `top` / `left` / `innerHTML` / SVG geometry written, or layout read, per frame; a Babylon GUI control assigned every frame without a changed-value check; a frame loop on a menu, pause or results screen, splash, preloader or landing page, or doing what CSS could (a 3D or scroll-scrubbed hero that pauses off-screen is fine); a HUD loop writing while hidden or paused; a CSS `transition` on a property the loop writes. Quote the lines. JSDoc is never a FAIL — list gaps under non-blocking `JSDoc notes`. You are the only live checker: check live (browser through `bt-cdp.mjs`, Unity where relevant) every task whose correctness shows only at runtime — rendering, UI, interaction, Unity↔Babylon parity — and the plan's final end-to-end check, judging the running result as a user would, beside any reference image; unit tests never substitute. One session per phase on the running dev server, exporting only as *Work fast* allows. Save the frames from that session that show each visual task's verified result to `[SNAPSHOTS]` as `T<n>-<NN>-<stage>.png`: the same camera or viewport as the builder's progression, plus any angle or comparison (Unity beside browser, before beside after, running beside reference) that proves the Acceptance. Add each to its task with `dashboard.mjs snapshot` and return each path with its one-line caption. Snapshots never add a page session or an export of their own, but inside your session a capture costs seconds, so take it. Set each task `verifying` as you start it, and write the live file (`dashboard.mjs live`) before each slow step — an export, a capture pass across tracks or scenes, a long test run — so it is never 15 minutes silent. A test count in the plan means 'named tests pass, no new failures'. Resumed after a fix, re-check only the failed items and what the fix touched. [SCOPE] Return PASS/FAIL per task with evidence, one line on what you ran live and where (or `none — tests only`), and records-only slips separately."*
|
|
67
|
+
*"Confirm each task's Acceptance is met and run its `Verify` commands against their expected output. Re-run the tests and the relevant suite once; tests that miss the Acceptance or named edge cases, or could not fail, are a FAIL. Read the diff for real defects: logic errors, broken callers, unhandled named edge cases, documented behavior dropped or inverted, a sibling-skill template re-implemented instead of copied. FAIL a touched code file that breaks Coding Practices — ENFORCED: not in the project's language; needless `any`; one- or two-letter names, cryptic abbreviations or code-golf tricks (loop counters, axis/`uv` names, toolkit aliases and exported-data names excepted); dead code, unused imports, leftover `console.log`; structure a newcomer cannot maintain. FAIL a HUD, overlay or GUI file that breaks Game UI Performance — ENFORCED: a per-frame value (speed, needles, timers, bars) through React state, props, context, a store or a per-frame EventBus post; a setter, `dispatch(` or `EventBus.PostMessage(` inside `requestAnimationFrame`, a frame-loop hook, a render observable or `update()`; `width` / `height` / `top` / `left` / `innerHTML` / SVG geometry written, or layout read, per frame; a Babylon GUI control assigned every frame without a changed-value check; a frame loop on a menu, pause or results screen, splash, preloader or landing page, or doing what CSS could (a 3D or scroll-scrubbed hero that pauses off-screen is fine); a HUD loop writing while hidden or paused; a CSS `transition` on a property the loop writes (the shared gamepad menu poller of `html-gamepad.md` is the one allowed menu poll). In a project with gamepad support, FAIL the following and drive the screen with `bt-cdp.mjs`'s simulated pad (`gamepad: true`) to check it: a screen the task added or changed that the pad alone cannot drive — no `useGamepadMenuNavigation`, a missing or wrong B, no focus on arrival, a control the D-pad cannot reach, a cursor lost or hidden, prompts that do not swap **(A)/(B)** glyphs and **Enter/Esc** keys; a gameplay action with no pad input; a second pad poller. Never report the user's real-pad check as done — it is owed. Quote the lines. JSDoc is never a FAIL — list gaps under non-blocking `JSDoc notes`. You are the only live checker: check live (browser through `bt-cdp.mjs`, Unity where relevant) every task whose correctness shows only at runtime — rendering, UI, interaction, Unity↔Babylon parity — and the plan's final end-to-end check, judging the running result as a user would, beside any reference image; unit tests never substitute. One session per phase on the running dev server, exporting only as *Work fast* allows. Save the frames from that session that show each visual task's verified result to `[SNAPSHOTS]` as `T<n>-<NN>-<stage>.png`: the same camera or viewport as the builder's progression, plus any angle or comparison (Unity beside browser, before beside after, running beside reference) that proves the Acceptance. Add each to its task with `dashboard.mjs snapshot` and return each path with its one-line caption. Snapshots never add a page session or an export of their own, but inside your session a capture costs seconds, so take it. Set each task `verifying` as you start it, and write the live file (`dashboard.mjs live`) before each slow step — an export, a capture pass across tracks or scenes, a long test run — so it is never 15 minutes silent. A test count in the plan means 'named tests pass, no new failures'. Resumed after a fix, re-check only the failed items and what the fix touched. [SCOPE] Return PASS/FAIL per task with evidence, one line on what you ran live and where (or `none — tests only`), and records-only slips separately."*
|
|
68
68
|
|
|
69
69
|
`[SNAPSHOTS]` is the feature folder's `snapshots/` path. `[SCOPE]` — **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 — 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."* For a task built on a sibling skill (e.g. bt-design's 3D-Hero-Scroll), give the verifier its relevant part — its documented options are Acceptance.
|
|
70
70
|
|
|
@@ -85,7 +85,7 @@ Work in **phases**: the plan's `### Phase N` groups, else up to 3 consecutive ta
|
|
|
85
85
|
snapshots/ tests/ recon/
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
**The feature folder is wherever the plan is** (`<slug>` is its name); paths are relative to it. The user moves folders between `.agents/specs/`,
|
|
88
|
+
**The feature folder is wherever the plan is** (`<slug>` is its name); paths are relative to it. The user moves folders between `.agents/specs/`, `.agents/complete/`, `.agents/followup/` and `.agents/archived/`; a reopened plan runs where it is. **Never move a feature folder.** A legacy flat plan (`.agents/specs/<slug>_plan.md`) runs in place and gets `.agents/specs/<slug>/` for the dashboard files and `snapshots/`.
|
|
89
89
|
|
|
90
90
|
The page, starter data and live file come from `templates/dashboard/` *(skills loaded through a tool: `load_skill` + `read_skill_resource`; as files: this skill's folder)*; `dashboard.html` is copied with `{{slug}}` replaced, never edited. **`data-schema.md` documents every field, status and snapshot shape — read it once per run; brief each role on its parts.** bt-plan writes all three; create any that is missing. **Every write goes through `scripts/dashboard.mjs`** (atomic, shape-checked; options in its header; no Node → `data-schema.md`'s fallback).
|
|
91
91
|
|
|
@@ -110,7 +110,7 @@ The snapshots are how a human sees what was built and how it came together. Choo
|
|
|
110
110
|
|
|
111
111
|
### Run start, phases, run end
|
|
112
112
|
|
|
113
|
-
- **Run start:**
|
|
113
|
+
- **Run start:** make sure the six `.agents/` folders exist side by side directly under `.agents/` — `.agents/specs/`, `.agents/complete/`, `.agents/followup/`, `.agents/archived/`, `.agents/profile/` and `.agents/recon/`, never inside `.agents/specs/` — creating only a missing one, with an empty `.gitkeep` written only where it is missing; re-copy `dashboard.html` and an existing `documents/<slug>_summary.html` from their templates; **sync the dashboard with the plan** — add missing phases and tasks in plan order as `pending` with an `updates` note (`Added to the plan after <phase 2 ran / it was complete> — <why>`), remove dropped ones with an `activity` line. Then `status <feature-folder> in-progress`, `runs` + 1, the run-log link, an `activity` line, and **the watchdog launched in the background**; in git, add `.agents/*/*/documents/*_live.js` to `.gitignore` once. Before T1 of the first run changes anything, save `snapshots/plan-before.png`, the plan-wide "before" (*Snapshots tell the story*).
|
|
114
114
|
- **Each phase, after its ticks:** status, times and minutes (its `⏱` line), verifier result, a 2–3 sentence summary, the phase's progression (its tasks' frames in build order from one camera, `snapshot P<N> --frame …`) when it spans tasks, `decisions`, `activeTime` (all runs: each `⏱ Run <n> end` line's `active` plus this run's), an `activity` line, a "so far" `outcome`, and `check` passing.
|
|
115
115
|
- **Run end — the After Action Report.** Status from **re-reading the checkboxes**: all `- [x]` → `complete`; all ticked or ⏭️ DEFERRED → `incomplete`; else `paused` — never `in-progress`. **Follow-ups:** add each with `followup <feature-folder> --title "<one line>" --detail "…" --source "T<n> <role>" [--file <path>]…` — one per thing a human should look at next (a pre-existing problem the run logged, work outside the plan's scope, a gap no check covered), never a note about what went well. Each carries enough to be specced on its own: what is wrong, the evidence (numbers, where it showed), where to look, what fixing it involves. The helper numbers them `F1`, `F2` …, writes `documents/<slug>_followups.md`, and the dashboard offers a `/bt-spec Fix F<n> from …` command for each, and for any ticked together. A later run revises one with `--id F2 … --note "why"`, never by rewriting it. A feature specced *from* follow-ups (its `feature.addresses`, set by bt-spec) needs nothing extra: every `status` write and `check` carries its progress to the source follow-ups (in progress, done, partly done). Then write `afterAction` (fields in `data-schema.md`): headline, body, highlights, **one plan-wide before/after** (`snapshot <feature-folder> comparison --before snapshots/plan-before.png --after snapshots/plan-after.png --caption "…"`), the "after" from the same camera in the final end-to-end session; the key progression in `afterAction.snapshots` if it tells the story best; and every run `afterAction.testing` — each suite the plan touched re-run **once in full** (one `suites` entry each, never summed from tasks), a `summary` and `gaps`. An early end writes it too (*Interim* while `paused`; revised next run with an `updates` entry); finishing a reopened plan rewrites it, notes the change and retakes the "after". Then open `dashboard.html` headless once: every snapshot shows.
|
|
116
116
|
- **Plan summary, only when `complete`:** copy `templates/summary/summary.html` to `documents/<slug>_summary.html` (`{{slug}}` replaced) and write `documents/<slug>_summary.js` per **`summary-guide.md`** and its worked example `summary.template.js` — the plan for people who never see the code, on-screen names in **bold**, real values, no file names, task IDs or test counts. Set `afterAction.planSummary`. A reopened plan keeps its summary until it completes again; then rewrite it, add the date to `stamp` (`Fixed on 2026-10-19; updated on 2026-11-02`) and say in the lead what changed.
|
|
@@ -120,6 +120,8 @@ The Layout law from Step 2 binds these surfaces too — full-bleed, responsive,
|
|
|
120
120
|
- **Nothing updates while it is not on screen.** The HUD is unmounted (or its loop skips) behind a pause, settings or results modal and while the game is paused. Menus, pause / settings / results screens and the landing page run no frame loop at all — their motion is CSS.
|
|
121
121
|
- **The redesign's initial overlay is usually all static and state** (a brand corner, a frame, a pause button). It needs no frame loop until a live value arrives; do not add one "for later".
|
|
122
122
|
|
|
123
|
+
**GAMEPAD SUPPORT (only when the brief asks for it, or the project already has it — never added unasked).** Read the Agent Reference's `html-gamepad.md` and keep every surface you build on that level. The landing / title page, the splash's interactive pieces (a Play / Skip button, a notice dialog) and every overlay are surfaces driven by the pad alone: `useGamepadMenuNavigation`, focus on arrival on the primary control, A / Enter choose, B / Escape back. Prompts read **(A) Play** with the pad and **[Enter] Play** with the keyboard, swapped by CSS on `data-input`, and the focus cursor is designed in bt-design's style. The shared navigator's input poll is the one allowed exception to "no frame loop on the landing page", because it runs only while a pad is connected. Never add a second poller. If the project already has gamepad support, a redesign that loses it on any screen is not finished.
|
|
124
|
+
|
|
123
125
|
# Step 4 — bespoke art (when media generation is available)
|
|
124
126
|
|
|
125
127
|
If the platform's `generate_image` / `generate_video` tools are available on this turn, use them to make the design beautiful: a hero background, a logo/wordmark, splash-adjacent accents (16:9 for wide heroes, 1:1 for badges/logos; png when alpha matters). Make ALL generate calls FIRST, in ONE parallel round, before writing any files; reference the returned `/assets/generated/…` paths exactly as returned (the one exception to never-invent-an-asset-path) — the renders land in the background, so every surface must look finished while they do (styled color/gradient fallback behind each image, never a blank box). At most ONE short looping hero video, and only if it truly elevates the design — video costs the user hundreds of credits. If the tools are absent, design with CSS + the images on disk instead.
|
package/skills/bt-plan/SKILL.md
CHANGED
|
@@ -60,6 +60,7 @@ Execution time is mostly *how the work is proven*, not the code. Keep proof stro
|
|
|
60
60
|
10. **No ceremony.** No standalone "verification sweep / open the review / final check" tasks, and no ledgers, md5 or environment records, archives, checked-in capture trees, standing evidence suites, doc-integrity registration or staged promotions — unless the brief asks.
|
|
61
61
|
11. **No brittle pins.** Never pin counts later tasks will change (tests passed, suite sizes, hashes). Say "the named tests pass, no new failures versus the baseline".
|
|
62
62
|
12. **Plan code follows the Agent Reference's Coding Practices — ENFORCED.** Every snippet, signature, interface, class, member, constant and file name the plan writes is clean, professional TypeScript or JavaScript in the project's language (never switched unasked), with meaningful full-word names (no one- or two-letter names, cryptic abbreviations or code-golf tricks), well structured, readable and maintainable by human developers, with meaningful JSDoc on every class, function, method, interface and public member. JSDoc is never a gate: no Acceptance item, Test or Verify step fails on missing JSDoc. The executor copies plan code word for word, so a badly named snippet ships badly named. Names that bind to exported data (component properties, serialized fields, Unity property names) keep the source's names. Plan UI code also follows **Game UI Performance — ENFORCED**: every HUD value is classified as *state* (React, set on events) or *telemetry* (refs and one frame loop, never React state or a per-frame EventBus message), and the snippets show telemetry that way. Every UI element gets the cheapest cadence in `ui-design-system.md` › **Per frame or not** — events for state, CSS for decorative motion, the frame loop only for telemetry, throttled readouts, nothing while hidden — and no snippet puts a frame loop on a menu, splash, preloader or landing page (a real-time hero excepted, paused off-screen and at rest). Code-quality checks are never a separate task; bt-execute's verifier enforces them on every task.
|
|
63
|
+
13. **Gamepad support is opt-in, and full when asked.** Never plan it unasked. When the spec or brief asks for gamepad / controller support, read the Agent Reference's `html-gamepad.md` and plan to it (its *When a spec or plan mentions gamepad support*). The Decisions cover the button map, `TOOLKIT.InputController` for gameplay, one shared DOM navigator, the menu controls, the `data-input` glyph swap and the poll exception. The plan carries the **surface table** (every screen, its B, its focus on arrival). Tasks cover gameplay readers → the copied input files → every surface wired with the focus cursor and glyph-swapping prompts plus the coverage test → the controls page → a simulated-pad end-to-end journey → `SPEC.md`. The real-pad check is a follow-up owed to the user. In a project that already has gamepad support, every new or changed screen joins the surface table, and its Acceptance includes "driven by the simulated pad alone".
|
|
63
64
|
|
|
64
65
|
## Step 3. Write the plan
|
|
65
66
|
|
|
@@ -84,7 +84,7 @@ Before building anything, decide the **N distinct directions** so the batch does
|
|
|
84
84
|
- **With `--awwwards`:** see *Sourcing directions from awwwards* below.
|
|
85
85
|
- **With neither:** invent the N directions from the theme + world anchor.
|
|
86
86
|
|
|
87
|
-
**Full-bleed console UI is the baseline for every direction.** These are **game front-ends**, so each prototype defaults to a **full-page-width, full-viewport, edge-to-edge** layout that feels like a modern console dashboard / AAA game menu (Xbox / PS5), per bt-design's *Layout Philosophy — Full-Bleed Console UI* section — every view owns the whole viewport, full-bleed atmosphere, UI anchored to the edges with a TV-safe gutter, console focus/selection states. The directions still vary the *design language* (motion system, type voice, 3D approach) on top of that shared full-bleed baseline; they do **not** vary down to a centered fixed-width marketing column unless a specific direction deliberately calls for a contained treatment (e.g. an editorial/long-form lens) — and when one does, note it in `_directions.md` and still keep a full-bleed backdrop behind the contained element.
|
|
87
|
+
**Full-bleed console UI is the baseline for every direction.** These are **game front-ends**, so each prototype defaults to a **full-page-width, full-viewport, edge-to-edge** layout that feels like a modern console dashboard / AAA game menu (Xbox / PS5), per bt-design's *Layout Philosophy — Full-Bleed Console UI* section — every view owns the whole viewport, full-bleed atmosphere, UI anchored to the edges with a TV-safe gutter, console focus/selection states. When the brief asks for gamepad support, each prototype's interactive controls are reachable with the D-pad and show glyph-swapping prompts (**(A)** / **[Enter]**), as the Agent Reference's `html-gamepad.md` sets. The directions still vary the *design language* (motion system, type voice, 3D approach) on top of that shared full-bleed baseline; they do **not** vary down to a centered fixed-width marketing column unless a specific direction deliberately calls for a contained treatment (e.g. an editorial/long-form lens) — and when one does, note it in `_directions.md` and still keep a full-bleed backdrop behind the contained element.
|
|
88
88
|
|
|
89
89
|
**Full-bleed does not mean a single locked screen — these are landing pages, so scroll stays first-class** (bt-design's *scroll is the transport, not the enemy* rule). Full-viewport views scroll between and through each other, and any **3D-hero-scroll direction plays its cinematic scroll, then settles into the full-bleed console home view at the end** (the sweep-into-console handoff) rather than dead-ending or dropping into a stock template. Compose each view full-bleed; let scroll carry the user between them.
|
|
90
90
|
|
package/skills/bt-recon/SKILL.md
CHANGED
|
@@ -69,7 +69,7 @@ Split the scope map into cohesive **slices** — by module, feature or layer, ro
|
|
|
69
69
|
> 2. **Entry points & activation** — how its code is reached: URLs, query params, routes, flags, events, init calls, lifecycle hooks.
|
|
70
70
|
> 3. **Public API** — exported classes, functions, components, web components, custom elements, with full signatures.
|
|
71
71
|
> 4. **State & data shapes** — types, models and their fields; defaults; which are persisted and where; which are runtime only.
|
|
72
|
-
> 5. **UI inventory** — every panel, dialog, toolbar, menu and overlay; for each, every control (button, input, toggle, slider, list, hotkey, mouse / touch gesture) → what it does → its handler `path:line`. Include enabled/disabled and visibility conditions. For every live value a HUD, overlay or GUI shows, record how it is updated (event, frame loop, throttle, CSS) and `path:line`, and flag each break of the Agent Reference's **Game UI Performance — ENFORCED** — per-frame React state or EventBus posts, unchanged values rewritten every frame, layout written or read per frame, a frame loop on a menu / splash / landing page or running while its UI is hidden — as a maintenance risk.
|
|
72
|
+
> 5. **UI inventory** — every panel, dialog, toolbar, menu and overlay; for each, every control (button, input, toggle, slider, list, hotkey, gamepad button, mouse / touch gesture) → what it does → its handler `path:line`. Record whether each screen can be driven by a gamepad (its navigation hook, its Back, its focus on arrival, its prompt glyphs) and the gameplay pad bindings, against the Agent Reference's `html-gamepad.md`. Include enabled/disabled and visibility conditions. For every live value a HUD, overlay or GUI shows, record how it is updated (event, frame loop, throttle, CSS) and `path:line`, and flag each break of the Agent Reference's **Game UI Performance — ENFORCED** — per-frame React state or EventBus posts, unchanged values rewritten every frame, layout written or read per frame, a frame loop on a menu / splash / landing page or running while its UI is hidden — as a maintenance risk.
|
|
73
73
|
> 6. **Events & messages** — emitted and consumed events, observables, callbacks, postMessage, pub/sub topics, and who listens.
|
|
74
74
|
> 7. **External I/O** — every network call: method, URL or URL template, request body/params shape, response shape as consumed, auth/headers, error and retry handling. Every storage use: localStorage, IndexedDB, cookies, files.
|
|
75
75
|
> 8. **Rendering & pipelines** — cameras, render targets, passes, post-processes, shaders and materials, offscreen renders and image exports: what each produces, at what size and format, and what each output encodes (e.g. which geometry a mask isolates, what a color or channel means).
|
package/skills/bt-spec/SKILL.md
CHANGED
|
@@ -40,6 +40,7 @@ From the flag-stripped brief derive `feature_title` (Title Case), `feature_slug`
|
|
|
40
40
|
- **`SPEC.md`** (repository root) is the project's source of truth for architecture, systems, conventions and decisions. Read its headings, Architecture, Conventions, and the systems this feature touches. The feature must fit it. **If the idea conflicts with SPEC.md, stop and tell the user before writing.** Verification procedures described in SPEC.md are tooling the feature may reuse, not requirements it inherits.
|
|
41
41
|
- **If `SPEC.md` is missing or an empty stub, ask the user first** whether to create it from the scaffold at the end of this file. Yes → write it, then continue against it. No → continue, and note in the spec: `"No project SPEC.md content yet — following existing codebase conventions."`
|
|
42
42
|
- **`DESIGN.md`** (only if the feature has UI): it is the single source of truth for design — never Figma or invented values. Cite the tokens and shared components the feature uses in 3–8 bullets. Missing → note `"No DESIGN.md design system found — follow the existing UI conventions already in the codebase."` No UI → say no design tokens apply. When the feature has a HUD, overlay, menu, splash or landing page, add one bullet naming its live values and their cadence under the Agent Reference's **Game UI Performance — ENFORCED** (state on events, telemetry through the frame loop, throttled readouts, decorative motion in CSS, no frame loop on menus / splash / landing pages), so the plan builds it that way.
|
|
43
|
+
- **Gamepad support** (the brief asks for gamepad / controller support, or the project has it — `SPEC.md` input rules or a `GamepadMenuNavigator` in `src/`): read the Agent Reference's `html-gamepad.md`. The spec requires **both halves** at that level — every gameplay action on the pad, and every screen the feature adds or changes driven by the pad alone with glyph-swapping prompts — and lists those screens for the plan's surface table. Never add gamepad support to a spec whose brief did not ask for it, and never spec it as gameplay-only or menus-only.
|
|
43
44
|
- **Recon docs (`.agents/recon/*_recon.md`, written by bt-recon):** if any recon's `scope` covers a system this feature touches, read its Summary, Architecture, the relevant Feature Inventory / UI Reference / External Interfaces sections, Known Issues and Extension Points — it is the grounding for code nobody else documented, so build on it instead of re-deriving it. Cite it in `## Research Notes`. If its `commit:` is well behind HEAD for the files this feature touches, note the drift there and suggest `bt-recon --refresh`.
|
|
44
45
|
- **Recons the brief cites (`… using @<path>_recon.md`):** bt-profile's fix commands cite the recon of the code behind the fixes, kept in the profile's own folder (`.agents/profile/<slug>/recon/`) or in `.agents/recon/`. Always read a cited recon in full, whatever its scope says. It is the map of the code the fix changes: callers, invariants, tests, extension points. Turn what it says must not break into Acceptance Criteria or named test cases. **Copy each cited recon into this feature's `recon/` folder** and cite the copy in `## Research Notes`. The feature folder then holds everything it rests on, and still works after the profile is archived or moved. A cited recon that does not exist yet: say so, give the `/bt-recon` command that makes it (the profile report's **Copy recon command**), and carry on with your own research.
|
|
45
46
|
- **Follow-ups the brief cites (`Fix F1 and F3 from @<feature-folder>/documents/<slug>_followups.md`):** a finished feature's dashboard offers this command for what its bt-execute runs left for a human to look at next. Read each cited follow-up in full: it is the brief (what is wrong, the evidence, where to look, what fixing it involves). Then read what it points at in the source feature: its plan's Decisions, the run-log lines and files it names, and the source feature's `recon/` copies when it touches that code. Spec only the cited follow-ups, as **one new feature** with its own slug, named for what they fix (`network-hud-banner-fix`), never `fix-f1` and never the source feature's slug. Cite the follow-ups file (`<source-folder>/documents/<slug>_followups.md`) with the ids in one paragraph of `## Research Notes`, saying which follow-ups the spec covers — the helper's `check` links an unlinked feature from that paragraph. A cited id the file does not have: list the ids it does have, and stop. A cited follow-up whose **Status** line says a later feature already addresses it (specced, planned, in progress or done — only *partly done* is open again): name that feature and ask whether to spec it again before writing anything. Step 6 links the new feature to the follow-ups, so the source dashboard shows them taken on.
|