@babylonjs-toolkit/agent 1.1.16 → 1.1.24
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 +27 -2
- package/package.json +2 -2
- package/skills/bt-atlas/SKILL.md +31 -8
- package/skills/bt-design/references/3d-hero-docs.md +9 -6
- package/skills/bt-design/references/3d-hero-scroll.md +32 -10
- package/skills/bt-execute/SKILL.md +161 -13
- package/skills/bt-gauntlet/SKILL.md +4 -4
- package/skills/bt-gauntlet/references/spec-composition.md +4 -2
- package/skills/bt-gauntlet/references/target-images.md +34 -2
- package/skills/bt-gauntlet/references/unity-pipeline.md +12 -3
- package/skills/bt-hero/SKILL.md +3 -2
- package/skills/bt-landing/SKILL.md +2 -0
- package/skills/bt-prototype/SKILL.md +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# Babylon Toolkit Agent
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.1.24)
|
|
2
|
+
|
|
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.
|
|
2
4
|
|
|
3
5
|
Universal [Agent Skills](https://agentskills.io) for the `Babylon Toolkit` web game development framework.
|
|
4
6
|
Each `SKILL.md` follows the open standard, so the **same file works unchanged** in Claude Code, Codex CLI, and GitHub Copilot.
|
|
@@ -125,7 +127,7 @@ happens to be named `bt-something` is safe.
|
|
|
125
127
|
|-------|---------|--------------|
|
|
126
128
|
| [`bt-spec`](skills/bt-spec/SKILL.md) | `/bt-spec` | Turn a short idea into a feature spec file on a new git branch. |
|
|
127
129
|
| [`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. |
|
|
128
|
-
| [`bt-execute`](skills/bt-execute/SKILL.md) | `/bt-execute` | Implement one task (or all remaining tasks
|
|
130
|
+
| [`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. |
|
|
129
131
|
| [`bt-convert`](skills/bt-convert/SKILL.md) | `/bt-convert` | Convert source code to Babylon Toolkit TypeScript. |
|
|
130
132
|
| [`bt-copycat`](skills/bt-copycat/SKILL.md) | `/bt-copycat` | Re-create the specified website adapted to specified genre. |
|
|
131
133
|
| [`bt-landing`](skills/bt-landing/SKILL.md) | `/bt-landing` | Re-design the landing page, splash screen, preloader and custom overlays. |
|
|
@@ -154,6 +156,29 @@ that task 40 uses the same names, shapes and patterns as task 3 — whichever se
|
|
|
154
156
|
it. Without the flag, `bt-plan` produces its standard plan; `bt-execute` runs either kind the
|
|
155
157
|
same way.
|
|
156
158
|
|
|
159
|
+
### Unattended runs (`/bt-execute --auto-pilot`)
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
/bt-execute --auto-pilot @_specs/<feature>_plan.md ALL
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Auto-pilot is for running a 50-task plan overnight. There is no one to ask, so `bt-execute`
|
|
166
|
+
makes every call itself — from the plan's Decisions, then the Babylon Toolkit Agent Reference
|
|
167
|
+
(Unity → interactive glTF → BabylonJS script components), then the codebase, then senior-developer
|
|
168
|
+
default — and logs each one. Nothing is relaxed on quality: every task still goes through the
|
|
169
|
+
testing subagent and an independent acceptance verifier, and a box only flips on a genuine PASS.
|
|
170
|
+
What changes is that a failure never halts the run: a failing task gets a bounded fix loop (up to
|
|
171
|
+
5 attempts), is then marked `⏭️ DEFERRED (auto-pilot): <reason>` in the plan, and the run moves
|
|
172
|
+
on; deferred tasks get one more pass at the end. Each verified task is committed as a checkpoint
|
|
173
|
+
on the current branch (an `autopilot/<plan>` branch is created if you are on `main`; nothing is
|
|
174
|
+
ever pushed), and a `<plan>_autopilot.md` run log next to the plan records every task outcome,
|
|
175
|
+
decision and deferral for you to read in the morning. Re-running the same command resumes and
|
|
176
|
+
re-attempts anything deferred.
|
|
177
|
+
|
|
178
|
+
One thing the skill cannot do is answer the host's tool-permission prompts — start the session
|
|
179
|
+
in a non-prompting permission mode (Claude Code auto / bypass-permissions) and leave Unity,
|
|
180
|
+
Blender and the dev server reachable if the plan needs them.
|
|
181
|
+
|
|
157
182
|
## Universal Installations
|
|
158
183
|
|
|
159
184
|
Where each tool looks for GLOBAL skills (**Default Installation** — `~` = your home directory):
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs-toolkit/agent",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Installs the Babylon Toolkit
|
|
3
|
+
"version": "1.1.24",
|
|
4
|
+
"description": "Installs the Babylon Toolkit Desktop Agent for Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babylonjs",
|
|
7
7
|
"babylon-toolkit",
|
package/skills/bt-atlas/SKILL.md
CHANGED
|
@@ -61,17 +61,37 @@ guess, substitute a different file, or continue with a partial setup. Tell the
|
|
|
61
61
|
user exactly which input failed and why, and ask for a corrected path/URL.
|
|
62
62
|
|
|
63
63
|
## Tools
|
|
64
|
-
- **Image generation**:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
tool is used, pass BOTH the base texture and the UV layout as reference
|
|
64
|
+
- **Image generation**: pick the backend in this order:
|
|
65
|
+
1. the tool or model the user named (e.g. "use nano-banana-2", "use Flux", "use Higgsfield");
|
|
66
|
+
2. the **kie** image MCP (`kie-image-mcp`), the **default** where configured;
|
|
67
|
+
3. the **Higgsfield** MCP (`mcp__higgsfield__generate_image`) where configured;
|
|
68
|
+
4. the host's built-in image generation, or any other configured image tool.
|
|
69
|
+
|
|
70
|
+
Whichever tool is used, pass BOTH the base texture and the UV layout as reference
|
|
71
71
|
images to it. Match `aspect_ratio` to the texture (usually `1:1`), request a
|
|
72
72
|
resolution/size close to the texture size (e.g. `2K` for 2048px), and request
|
|
73
73
|
PNG output. If no image-generation tool is available at all, tell the user
|
|
74
74
|
and ask them to configure one before proceeding.
|
|
75
|
+
|
|
76
|
+
- **kie**: `generate_image` with `reference_paths: [<base.png>, <uv_layout.png>]`
|
|
77
|
+
(in that order), `out_path: <scratch>/raw/skin_var_NN.png`, `output_format: "png"`.
|
|
78
|
+
- **Higgsfield**: it cannot read local files and has no `out_path`.
|
|
79
|
+
1. **Upload both references once**: `media_upload {files:[{filename:"base.png"},{filename:"uv_layout.png"}]}`,
|
|
80
|
+
then `curl -f -X PUT --upload-file <file> '<upload_url>'` for each, then
|
|
81
|
+
`media_confirm {type:"image", media_ids:[…]}`. Reuse the two `media_id`s for every variant.
|
|
82
|
+
2. **Pick a model that takes several reference images**: `gpt_image_2_5` (default),
|
|
83
|
+
`nano_banana_2`, or `seedream_v4_5`. Never use `z_image`, which accepts no references. Pass
|
|
84
|
+
`medias: [{role:"image_references", value:<base id>}, {role:"image_references", value:<uv id>}]`,
|
|
85
|
+
with the base texture first, and `resolution: "2k"` for a 2048 texture.
|
|
86
|
+
3. **Preflight once** with `get_cost: true` and tell the user the per-variant credit cost before a
|
|
87
|
+
large batch. Always send `use_unlim: false`.
|
|
88
|
+
4. For several variants, use `generate_image_batch` (≤12 per call, `index` = variant number) and then
|
|
89
|
+
`jobs_wait`. For one variant, use `generate_image` then `job_status {jobId, sync:true}`.
|
|
90
|
+
5. **Download each result** from `results.rawUrl`:
|
|
91
|
+
`curl -fL -o <scratch>/raw/skin_var_NN.png '<rawUrl>'`. Step 5 composites local files only.
|
|
92
|
+
`composite_skin.py` resizes the output to the base texture's size itself, so an output at a
|
|
93
|
+
different size needs no extra step.
|
|
94
|
+
See the Babylon Toolkit reference `web-higgsfield-mcp.md` for the full tool list.
|
|
75
95
|
- **Helper scripts** live in the `scripts/` folder next to this SKILL.md
|
|
76
96
|
(need Python 3 + Pillow + numpy):
|
|
77
97
|
- `scripts/uv_island_mask.py` — build the island mask from the UV layout.
|
|
@@ -168,7 +188,10 @@ for just those indices.
|
|
|
168
188
|
|
|
169
189
|
## Notes & gotchas
|
|
170
190
|
- Always pass BOTH base + UV layout as references to the generator; never rely on
|
|
171
|
-
the prompt alone to hold the layout.
|
|
191
|
+
the prompt alone to hold the layout. On Higgsfield that means two uploaded
|
|
192
|
+
`media_id`s in `medias`, not file paths.
|
|
193
|
+
- Generated outputs (kie or Higgsfield) must end up as local files in `<scratch>/raw/`;
|
|
194
|
+
never reference a remote result URL from the finals or the engine project.
|
|
172
195
|
- The mask is the safety net. If a variant's island content is shifted inside its
|
|
173
196
|
island, the composite clips it to the island shape — re-prompt that variant
|
|
174
197
|
rather than widening the mask.
|
|
@@ -64,12 +64,15 @@ all beats ffmpeg concat → journey.mp4
|
|
|
64
64
|
**Which tool backs `generate_image` / `generate_video`?** These are generic
|
|
65
65
|
calls, not a specific vendor. The skill routes them to whatever image/video
|
|
66
66
|
generation is configured in your environment — KIE MCP servers (e.g.
|
|
67
|
-
`kie-image-mcp` and `kie-video-mcp
|
|
68
|
-
image/video generation, or any other configured image/video tool.
|
|
69
|
-
just says "generate the footage"; the wiring picks the backend.
|
|
70
|
-
`reference_paths`
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
`kie-image-mcp` and `kie-video-mcp`, the default), Higgsfield MCP, the model's
|
|
68
|
+
own built-in image/video generation, or any other configured image/video tool.
|
|
69
|
+
The prompt just says "generate the footage"; the wiring picks the backend.
|
|
70
|
+
`image_paths` / `reference_paths` / `out_path` are the KIE/Kling parameter names.
|
|
71
|
+
On **Higgsfield**, `image_paths[0]` / `[1]` become `medias` roles `start_image` /
|
|
72
|
+
`end_image` on `kling3_0` or `seedance_2_5`. Local frames are uploaded first
|
|
73
|
+
(`media_upload` → PUT → `media_confirm`), and `out_path` becomes "poll
|
|
74
|
+
`job_status`, then `curl` the result into `media/`". The full table is in
|
|
75
|
+
`3d-hero-scroll.md` §2.
|
|
73
76
|
|
|
74
77
|
**"Chain last-frame-to-first-frame" decoded:** Kling's `image_paths[0]` pins a
|
|
75
78
|
clip's FIRST frame. The pipeline extracts clip N's LAST frame with ffmpeg and
|
|
@@ -39,9 +39,9 @@ memory in any framework; copy it and configure it.
|
|
|
39
39
|
1. **Footage source** (pick one):
|
|
40
40
|
- **(a) Provided video** — skip to §3 (still needs the scrub re-encode).
|
|
41
41
|
- **(b) Generate the footage** with whatever image/video generation is
|
|
42
|
-
configured — KIE MCP servers (`kie-image-mcp` / `kie-video-mcp
|
|
43
|
-
Higgsfield MCP, the model's own built-in image/video
|
|
44
|
-
other configured image/video tool — §2.
|
|
42
|
+
configured — KIE MCP servers (`kie-image-mcp` / `kie-video-mcp`, the
|
|
43
|
+
**default**), Higgsfield MCP, the model's own built-in image/video
|
|
44
|
+
generation, or any other configured image/video tool — §2.
|
|
45
45
|
- **(c) No footage possible** — this pattern is wrong; use a static hero.
|
|
46
46
|
2. **Brand tokens** — map `--hs-bg / --hs-ink / --hs-dim / --hs-accent /
|
|
47
47
|
--hs-display / --hs-mono` to the host site's design system (DESIGN.md or
|
|
@@ -74,18 +74,39 @@ memory in any framework; copy it and configure it.
|
|
|
74
74
|
## 2 · Footage pipeline (generation path)
|
|
75
75
|
|
|
76
76
|
The generation backend is pluggable — the pipeline below is the same whatever
|
|
77
|
-
produces the frames.
|
|
78
|
-
KIE MCP servers (`kie-image-mcp` / `kie-video-mcp
|
|
79
|
-
own built-in image/video generation
|
|
80
|
-
The parameter names below (`reference_paths`, `image_paths
|
|
81
|
-
|
|
82
|
-
under their own names — map to whichever you're using.
|
|
77
|
+
produces the frames. Choose the backend in this order: the one the user named →
|
|
78
|
+
**KIE MCP servers** (`kie-image-mcp` / `kie-video-mcp`, the default) → **Higgsfield
|
|
79
|
+
MCP** → the model's own built-in image/video generation → any other configured
|
|
80
|
+
image/video tool. The parameter names below (`reference_paths`, `image_paths`,
|
|
81
|
+
`out_path`) are KIE/Kling's; map them to your backend (Higgsfield mapping below).
|
|
83
82
|
|
|
84
83
|
> **If using the KIE MCP servers** (Babylon Toolkit projects): fetch the
|
|
85
84
|
> Babylon Toolkit Agent Reference and its `web-kie-servers.md` sub-document
|
|
86
85
|
> first (per CLAUDE.md). Those servers read the key from `.env` — a file named
|
|
87
86
|
> `env` is ignored.
|
|
88
87
|
|
|
88
|
+
> **If using the Higgsfield MCP** (`mcp__higgsfield__*`): fetch the Agent
|
|
89
|
+
> Reference's `web-higgsfield-mcp.md` sub-document first. Higgsfield has no
|
|
90
|
+
> `out_path` and cannot read local files, so every KIE-shaped call maps like this:
|
|
91
|
+
>
|
|
92
|
+
> | KIE shape | Higgsfield |
|
|
93
|
+
> |---|---|
|
|
94
|
+
> | local `reference_paths` / `image_paths` | upload first: `media_upload` → `curl -f -X PUT --upload-file <f> '<upload_url>'` → `media_confirm {type:"image"}` → `media_id`. A previous Higgsfield output (anchor image, generated still) needs no upload; pass its `job_id` |
|
|
95
|
+
> | anchor/reference image | `generate_image` `medias: [{role:"image_references", value}]` (`gpt_image_2_5` or `nano_banana_pro`) |
|
|
96
|
+
> | `image_paths[0]` = first frame | `generate_video` `medias: [{role:"start_image", value}]` |
|
|
97
|
+
> | `image_paths[1]` = last frame | `medias: [{role:"end_image", value}]` |
|
|
98
|
+
> | Kling 3 `std`/`pro` | `model: "kling3_0"`, `mode: "std"|"pro"|"4k"`, `duration` 3–15, `aspect_ratio` 16:9 |
|
|
99
|
+
> | general video | `model: "seedance_2_5"` (`duration` 4–30, `resolution` 480p/720p/1080p) |
|
|
100
|
+
> | `out_path` | `job_status {jobId, sync:true}` until `completed` (video ~60–180 s), then `curl -fL -o clipN.mp4 '<result url>'` |
|
|
101
|
+
>
|
|
102
|
+
> The scrub encode strips audio (`-an`), so turn generated audio **off**. That is
|
|
103
|
+
> `sound: "off"` on `kling3_0` and `generate_audio: false` on `seedance_2_5`, and
|
|
104
|
+
> it also lowers the credit cost. Preflight each clip with `get_cost: true`,
|
|
105
|
+
> always send `use_unlim: false`, and tell the user the total credits for the
|
|
106
|
+
> film before submitting it: a 4-clip film is the expensive part of this pattern.
|
|
107
|
+
> The extracted last frame (`last.jpg`) is a local file, so it goes through
|
|
108
|
+
> the upload step before it can pin the next clip's `start_image`.
|
|
109
|
+
|
|
89
110
|
1. **One hero anchor image first** (image model, e.g. nano-banana-pro, 16:9,
|
|
90
111
|
2K). Every other asset references it (reference/anchor image input) so it is
|
|
91
112
|
the same product everywhere.
|
|
@@ -103,7 +124,8 @@ under their own names — map to whichever you're using.
|
|
|
103
124
|
3. **Know your video model's real output** (example — KIE/Kling 3: `std` mode
|
|
104
125
|
returns 1284×716, not 1080p — use `pro` if that matters; clips run ~8.04s
|
|
105
126
|
for a requested 8s). Whatever the backend, ffprobe everything; never assume
|
|
106
|
-
resolutions or durations.
|
|
127
|
+
resolutions or durations. Download every clip into the project (`media/`)
|
|
128
|
+
before ffmpeg touches it; never hot-link a backend CDN URL.
|
|
107
129
|
4. **Concat + scrub encode** (the scrub encode is NON-NEGOTIABLE):
|
|
108
130
|
```
|
|
109
131
|
ffmpeg -y -f concat -safe 0 -i list.txt -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -an journey.mp4
|
|
@@ -1,6 +1,6 @@
|
|
|
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`)
|
|
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`): every decision is made autonomously from the plan, the Babylon Toolkit Agent Reference and the codebase, failing tasks are retried then deferred, and the run never stops for human input until the work queue is empty."
|
|
4
4
|
allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -13,16 +13,23 @@ Use the user’s message after the skill name as the `arguments`.
|
|
|
13
13
|
# Invocation
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
/bt-execute <plan> <task-id> <optional-brief>
|
|
16
|
+
/bt-execute [--auto-pilot] <plan> <task-id> <optional-brief>
|
|
17
17
|
```
|
|
18
|
+
- **`--auto-pilot`** *(optional flag)* — **Auto-pilot mode**: an unattended run. Every decision is made by you, nothing stops for human input, failing tasks are retried and then deferred rather than halting the run. See **Auto-pilot mode**. The flag may appear anywhere in the arguments and is never part of the brief — **strip it first**, then resolve the rest below.
|
|
18
19
|
- **`<plan>`** — the feature plan or spec file to execute tasks from. This is the *blueprint*.
|
|
19
|
-
- **`<task-id>`** —
|
|
20
|
+
- **`<task-id>`** *(optional)* — what to run: a single task id (`T4`), a **range** (`T1-T10`, `T5-`, `NEXT:3`), `NEXT` (the next unchecked task), or `ALL` (every remaining task). **Defaults to `NEXT`** when omitted (`ALL` under `--auto-pilot`). This is the *variable*.
|
|
20
21
|
- **`<optional-brief>`** — the brief or instructions for executing the task. This is the *variable*.
|
|
21
|
-
- If
|
|
22
|
+
- If `<plan>` is missing, ask for it before starting. Never guess a file path or URL. The plan is the one argument that cannot be defaulted — under auto-pilot, say so and end.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
Examples:
|
|
24
25
|
```
|
|
25
26
|
/bt-execute → @plan.md → T1 → "Implement the first task in the plan"
|
|
27
|
+
/bt-execute @plan.md # no task id → NEXT: run the next unchecked task
|
|
28
|
+
/bt-execute @plan.md "be careful with the physics layer" # no task id, just a brief → still NEXT
|
|
29
|
+
/bt-execute @plan.md T3-T7 # range: tasks T3 through T7, in plan order
|
|
30
|
+
/bt-execute @plan.md T12- # open range: T12 through the end of the plan
|
|
31
|
+
/bt-execute @plan.md NEXT:3 # the next three unchecked tasks
|
|
32
|
+
/bt-execute --auto-pilot @_specs/<feature>_plan.md ALL # unattended overnight run of every remaining task
|
|
26
33
|
```
|
|
27
34
|
|
|
28
35
|
---
|
|
@@ -47,7 +54,7 @@ Do not refetch the Agent Reference repeatedly during the same remembered session
|
|
|
47
54
|
|
|
48
55
|
Treat the Agent Reference as the authority for conventions, API, and patterns. It routes to deeper docs. Fetch linked subpages only when they are relevant to the task, and do not refetch a subpage in the same remembered session/context unless you no longer remember it.
|
|
49
56
|
|
|
50
|
-
If a required fetch fails, STOP and tell me. Do not guess at the API.
|
|
57
|
+
If a required fetch fails, STOP and tell me. Do not guess at the API. *(Auto-pilot: retry, then proceed on remembered Toolkit knowledge and log it — see **Auto-pilot mode**.)*
|
|
51
58
|
|
|
52
59
|
---
|
|
53
60
|
|
|
@@ -56,7 +63,7 @@ If a required fetch fails, STOP and tell me. Do not guess at the API.
|
|
|
56
63
|
The project's **SPEC.md** at the repository root is the source of truth for the durable architecture, systems, conventions, and decisions. **Read it before executing any task**, and follow it while implementing (it constrains how you build, not just what).
|
|
57
64
|
|
|
58
65
|
- Implement in a way that conforms to SPEC.md's architecture, systems, and conventions.
|
|
59
|
-
- **If reality diverges from SPEC.md during execution** — the code as it actually exists contradicts the spec, or the task can only be done by breaking a documented decision/convention — STOP and flag it to the user. Do not let the spec and the code silently drift apart.
|
|
66
|
+
- **If reality diverges from SPEC.md during execution** — the code as it actually exists contradicts the spec, or the task can only be done by breaking a documented decision/convention — STOP and flag it to the user. Do not let the spec and the code silently drift apart. *(Auto-pilot: decide which is right, update SPEC.md in the same task, log the Decision — never stop.)*
|
|
60
67
|
- **This is the write-up half of the spec-driven loop.** When a task changes the architecture, a system, a convention, or a dependency, SPEC.md must end up matching what was built. A well-formed plan makes this an explicit final `Update SPEC.md` task (see below); if you are executing a plan that changes architecture but has no such task, flag the gap and update SPEC.md as part of completing the work rather than leaving it stale.
|
|
61
68
|
- Record any new dependency in SPEC.md's Dependencies section as part of the task that introduces it.
|
|
62
69
|
- When writing back, follow SPEC.md's **"How to update this spec"** contract, keyed off each section's heading tag: **replace/merge** the current-state sections (Architecture, Game Systems, Conventions, Dependencies), removing seed placeholders on first real content and keeping the text matching the shipped code; **append** to the Decisions log (newest last), superseding rather than deleting.
|
|
@@ -67,14 +74,20 @@ The `Update SPEC.md` task is a task like any other: it goes through the same acc
|
|
|
67
74
|
|
|
68
75
|
## Step 1. Parse the arguments
|
|
69
76
|
|
|
70
|
-
|
|
77
|
+
First strip the `--auto-pilot` flag if present and remember that **Auto-pilot mode** is in effect for the whole run. Then, from the remaining `arguments`, extract:
|
|
71
78
|
|
|
72
79
|
1. `source_file` — the plan or spec file reference to read tasks from (e.g. `_specs/new-heist-form_plan.md` or `_specs/new-heist-form_spec.md`).
|
|
73
|
-
2. `task_id` —
|
|
80
|
+
2. `task_id` — the token immediately after `source_file`, **only if** it is one of these forms (all case-insensitive):
|
|
81
|
+
- a single task id (e.g. `T1`, `T2`, `T3.1`) → **Single-task mode** (Step 2);
|
|
82
|
+
- `NEXT` → **Next-task mode** (Step 3);
|
|
83
|
+
- `ALL` → **Run-all mode** (Step 4);
|
|
84
|
+
- a **range** → **Range mode** (Step 5): `T1-T10` (two ids joined by `-`), `T5-` (an id followed by `-`, meaning through the end of the plan), or `NEXT:3` (`NEXT:` followed by a positive integer).
|
|
85
|
+
If the token after `source_file` is none of these forms, then no `task_id` was given: **default to `NEXT`** (or `ALL` when auto-pilot is engaged), and treat everything after `source_file` as the `optional-brief`. Never ask which task to run — the default is the answer. Never treat a brief as a task id: a `task_id` must match one of the forms above exactly.
|
|
86
|
+
3. `brief` — whatever remains after `source_file` and `task_id`. It shapes *how* the selected task(s) are done, never *which* tasks are selected.
|
|
74
87
|
|
|
75
88
|
## Verifying a task before checking its box
|
|
76
89
|
|
|
77
|
-
Before changing any task's `- [ ]` to `- [x]` (this applies to every mode below), verify its **Acceptance** criteria are genuinely met. At the start of the run, **emit one visible status line** so the user sees which verification path is in effect — either `🔍 [bt-execute] subagent tool detected — using an independent verifier before each checkbox` or `🔍 [bt-execute] no subagent tool — self-verifying before each checkbox` — and when you report each task, note whether it was `verified (independent subagent)` or `verified (self)`. If a subagent-spawning tool is available to you (e.g. Claude Code's `Agent`, Lovable's subagent tool, or your host's equivalent — check the tools you actually have), launch an **independent verifier subagent**: give it the task's Details + Acceptance and the changes just made, and instruct it to adversarially confirm the criteria — actively look for a reason they are NOT met, inspecting files and running the relevant build/test/commands as needed — then return PASS/FAIL with evidence. Flip the checkbox only on PASS. On FAIL, leave it `- [ ]`, do not touch later tasks, and report what failed. If no subagent tool is available (or you are unsure), self-verify the Acceptance the same way before flipping — never call a subagent tool you do not have. The verifier need not re-read the Agent Reference. Never check a box for partial, skipped, or unverified work.
|
|
90
|
+
Before changing any task's `- [ ]` to `- [x]` (this applies to every mode below), verify its **Acceptance** criteria are genuinely met. At the start of the run, **emit one visible status line** so the user sees which verification path is in effect — either `🔍 [bt-execute] subagent tool detected — using an independent verifier before each checkbox` or `🔍 [bt-execute] no subagent tool — self-verifying before each checkbox` — and when you report each task, note whether it was `verified (independent subagent)` or `verified (self)`. If a subagent-spawning tool is available to you (e.g. Claude Code's `Agent`, Lovable's subagent tool, or your host's equivalent — check the tools you actually have), launch an **independent verifier subagent**: give it the task's Details + Acceptance and the changes just made, and instruct it to adversarially confirm the criteria — actively look for a reason they are NOT met, inspecting files and running the relevant build/test/commands as needed — then return PASS/FAIL with evidence. Flip the checkbox only on PASS. On FAIL, leave it `- [ ]`, do not touch later tasks, and report what failed. *(Auto-pilot: a FAIL enters the bounded fix loop, then defers the task and continues — see **Auto-pilot mode**.)* If no subagent tool is available (or you are unsure), self-verify the Acceptance the same way before flipping — never call a subagent tool you do not have. The verifier need not re-read the Agent Reference. Never check a box for partial, skipped, or unverified work.
|
|
78
91
|
|
|
79
92
|
**Sibling-skill behaviors are part of Acceptance.** When a task implements a feature built on a sibling-skill template engine (e.g. bt-design's 3D-Hero-Scroll), load that sub-skill before verifying — you cannot check a behavior against a spec you have not read. *(Where skills are loaded with a tool — the Babylon Toolkit App Builder platform — call `load_skill('<name>')`, then fetch its references with `read_skill_resource` using the paths the load returns, never a guessed path. Where skills are files on disk — Claude Code — read them from `~/.claude/skills/` or the project's `.claude/skills/`. Skip the load for anything already in your context.)* The verifier must confirm the skill-defined behavioral options are actually present and correct — e.g. `sweep: page` means PLAY/END genuinely reach the **document bottom**, not just the journey's end. A plausible-looking result that silently dropped or inverted a documented behavior is a **FAIL**, even if the surface looks right. Likewise, if a task re-implemented a sub-skill's engine from memory instead of copying its template (dropping veiled cuts, the preload gate, degradation, etc.), flag it and fail the task.
|
|
80
93
|
|
|
@@ -85,7 +98,7 @@ Testing for each task is owned by a dedicated **testing subagent** — separate
|
|
|
85
98
|
For each task, unless the task genuinely has no testable surface (pure config/docs/asset moves — say so explicitly rather than skipping silently):
|
|
86
99
|
|
|
87
100
|
1. If a subagent-spawning tool is available to you (check the tools you actually have; if there is none, or you are unsure, do this inline yourself — never call a subagent tool you do not have), launch a **testing subagent** and give it: the task's Details + Acceptance, the changes just made, the project's test conventions/runner, and the feature spec's `Testing Guidelines`. Instruct it to (a) author meaningful test file(s) under `./tests` (or wherever this repo's tests live) covering the task's Acceptance and its likely edge cases — following existing test patterns, without over-testing — then (b) run the test suite (or at least the relevant tests) and return the command used, PASS/FAIL, and the failing output on failure. The testing subagent need not re-read the Agent Reference.
|
|
88
|
-
2. Treat a test **FAIL** exactly like an acceptance failure: fix the implementation (not the test, unless the test is wrong) and re-run until green, or if it cannot pass, leave the box `- [ ]`, do not touch later tasks, and report which task's tests failed and why.
|
|
101
|
+
2. Treat a test **FAIL** exactly like an acceptance failure: fix the implementation (not the test, unless the test is wrong) and re-run until green, or if it cannot pass, leave the box `- [ ]`, do not touch later tasks, and report which task's tests failed and why. *(Auto-pilot: fix loop, then defer and continue.)*
|
|
89
102
|
3. Only once tests are green does the acceptance verifier run. The verifier may re-run the tests as part of its adversarial check — that overlap is intentional. The checkbox flips only when both tests pass **and** the verifier returns PASS.
|
|
90
103
|
|
|
91
104
|
The `Update SPEC.md` task and other non-code tasks typically have no test surface — note that explicitly and let the acceptance verifier alone gate them.
|
|
@@ -97,7 +110,7 @@ Read `source_file` and find the task whose id matches `task_id`. If it cannot be
|
|
|
97
110
|
Then implement ONLY that single task. This is a hard rule:
|
|
98
111
|
|
|
99
112
|
- Do not start, scaffold, refactor for, or partially implement any other task, even if it looks trivial, related, or "while you're here".
|
|
100
|
-
- Stay within the scope described by the task. If the task is ambiguous or blocked by an unfinished prerequisite task, stop and tell the user instead of expanding scope.
|
|
113
|
+
- Stay within the scope described by the task. If the task is ambiguous or blocked by an unfinished prerequisite task, stop and tell the user instead of expanding scope. *(Auto-pilot: resolve it with the decision ladder and log the Decision.)*
|
|
101
114
|
- Follow all project rules in the project's agent instructions (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md) and any referenced spec/plan conventions.
|
|
102
115
|
|
|
103
116
|
When the task is implemented, **verify its Acceptance per _Verifying a task before checking its box_ above**; only on PASS mark ONLY this task complete: edit its line and change `- [ ]` to `- [x]` (leave every other task untouched). Never check the box for partial or unverified work.
|
|
@@ -124,7 +137,142 @@ Execute every remaining task in the plan, in order, resuming wherever it was lef
|
|
|
124
137
|
3. For each unchecked task, in order, one at a time:
|
|
125
138
|
a. Implement ONLY that task, following the same scope discipline and project conventions as single-task mode.
|
|
126
139
|
b. Once it is implemented, **verify its Acceptance (see _Verifying a task before checking its box_)**; only on PASS immediately edit `source_file` to change that task's `- [ ]` to `- [x]` BEFORE starting the next task. Persisting progress after each task is what lets a later run of the execute skill with `ALL` safely continue.
|
|
127
|
-
c. If a task cannot be completed, is blocked, or its acceptance criteria are not met, STOP: leave it unchecked, do not touch any later task, and report which task failed and why.
|
|
140
|
+
c. If a task cannot be completed, is blocked, or its acceptance criteria are not met, STOP: leave it unchecked, do not touch any later task, and report which task failed and why. *(Auto-pilot: never stop here — run the fix loop, then DEFER the task and continue with the next one; see **Auto-pilot mode**.)*
|
|
128
141
|
4. When all tasks are checked (or you stopped early), report a summary: which tasks you completed this run, the current completed/total count, and whether the plan is now fully done.
|
|
129
142
|
|
|
130
143
|
Never check a box for partial, skipped, or unverified work in either mode.
|
|
144
|
+
|
|
145
|
+
## Step 5. Range mode (`task_id` is `T1-T10`, `T5-` or `NEXT:3`)
|
|
146
|
+
|
|
147
|
+
Range mode is **Run-all mode restricted to a slice of the checklist**. Everything in Step 4 applies unchanged — one task at a time, in order, skip `- [x]`, tests then verifier, flip the box immediately on PASS, stop (or, under auto-pilot, defer and continue) on failure — except that the work queue is the slice, not the whole plan.
|
|
148
|
+
|
|
149
|
+
**A range is a slice of the checklist in plan order, never arithmetic on the numbers.** Read `source_file`, collect the task checklist in file order, then resolve the slice:
|
|
150
|
+
|
|
151
|
+
- **`T<a>-T<b>`** — every task from the one whose id is `T<a>` through the one whose id is `T<b>`, **inclusive**, as they appear in the file. Sub-tasks (`T3.1`, `T3.2`) sitting between the endpoints are part of the slice. `T3-T3` is the same as `T3`.
|
|
152
|
+
- **`T<a>-`** — from the task whose id is `T<a>` through the last task in the file.
|
|
153
|
+
- **`NEXT:<n>`** — the first `n` tasks that are still `- [ ]`, in file order, wherever they sit. `NEXT:1` is the same as `NEXT`. If fewer than `n` remain, run the ones that do and say so.
|
|
154
|
+
|
|
155
|
+
Rules:
|
|
156
|
+
|
|
157
|
+
- Both endpoint ids must exist in `source_file`. If either does not, print the list of available task ids and STOP without implementing anything. *(Auto-pilot: the one exception to "never stop" besides a missing plan — a mistyped range is a typo the user must fix. Say so and end.)*
|
|
158
|
+
- The start must come **before or at** the end in file order. A reversed range (`T10-T1`) is an error — report it and STOP; never silently swap the endpoints.
|
|
159
|
+
- Tasks already `- [x]` inside the slice are skipped, so a range is resumable exactly like `ALL`: re-running the same range continues from its first unchecked task. If every task in the slice is already checked, report that and STOP without changing anything.
|
|
160
|
+
- Tasks **outside** the slice are never touched, even when a task inside the slice depends on an unchecked task outside it. In that case treat the dependency as a blocker per Step 4 3c: stop and report it. *(Auto-pilot: apply the prerequisite row of the stop-replacement table — do the minimum of the outside task needed to unblock, log the scope expansion, but never flip the outside task's box.)*
|
|
161
|
+
- Report at the end exactly as Step 4 does, plus the range that was requested, how many of its tasks were completed this run, and the next unchecked task id after the slice (for reference only — do NOT start it).
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Auto-pilot mode (`--auto-pilot`)
|
|
166
|
+
|
|
167
|
+
Run this mode **only when the `--auto-pilot` flag is present**. Without it, nothing in this section applies and every mode above runs exactly as written. Emit one visible status line when this path is taken, before the verification and testing status lines:
|
|
168
|
+
|
|
169
|
+
`🛩️ [bt-execute] Auto-pilot engaged — unattended run; every decision is mine, nothing stops for human input until the queue is empty`
|
|
170
|
+
|
|
171
|
+
Auto-pilot exists so a plan of 50+ tasks can run overnight:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
/bt-execute --auto-pilot @_specs/<feature>_plan.md ALL
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
The user is asleep. **There is no one to ask.** Every "ask", "STOP and tell the user", "flag it to the user" and "do not touch later tasks" instruction elsewhere in this skill is **REPLACED** by the rules in this section. What is **NOT** relaxed: the Agent Reference requirement, the SPEC.md discipline, the testing subagent, the independent acceptance verifier, and the rule that a box flips only on a genuine PASS. Those are what make an unattended run trustworthy. Only the *stopping* is removed.
|
|
178
|
+
|
|
179
|
+
### The prime directive
|
|
180
|
+
|
|
181
|
+
**The run ends when the work queue is empty — never before.** The work queue is every unchecked task the selected mode covers — the whole plan for `ALL`, the slice for a range, the one task for a single id or `NEXT`. The only acceptable end states are:
|
|
182
|
+
|
|
183
|
+
- (a) every task in the work queue is `- [x]`, or
|
|
184
|
+
- (b) every task in the work queue is `- [x]` or explicitly **DEFERRED** per the rules below, with its reason in the run log.
|
|
185
|
+
|
|
186
|
+
Ending the turn while an unchecked, non-deferred task remains in the work queue — for any reason other than the plan file itself being missing or unreadable, or a range endpoint that does not exist — is a failure of this skill. Before you end the turn, re-read `source_file`: if such a task exists, you are not done. Continue. Do not stop because the session is long, because the context was compacted, because a tool errored, because a subagent asked a question, because something was ambiguous, or because you would "normally check with the user". None of those are reasons to stop under auto-pilot.
|
|
187
|
+
|
|
188
|
+
You are the studio, not an advisor (Agent Reference). You decide as a senior Babylon Toolkit game developer whose goal is authoring content in Unity, exporting it with the Toolkit exporter as **interactive glTF**, and running it in **BabylonJS** through script components — and you keep going until the plan is done.
|
|
189
|
+
|
|
190
|
+
### Decision ladder — how every call is made
|
|
191
|
+
|
|
192
|
+
When the non-auto-pilot skill would ask, stop or flag, apply this ladder in order and take the first rung that resolves it:
|
|
193
|
+
|
|
194
|
+
1. **The plan decides.** The plan's `Decisions` log, `Design Reference`, the task's Details and Acceptance, then the feature spec, then SPEC.md. A heavy plan is decision-complete by design — obey it.
|
|
195
|
+
2. **The Toolkit decides.** The Agent Reference and its sub-documents: the ES6/ESM style guide, Interactive Scene Components (`TOOLKIT.*` script components — compose and tune them, never re-implement them, never ad-hoc BabylonJS wiring), the Unity Exporter CLI (`bt_export_level` / `bt_export_prefab`, `unity command eval` for anything without a command), and the Blender CLI for model work. If the reference documents a pattern, that pattern is the answer.
|
|
196
|
+
3. **The codebase decides.** Mirror the conventions, file layout, naming, test runner and patterns already in the repo.
|
|
197
|
+
4. **Expert default.** Choose what a senior Toolkit developer would ship: the simplest option that satisfies Acceptance, keeps the Unity → interactive glTF → BabylonJS pipeline intact, and is easiest to revise later. Prefer reversible over clever. State the assumption in one line and proceed.
|
|
198
|
+
|
|
199
|
+
Every rung-4 call, every ambiguity resolved, every scope expansion, and every deviation from a documented decision is written to the **run log** as a numbered Decision: what was decided, why, what was rejected, and which task(s) it binds. If the project's SPEC.md has a Decisions log, append it there too (newest last, superseding rather than deleting) so plan, spec and code do not drift. Assumptions are **logged** — never silently made, never asked.
|
|
200
|
+
|
|
201
|
+
### What replaces each stop
|
|
202
|
+
|
|
203
|
+
| Where the skill would otherwise stop or ask | Auto-pilot does this instead |
|
|
204
|
+
|---|---|
|
|
205
|
+
| `task_id` missing | Default to `ALL` (auto-pilot overrides the normal `NEXT` default — an overnight run that does one task is useless). |
|
|
206
|
+
| `source_file` missing or unreadable | The one genuine no-op — there is nothing to run. Say so and end. Never guess a path. |
|
|
207
|
+
| Agent Reference (or a needed sub-document) fetch fails | Retry up to 3× with a short wait between attempts. If still failing, emit `⚠️ [auto-pilot] reference fetch failed after 3 retries — proceeding on remembered Babylon Toolkit knowledge`, log it, proceed, and retry the fetch at the next task boundary. |
|
|
208
|
+
| Task is ambiguous or underspecified | Resolve it with the decision ladder; log the Decision. |
|
|
209
|
+
| Task is blocked by an unfinished prerequisite task | If the prerequisite was deferred this run, re-attempt it now if the fix is apparent; otherwise implement the *minimum* of the prerequisite needed to unblock this task, log the scope expansion, and continue. |
|
|
210
|
+
| Reality diverges from SPEC.md | Decide which is right (working code and the plan's Decisions outrank a stale spec line), implement accordingly, update SPEC.md in the same task, log the Decision. |
|
|
211
|
+
| Plan changes architecture but has no `Update SPEC.md` task | Update SPEC.md as part of the task that made the change. |
|
|
212
|
+
| Testing subagent FAIL / acceptance verifier FAIL | Enter the **fix loop** below. |
|
|
213
|
+
| Task still cannot pass after the fix loop | **DEFER** it (below) and **continue to the next task**. |
|
|
214
|
+
| Unity Editor, Blender, dev server or a CLI is not responding | Launch or restart it through its CLI (Unity Exporter CLI / Blender CLI sub-documents), wait, retry. If the tool is genuinely unavailable on this machine (not installed, no license, no project), DEFER the task. |
|
|
215
|
+
| A tool call errors or a command fails | Read the error, fix the cause, retry. Transient causes (network, port in use, lock file, editor still compiling) → wait and retry up to 3×. |
|
|
216
|
+
| A subagent returns a question instead of a result | Answer it yourself with the decision ladder and re-launch the subagent with the answer included. Never relay a question to the user. |
|
|
217
|
+
| Creative or product direction is missing | Choose what best serves the game the spec describes; log it. |
|
|
218
|
+
| Two architectures with no clear winner | Pick the one closest to the Toolkit's documented patterns and the existing code; log it and what was rejected. |
|
|
219
|
+
| An action would spend money, deploy externally, push to a remote, or destroy work outside this plan's scope | Do it only if the plan or spec explicitly instructs it. Otherwise DEFER that *step* (not the whole task, if the rest can still pass) and continue. Never `git push`, never force-push, never delete or overwrite files outside the plan's scope, never `rm -rf` outside the project. |
|
|
220
|
+
| Host permission prompt | Outside this skill's control — see **Prerequisites**. |
|
|
221
|
+
|
|
222
|
+
### The fix loop (bounded, honest)
|
|
223
|
+
|
|
224
|
+
A FAIL from the testing subagent or the acceptance verifier does not end the run and does not flip the box. It starts a fix loop for that task:
|
|
225
|
+
|
|
226
|
+
1. Read the failing evidence. Fix the **implementation** (fix the test only when the test itself is wrong, and say why in the log).
|
|
227
|
+
2. Re-run the tests. On green, re-run the acceptance verifier — a **fresh** verifier subagent each time, never one that already holds an opinion.
|
|
228
|
+
3. Up to **5 attempts** per task. Each attempt must change something material. If two consecutive attempts hit the same failure with no new hypothesis, end the loop early and DEFER — do not burn the night on one task.
|
|
229
|
+
|
|
230
|
+
Verification is never relaxed to make progress: no rubber-stamp PASS, no weakening Acceptance, no `- [x]` on partial work. A deferred task with an honest log beats a checked task that lies.
|
|
231
|
+
|
|
232
|
+
### Deferring a task
|
|
233
|
+
|
|
234
|
+
When a task cannot pass, mark it in `source_file` **without flipping its box**: keep `- [ ]` and append ` ⏭️ DEFERRED (auto-pilot): <one-line reason>` to the end of that task's checkbox line. Log the details in the run log's `## Deferred` section. Then move on to the next task.
|
|
235
|
+
|
|
236
|
+
- **Dependents:** a later task that depends on a deferred task is still attempted (see the prerequisite row above). If it genuinely cannot proceed, defer it too with `blocked by T<n>` as the reason.
|
|
237
|
+
- **Second pass:** once the queue is exhausted, make **one** more pass over the deferred tasks in order — a later task often fixes what blocked an earlier one. A task that passes on the second pass has its `DEFERRED` marker removed and its box flipped. Tasks still failing stay deferred. Then the run ends.
|
|
238
|
+
- **Resumable:** a deferred task is simply an unchecked task with a note. Re-running the same auto-pilot command re-attempts it; `/bt-execute @plan T<n>` on another day runs it with a human present, and the marker tells them why it was left.
|
|
239
|
+
|
|
240
|
+
### The run log
|
|
241
|
+
|
|
242
|
+
Auto-pilot writes **`<dir of source_file>/<plan-basename>_autopilot.md`** — created on the first run, appended on later runs. This is what the user reads in the morning:
|
|
243
|
+
|
|
244
|
+
- **Header per run:** started (ISO timestamp), plan path, completed/total at start.
|
|
245
|
+
- **Per task:** id, title, outcome (`DONE` / `DEFERRED`), attempts, tests summary, verifier result, files changed, commit hash.
|
|
246
|
+
- **`## Decisions`** — numbered, appended as they are made (what / why / rejected / binds).
|
|
247
|
+
- **`## Deferred`** — task, reason, and what a human should look at first.
|
|
248
|
+
- **Footer per run:** ended (ISO timestamp), completed/total, deferred count, wall time.
|
|
249
|
+
|
|
250
|
+
Also narrate to the console at every task boundary — one line each — so a glance at the terminal shows the run is alive: `▶ [auto-pilot] T12/50 — <title>`, `✅ [auto-pilot] T12 verified (independent subagent) — tests: 6 passed — attempt 2/5`, `⏭️ [auto-pilot] T13 deferred — <reason>`.
|
|
251
|
+
|
|
252
|
+
### Checkpoints (git)
|
|
253
|
+
|
|
254
|
+
If the project is a git repository: after each task's box flips, commit that task's changes on the current branch with the message `T<n>: <task title> (auto-pilot)`. If the current branch is the repository's default branch (`main` / `master`), first create and check out `autopilot/<plan-basename>` so the default branch is never modified unattended. **Never push.** If the project is not a git repository, skip checkpoints — never `git init` a project on your own.
|
|
255
|
+
|
|
256
|
+
### Context hygiene for long runs
|
|
257
|
+
|
|
258
|
+
Fifty tasks will outlive any single context window. **The plan file's checkboxes and the run log are the only state that matters** — re-read both at every task boundary; never rely on memory of earlier tasks.
|
|
259
|
+
|
|
260
|
+
When a subagent-spawning tool is available (check the tools you actually have — never call one you do not have), implement each task in a **fresh implementer subagent**. Give it: the task's full block, the plan's `Decisions` and `Design Reference` sections (or the whole plan if it is not a heavy plan), SPEC.md, the project's agent instructions, the Agent Reference URL with the instruction to fetch and read it first, and the auto-pilot subagent rules below. The orchestrating context then does only: read plan → launch implementer → launch tester → launch verifier → flip box → commit → log → next. This is the same fresh-context-per-task model heavy plans are written for. Without a subagent tool, implement inline as usual and still re-read the plan and log at every boundary.
|
|
261
|
+
|
|
262
|
+
After any context compaction: re-emit the auto-pilot status line, re-read `source_file` and the run log, and re-fetch the Agent Reference if you no longer remember it. Then continue from the first unchecked, non-deferred task. Compaction is not a stop.
|
|
263
|
+
|
|
264
|
+
### Every subagent inherits auto-pilot
|
|
265
|
+
|
|
266
|
+
Every implementer, testing and verifier subagent is told, verbatim, in its prompt:
|
|
267
|
+
|
|
268
|
+
> AUTO-PILOT: this is an unattended run. Do not ask questions — there is no one to answer them. Make every call yourself from the plan, the Babylon Toolkit Agent Reference and the codebase, state each assumption in one line in your result, and always return a result, never a question.
|
|
269
|
+
|
|
270
|
+
A verifier still returns an honest PASS/FAIL with evidence. Auto-pilot never asks it to be lenient.
|
|
271
|
+
|
|
272
|
+
### Prerequisites (the user's side, before going to bed)
|
|
273
|
+
|
|
274
|
+
This skill controls its own decisions, not the host's. For a truly unattended run the user must launch the session in a permission mode that does not prompt (Claude Code: an auto / bypass-permissions mode, or pre-approved tools covering this skill's `allowed-tools`), and leave Unity, Blender and the dev server reachable if the plan needs them. Remind the user of this once, in the first status line of the run: `ℹ️ [auto-pilot] host permission prompts are outside this skill's control — run in a non-prompting permission mode for a fully unattended run`. Then continue regardless.
|
|
275
|
+
|
|
276
|
+
### Exit report
|
|
277
|
+
|
|
278
|
+
When the queue is empty (after the second pass), print: the tasks completed this run, completed/total, the deferred tasks with their one-line reasons, the number of Decisions logged with the run-log path, the branch and last commit hash, and whether the plan is now fully done. Then end. Re-running the same command resumes safely: it re-attempts deferred tasks and continues from the first unchecked one.
|
|
@@ -52,7 +52,7 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
52
52
|
|---|---|
|
|
53
53
|
| `references/workspace.md` | the `_gauntlet/<name>/` layout, `progress.md` and round-journal formats, the resume protocol |
|
|
54
54
|
| `references/critic-rubrics.md` | the critic contract, the scoring rubrics, the gap-list rules, the hard gates, the stall ladder |
|
|
55
|
-
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras |
|
|
55
|
+
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras; **generation backends** (kie default, Higgsfield mapping) |
|
|
56
56
|
| `references/loop-templates.md` | Template A and Template B loop cards |
|
|
57
57
|
| `references/unity-pipeline.md` | the Unity build + verify pipeline, with Blender as the modelling tool |
|
|
58
58
|
| `references/spec-composition.md` | composition with bt-spec / bt-plan / bt-execute, and cross-host notes |
|
|
@@ -100,7 +100,7 @@ Interview batches:
|
|
|
100
100
|
0. **NAME** — Confirm the job's slug. It becomes `_gauntlet/<name>/` and must not collide with an existing job.
|
|
101
101
|
1. **DELIVERABLE KIND + DELIVERABLE** — Which of the three kinds is this: a **web game**, a **Unity level for export**, or a **Blender model**? Then what exactly ships (playable browser demo, one polished level, a hero asset with LODs...)? Module style: ES6/ESM default; UMD only if explicitly demanded. New project or existing? Target folder. **Read the matching pipeline reference now** and run its prerequisite gate before going further — a failed gate (no Pro licence, no GUI bootstrap, no Blender) changes what is worth agreeing to.
|
|
102
102
|
2. **OBJECTIVE** — The exact outcome that must become true, as one testable sentence. Rewrite with the user until it is inspectable.
|
|
103
|
-
3. **THE TARGET + CAMERAS** — Per `references/target-images.md`: does the user have reference media, is there an existing artifact to refine, or do we generate the target? Agree the target image(s), run the **reachability pass** (Reachable / Approximable / **OUT OF REACH**), and agree the **locked cameras** — one per target, three to five, including a detail crop. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call / texture / triangle budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
|
|
103
|
+
3. **THE TARGET + CAMERAS** — Per `references/target-images.md`: does the user have reference media, is there an existing artifact to refine, or do we generate the target? Agree the target image(s), run the **reachability pass** (Reachable / Approximable / **OUT OF REACH**), and agree the **locked cameras** — one per target, three to five, including a detail crop. Settle the **image-generation backend** too (kie by default, Higgsfield if that is what's configured or requested — `target-images.md` §1a) and record it in `pipeline.md`. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call / texture / triangle budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
|
|
104
104
|
4. **RUBRIC + PASS THRESHOLD** — Confirm the rubric axes from `references/critic-rubrics.md` (or amend them for this job) and the score a part must reach to pass. Default: **8.0 / 10 plus every hard gate green.**
|
|
105
105
|
5. **SUCCESS CONDITION** — When is the loop DONE? (e.g. "every part scores ≥8/10 from a fresh critic; sustained 60 FPS @1080p in Chrome; zero console errors; the final integration critic passes"). Success and failure defined separately.
|
|
106
106
|
6. **BOUNDARIES** — Time/cost expressed in **rounds and attempts, not wall-clock** (wall-clock cannot survive a two-week pause; counters can): max total rounds, max attempts per part before a forced strategy change, max consecutive no-improvement rounds. Permission gates: no deploy, no purchases/paid services, no credentials, no destructive ops, no contacting anyone — without explicit approval. For `unity`: the **bake tier policy** (how many rounds at preview tier before a production bake). Escalation rules: what blocks and waits for the user.
|
|
@@ -166,7 +166,7 @@ and export it for my BabylonJS game — wet asphalt with puddle reflections, lay
|
|
|
166
166
|
volumetric haze under the lights, at the fidelity of the attached screenshots.
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
**If the user attaches nothing**, the interview generates the target instead — a real in-engine screenshot, never concept art (`references/target-images.md` § 2):
|
|
169
|
+
**If the user attaches nothing**, the interview generates the target instead — a real in-engine screenshot, never concept art (`references/target-images.md` § 2). The calls below use the kie shape (the default backend); on Higgsfield, map them per `target-images.md` §1a: upload references, poll the job, then download to the same `out_path`:
|
|
170
170
|
|
|
171
171
|
```
|
|
172
172
|
generate_image(
|
|
@@ -266,7 +266,7 @@ Nothing model-specific is needed — `selection == null` exports the level, the
|
|
|
266
266
|
|
|
267
267
|
The checkpoint is also where the critic gets both the Unity snapshot and the browser frame of the same angle and must say which side a gap is on — *Unity right, browser wrong* means material translation, not the sculpt, so don't re-model.
|
|
268
268
|
|
|
269
|
-
**Textures are generated, never procedural stand-ins** — `generate_image` for albedo, normal and roughness detail. "Substituted procedural noise for the missing map" is a gate failure, and it is the single most common reason a model reads as plastic.
|
|
269
|
+
**Textures are generated, never procedural stand-ins** — `generate_image` (kie by default, Higgsfield per `target-images.md` §1a) for albedo, normal and roughness detail. With Higgsfield configured, a part that starts from nothing may take a `generate_3d` GLB as its blockout (`unity-pipeline.md`). "Substituted procedural noise for the missing map" is a gate failure, and it is the single most common reason a model reads as plastic.
|
|
270
270
|
|
|
271
271
|
Scored on the **model rubric** (Silhouette & Proportion · Surface & Material · Detail Density · Topology & Efficiency · Integration Readiness), with gates on tri budget, ≤4 influences/vertex, weights normalised, transform hygiene and GUID survival.
|
|
272
272
|
|
|
@@ -66,8 +66,10 @@ re-invocation — no host loop feature is required.
|
|
|
66
66
|
discipline.
|
|
67
67
|
- **Browser evidence:** chrome-devtools MCP on Claude Code; other hosts use their browser/screenshot tool.
|
|
68
68
|
None available → parts are `unverified`, never passed.
|
|
69
|
-
- **Image generation:** the toolkit's `kie-image` MCP (`generate_image`) where configured
|
|
70
|
-
|
|
69
|
+
- **Image generation:** the toolkit's `kie-image` MCP (`generate_image`) by default where configured.
|
|
70
|
+
Higgsfield MCP (`mcp__higgsfield__generate_image`) is also supported, via the upload → job → download
|
|
71
|
+
mapping in `target-images.md` §1a. Otherwise use any host image tool. None available and no user-supplied
|
|
72
|
+
reference → stop and ask (see `target-images.md`).
|
|
71
73
|
- **Interview:** `AskUserQuestion` where the host has it; plain numbered questions otherwise.
|
|
72
74
|
- **Unity / Blender CLIs:** shell tools, so they work on any host with a shell. A host with no shell cannot
|
|
73
75
|
run the `unity` pipeline — say so rather than degrading silently.
|
|
@@ -20,8 +20,18 @@ gap to it.
|
|
|
20
20
|
reimagines the scene sends the loop chasing a layout it was never asked to build.
|
|
21
21
|
3. **Starting fresh.** Generate the target directly from the brief.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
### 1a. Generation backends — kie by default, Higgsfield supported
|
|
24
|
+
|
|
25
|
+
Every `generate_image(...)` call in this skill is written in the **kie** shape. Pick the backend once, at
|
|
26
|
+
the interview, and record it in `pipeline.md` so a resumed session uses the same one:
|
|
27
|
+
|
|
28
|
+
1. **The user named a backend or model** → use it.
|
|
29
|
+
2. **kie** (`kie-image` MCP) is configured → **default**.
|
|
30
|
+
3. **Higgsfield** MCP (`mcp__higgsfield__*`) is configured → use it.
|
|
31
|
+
4. Otherwise → the host's built-in image tool.
|
|
32
|
+
|
|
33
|
+
**kie (default)** — see
|
|
34
|
+
[Image, Video And Sound Generation](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/web-kie-servers.md):
|
|
25
35
|
|
|
26
36
|
```
|
|
27
37
|
generate_image(prompt, out_path, reference_paths?, model?, aspect_ratio?, resolution?, output_format?)
|
|
@@ -31,6 +41,28 @@ generate_image(prompt, out_path, reference_paths?, model?, aspect_ratio?, resolu
|
|
|
31
41
|
- `reference_paths` → the current-state screenshot for the refinement path (up to 14 files)
|
|
32
42
|
- `aspect_ratio` → match the locked camera's aspect; `resolution: "2K"` or `"4K"`; `output_format: "png"`
|
|
33
43
|
|
|
44
|
+
**Higgsfield** — see
|
|
45
|
+
[Higgsfield MCP Server](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/web-higgsfield-mcp.md).
|
|
46
|
+
It has no `out_path` and does not read local files. It returns a job, and you download the result. Map each
|
|
47
|
+
kie-shaped call like this:
|
|
48
|
+
|
|
49
|
+
| kie shape | Higgsfield equivalent |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `reference_paths: [local.png, …]` | Upload first: `media_upload {files:[{filename}]}` → `curl -f -X PUT --upload-file local.png '<upload_url>'` → `media_confirm {type:"image", media_ids:[…]}`. Then pass `medias: [{role:"image_references", value:"<media_id>"}]`. A previous Higgsfield output needs no upload: pass its `job_id` as the `value` |
|
|
52
|
+
| `model` | A Higgsfield id that accepts references — `gpt_image_2_5` (default), `nano_banana_2`, `seedream_v4_5` (4K). `z_image` is the cheapest draft model but takes **no** references |
|
|
53
|
+
| `resolution: "2K"` / `"4K"` | `resolution: "2k"` / `"4k"` (lower case, where the model supports it) |
|
|
54
|
+
| `output_format: "png"` | Nothing to set. Image results are PNG |
|
|
55
|
+
| `out_path` | `job_status {jobId, sync:true}` until `completed`, then `curl -fL -o <out_path> '<results.rawUrl>'` |
|
|
56
|
+
|
|
57
|
+
Higgsfield rules for this loop:
|
|
58
|
+
- **Preflight** each new model/setting with `get_cost: true` and **log the credits per image** in
|
|
59
|
+
`pipeline.md`. A gauntlet may generate dozens of images, so check `balance` before the run and treat
|
|
60
|
+
running out of credits as a boundary that parks the run.
|
|
61
|
+
- Always send `use_unlim: false`. Never call a billing-confirm tool.
|
|
62
|
+
- **Never hot-link** a Higgsfield CDN URL. The locked target must be a file inside `_gauntlet/<name>/`.
|
|
63
|
+
- For several independent images (one per locked camera), use `generate_image_batch` → `jobs_wait` →
|
|
64
|
+
download each.
|
|
65
|
+
|
|
34
66
|
If no image-generation tool is available **and** the user supplied no reference media, **stop and ask** for
|
|
35
67
|
either a target image or an image-generation credential. Do not start a gauntlet against a prose bar.
|
|
36
68
|
|
|
@@ -195,9 +195,18 @@ return UnityEditor.AssetDatabase.AssetPathToGUID(p) + " rig=" + i.animationType
|
|
|
195
195
|
**Conventions to preserve for BabylonJS:** ≤ 4 influences per vertex, weights normalised to 1.0, bone names
|
|
196
196
|
matching the Unity Avatar/Animator rig, and `add_leaf_bones=False` on FBX export.
|
|
197
197
|
|
|
198
|
-
**Textures are generated, not procedural.**
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
**Textures are generated, not procedural.** Use `generate_image` for albedo, normals, roughness masks and
|
|
199
|
+
detail maps. It goes to the backend recorded in `pipeline.md`: the toolkit's `kie-image` MCP by default, or
|
|
200
|
+
Higgsfield MCP (upload references → job → download into `Assets/`, per `target-images.md` §1a). Substituting
|
|
201
|
+
procedural noise or flat colours for maps the target needs is a gate failure, and the commonest reason an
|
|
202
|
+
asset reads as plastic.
|
|
203
|
+
|
|
204
|
+
**Image → starting mesh (Higgsfield only).** When a model part starts from nothing and Higgsfield is
|
|
205
|
+
configured, `generate_3d` (`image_to_3d`, or `multi_image_to_3d` from 2–4 views of the target) can turn the
|
|
206
|
+
locked target's subject into a GLB blockout. Preflight with `get_cost: true`, download the GLB, then
|
|
207
|
+
import it into Blender and refine it like any other source mesh: retopo, UVs, LODs, weights under the gates
|
|
208
|
+
above. It is a head start on the silhouette, never a finished asset. Its topology and UVs will not pass the
|
|
209
|
+
model rubric untouched.
|
|
201
210
|
|
|
202
211
|
---
|
|
203
212
|
|
package/skills/bt-hero/SKILL.md
CHANGED
|
@@ -37,7 +37,7 @@ Whatever is present is used verbatim; the intake resolves the rest (Step 1). **T
|
|
|
37
37
|
Every piece of a 3D hero scroll belongs to exactly one tier. This is the rule that keeps the intake small and the output deterministic:
|
|
38
38
|
|
|
39
39
|
- **Tier 1 — Invariants.** How the mechanic works. Owned by bt-design's reference and templates; never asked, never in the brief, never overridable: muted footage, the all-intra scrub encode, blob preload, veiled cuts, film-speed autoplay, cancel semantics, the `HS_CONFIG`/markup syntax, and the **verification protocol — which always runs, without being requested.**
|
|
40
|
-
- **Tier 2 — Defaults.** Sensible values supplied silently; the user may override any of them in their input (recorded in the brief's `Overrides` section): aspect ratio (default 16:9), clip duration (**backend-derived — probe the configured video model's real output; never assume a number**), the 4-beat REVEAL → MOTION → SHIFT → FINALE arc, `sweep: page`, controls all-on (`sweep: page`) / HUD+PLAY (`sweep: hero`), the scroll-length formula, poster = first film frame.
|
|
40
|
+
- **Tier 2 — Defaults.** Sensible values supplied silently; the user may override any of them in their input (recorded in the brief's `Overrides` section): aspect ratio (default 16:9), clip duration (**backend-derived — probe the configured video model's real output; never assume a number**), the 4-beat REVEAL → MOTION → SHIFT → FINALE arc, `sweep: page`, controls all-on (`sweep: page`) / HUD+PLAY (`sweep: hero`), the scroll-length formula, poster = first film frame, generation backend (**KIE MCP by default; Higgsfield MCP when that is what's configured or the user names it**; see bt-design `3d-hero-scroll.md` §2 for the Higgsfield mapping).
|
|
41
41
|
- **Tier 3 — Creative slots.** The only things intake deals in — the eight slots below.
|
|
42
42
|
|
|
43
43
|
If it's how the mechanic works → Tier 1. If it's a value that could legitimately differ per project → Tier 2. If it's a creative decision about *this* product → Tier 3.
|
|
@@ -62,7 +62,7 @@ Then resolve every unfilled slot by exactly one of two paths:
|
|
|
62
62
|
- **Enough to fly** — the input contains a usable star (an idea sentence, or an image/video whose subject is clear): fill every remaining slot from its default, ask **nothing**, and proceed. This is the one-shot path.
|
|
63
63
|
- **Not enough to fly** — empty input, or fragments with no discernible star: ask **only the unanswered questions** — inline, conversationally, as ONE compact numbered list (never one-at-a-time interrogation, never a structured question UI). Tell the user loose prose, partial answers, and "you pick" are all fine. What they answer is used; what they skip gets the default. Then proceed — do not re-confirm.
|
|
64
64
|
|
|
65
|
-
**Footage feasibility check:** if there is no provided footage AND no image/video generation backend configured (KIE MCP, Higgsfield, built-in generation, …), STOP — this pattern is wrong without footage; recommend a static hero instead (per the bt-design reference intake).
|
|
65
|
+
**Footage feasibility check:** if there is no provided footage AND no image/video generation backend configured (KIE MCP — the default, Higgsfield MCP, built-in generation, …), STOP — this pattern is wrong without footage; recommend a static hero instead (per the bt-design reference intake).
|
|
66
66
|
|
|
67
67
|
## Step 2 — Write the hero brief (the save file)
|
|
68
68
|
|
|
@@ -82,6 +82,7 @@ status: draft
|
|
|
82
82
|
|
|
83
83
|
## 2. Footage Source
|
|
84
84
|
- Mode: generate | provided
|
|
85
|
+
- Backend: kie | higgsfield | <other> (generate mode only — recorded so a re-run uses the same one)
|
|
85
86
|
- Anchor: <image-generation prompt for the hero anchor> | <path/to/existing-image-or-video>
|
|
86
87
|
|
|
87
88
|
## 3. The Journey
|
|
@@ -113,6 +113,8 @@ The Layout law from Step 2 binds these surfaces too — full-bleed, responsive,
|
|
|
113
113
|
|
|
114
114
|
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.
|
|
115
115
|
|
|
116
|
+
**Backend mapping (Claude Code and other MCP hosts).** Where no platform-native `generate_*` is present, use the **KIE MCP** servers by default (`web-kie-servers.md`): pass `out_path` under the project's `assets/generated/` folder and reference that path. When **Higgsfield MCP** is the configured or requested backend (`web-higgsfield-mcp.md`), the call returns a job, not a path. Submit everything in one parallel round (`generate_image_batch`, plus at most one `generate_video`), write the files with their fallbacks in place, then `jobs_wait` / `job_status` and `curl` each result into `assets/generated/` under the names you already referenced. Never hot-link the Higgsfield CDN URL. Preflight with `get_cost: true` and always send `use_unlim: false`.
|
|
117
|
+
|
|
116
118
|
Generated art goes on the LANDING PAGE — never on the splash/preloader (Step 3's lightweight rule). Art direction for every generate call comes from `DESIGN.md` — prompt the renders in its palette and atmosphere so the art belongs to the same design as the CSS around it.
|
|
117
119
|
|
|
118
120
|
# Step 5 — finish clean
|
|
@@ -53,7 +53,7 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
53
53
|
|
|
54
54
|
## ⚠️ Required reading before any build
|
|
55
55
|
|
|
56
|
-
For any Babylon / BabylonJS / Babylon Toolkit work, ensure the **Agent Reference** is already read in this session/context (fetch `https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md` first if not; and its `web-kie-servers.md` sub-document if using the KIE MCP servers). If a required fetch fails, STOP and tell the user. Do not refetch what you already remember.
|
|
56
|
+
For any Babylon / BabylonJS / Babylon Toolkit work, ensure the **Agent Reference** is already read in this session/context (fetch `https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md` first if not; and its `web-kie-servers.md` sub-document if using the KIE MCP servers, or its `web-higgsfield-mcp.md` sub-document if using the Higgsfield MCP). If a required fetch fails, STOP and tell the user. Do not refetch what you already remember.
|
|
57
57
|
|
|
58
58
|
If the project keeps a root **SPEC.md**, read it first and conform to its architecture/conventions; record the shipped prototypes per the project's working agreement when the batch lands.
|
|
59
59
|
|
|
@@ -74,7 +74,7 @@ The **difference** between prototypes is in the *design language* — layout, mo
|
|
|
74
74
|
1. Read the flags (`--type`, `--count`, `--motionsites`, `--awwwards[:forensic]`, `--3d-hero-scroll`) and the `<theme>`. Apply defaults (`html`, `10`).
|
|
75
75
|
2. **Theme gate:** if no theme is discernible, ask **once** — one short inline question — then proceed. This is the only interactive stop; once the batch starts, it runs autonomously.
|
|
76
76
|
3. Ingest attached screenshots into a world anchor (above). Note the host: React (Vite/TS) vs plain HTML, per `--type` and any existing project.
|
|
77
|
-
4. **Asset-backend check:** the Fable-grade bar assumes asset generation is available. Confirm what's configured — KIE MCP (image/video/Kling), Higgsfield, GPT Image 2 keys, Pinterest source. If none is available, say so and proceed with hand-authored CSS/SVG/WebGL craft rather than silently producing flat pages.
|
|
77
|
+
4. **Asset-backend check:** the Fable-grade bar assumes asset generation is available. Confirm what's configured — KIE MCP (image/video/Kling — the **default**), Higgsfield MCP, GPT Image 2 keys, Pinterest source. Pass the chosen backend to every subagent so the batch is consistent. **If Higgsfield is the backend, check `balance` and preflight one image and one video with `get_cost: true`, then tell the user the estimated batch cost before fanning out**: N prototypes × video is where credits disappear. If none is available, say so and proceed with hand-authored CSS/SVG/WebGL craft rather than silently producing flat pages.
|
|
78
78
|
|
|
79
79
|
## Step 2 — Compose the direction spread (N genuinely-different lenses)
|
|
80
80
|
|
|
@@ -130,7 +130,7 @@ Each prototype subagent gets: its **direction**, the **theme**, the **world anch
|
|
|
130
130
|
|
|
131
131
|
1. **Own its folder.** Create `_prototypes/<NN-slug>/` and put **everything self-contained inside it** — markup, styles, scripts, and all generated/downloaded assets. No shared globals; a prototype is copy-out-able on its own.
|
|
132
132
|
2. **Build to the Fable bar for its lens** — advanced 3D tactics, otherworldly animation, exceptional palette, novel type. Not a template with the colors swapped; a distinct, *mind-blowing* execution of that direction for this game. **Full-bleed console UI by default** (bt-design's *Layout Philosophy*): fill the whole viewport edge-to-edge like a console dashboard / game menu, not a centered fixed-width website — unless this direction is the noted contained exception.
|
|
133
|
-
3. **Produce assets** via any mix of the available workflows: Pinterest pulls for reference, **GPT Image 2** for stills, **KIE MCP servers / Higgsfield (Kling, etc.)** for motion/video, hand-authored WebGL/SVG/CSS. All assets stay faithful to the world anchor and live in the prototype's folder.
|
|
133
|
+
3. **Produce assets** via any mix of the available workflows: Pinterest pulls for reference, **GPT Image 2** for stills, **KIE MCP servers (default) / Higgsfield MCP (Kling, Seedance, etc.)** for motion/video, hand-authored WebGL/SVG/CSS. All assets stay faithful to the world anchor and live in the prototype's folder. **Higgsfield returns a job and a CDN URL, not a file:** poll `job_status` (or `jobs_wait` for a batch), then `curl` every result into the prototype folder. Never hot-link a Higgsfield URL. Local reference images must be uploaded first (`media_upload` → PUT → `media_confirm`) and passed as `media_id`s. Always send `use_unlim: false`.
|
|
134
134
|
4. **3D-hero-scroll directions:** follow *The 3D-hero-scroll batch rule* below.
|
|
135
135
|
5. Run its own **iteration passes** (Step 4) before returning.
|
|
136
136
|
|