@babylonjs-toolkit/agent 1.1.28 → 1.1.32
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-atlas/SKILL.md +23 -20
- package/skills/bt-design/references/3d-hero-docs.md +8 -8
- package/skills/bt-design/references/3d-hero-scroll.md +26 -21
- package/skills/bt-gauntlet/SKILL.md +3 -3
- package/skills/bt-gauntlet/references/spec-composition.md +2 -2
- package/skills/bt-gauntlet/references/target-images.md +22 -17
- package/skills/bt-gauntlet/references/unity-pipeline.md +6 -5
- package/skills/bt-hero/SKILL.md +2 -2
- package/skills/bt-landing/SKILL.md +1 -1
- package/skills/bt-prototype/SKILL.md +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Babylon Toolkit Desktop Agent (1.1.
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.1.32)
|
|
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
package/skills/bt-atlas/SKILL.md
CHANGED
|
@@ -64,7 +64,7 @@ user exactly which input failed and why, and ask for a corrected path/URL.
|
|
|
64
64
|
- **Image generation**: pick the backend in this order:
|
|
65
65
|
1. the tool or model the user named (e.g. "use nano-banana-2", "use Flux", "use Higgsfield");
|
|
66
66
|
2. the **kie** image MCP (`kie-image-mcp`), the **default** where configured;
|
|
67
|
-
3. the **Higgsfield**
|
|
67
|
+
3. the **Higgsfield CLI** (`@higgsfield/cli`) where installed and signed in;
|
|
68
68
|
4. the host's built-in image generation, or any other configured image tool.
|
|
69
69
|
|
|
70
70
|
Whichever tool is used, pass BOTH the base texture and the UV layout as reference
|
|
@@ -75,23 +75,26 @@ user exactly which input failed and why, and ask for a corrected path/URL.
|
|
|
75
75
|
|
|
76
76
|
- **kie**: `generate_image` with `reference_paths: [<base.png>, <uv_layout.png>]`
|
|
77
77
|
(in that order), `out_path: <scratch>/raw/skin_var_NN.png`, `output_format: "png"`.
|
|
78
|
-
- **Higgsfield**:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
`
|
|
84
|
-
`
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
- **Higgsfield CLI**: see the Babylon Toolkit reference `web-higgsfield-cli.md`. Install it locally
|
|
79
|
+
(`npm i -D @higgsfield/cli`) and add the reference's download wrapper as `scripts/hf-generate.mjs` in
|
|
80
|
+
the project. The CLI only returns URLs; the wrapper saves the file.
|
|
81
|
+
1. **Upload both references once** and reuse the IDs for every variant, because every call that names
|
|
82
|
+
a local path re-uploads it:
|
|
83
|
+
`node_modules/.bin/higgsfield upload create <base.png> --json` and the same for `<uv_layout.png>`.
|
|
84
|
+
Each returns `{ "id", … }`.
|
|
85
|
+
2. **Use a model that takes several reference images**: `gpt_image_2_5` (default), `nano_banana_2`, or
|
|
86
|
+
`seedream_v4_5`. Never use `z_image`, which accepts no references. Repeat the flag, base first:
|
|
87
|
+
```
|
|
88
|
+
node scripts/hf-generate.mjs nano_banana_2 --prompt "<prompt>" \
|
|
89
|
+
--image-references <base_id> --image-references <uv_id> \
|
|
90
|
+
--aspect_ratio 1:1 --resolution 2k --out <scratch>/raw/skin_var_NN.png
|
|
91
|
+
```
|
|
92
|
+
3. **Cost first**: run the same command once with `--cost` in place of `--out` (`nano_banana_2` at
|
|
93
|
+
`2k` with references was 2 credits per image when verified). Tell the user the per-variant cost
|
|
94
|
+
before a large batch.
|
|
95
|
+
4. Run several variants as parallel wrapper calls from the shell, each with its own `--out`.
|
|
96
|
+
5. The wrapper downloads each result to `--out`. `composite_skin.py` resizes it to the base texture's
|
|
97
|
+
size itself, so an output at a different size needs no extra step.
|
|
95
98
|
- **Helper scripts** live in the `scripts/` folder next to this SKILL.md
|
|
96
99
|
(need Python 3 + Pillow + numpy):
|
|
97
100
|
- `scripts/uv_island_mask.py` — build the island mask from the UV layout.
|
|
@@ -188,8 +191,8 @@ for just those indices.
|
|
|
188
191
|
|
|
189
192
|
## Notes & gotchas
|
|
190
193
|
- Always pass BOTH base + UV layout as references to the generator; never rely on
|
|
191
|
-
the prompt alone to hold the layout. On Higgsfield that means two
|
|
192
|
-
`
|
|
194
|
+
the prompt alone to hold the layout. On Higgsfield that means two
|
|
195
|
+
`--image-references` flags, base first.
|
|
193
196
|
- Generated outputs (kie or Higgsfield) must end up as local files in `<scratch>/raw/`;
|
|
194
197
|
never reference a remote result URL from the finals or the engine project.
|
|
195
198
|
- The mask is the safety net. If a variant's island content is shifted inside its
|
|
@@ -64,15 +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`, the default), Higgsfield
|
|
68
|
-
own built-in image/video generation, or any other configured image/video
|
|
69
|
-
The prompt just says "generate the footage"; the wiring picks the backend.
|
|
67
|
+
`kie-image-mcp` and `kie-video-mcp`, the default), the Higgsfield CLI, the
|
|
68
|
+
model's own built-in image/video generation, or any other configured image/video
|
|
69
|
+
tool. The prompt just says "generate the footage"; the wiring picks the backend.
|
|
70
70
|
`image_paths` / `reference_paths` / `out_path` are the KIE/Kling parameter names.
|
|
71
|
-
On **Higgsfield
|
|
72
|
-
`
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
`3d-hero-scroll.md` §2.
|
|
71
|
+
On the **Higgsfield CLI** every call goes through the reference's
|
|
72
|
+
`scripts/hf-generate.mjs` wrapper: `image_paths[0]` / `[1]` become
|
|
73
|
+
`--start-image` / `--end-image` on `kling3_0` or `seedance_2_5`, reference images
|
|
74
|
+
become `--image-references <file>` (uploaded automatically), and `out_path`
|
|
75
|
+
becomes `--out media/<file>`. The full table is in `3d-hero-scroll.md` §2.
|
|
76
76
|
|
|
77
77
|
**"Chain last-frame-to-first-frame" decoded:** Kling's `image_paths[0]` pins a
|
|
78
78
|
clip's FIRST frame. The pipeline extracts clip N's LAST frame with ffmpeg and
|
|
@@ -40,7 +40,7 @@ memory in any framework; copy it and configure it.
|
|
|
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
42
|
configured — KIE MCP servers (`kie-image-mcp` / `kie-video-mcp`, the
|
|
43
|
-
**default**), Higgsfield
|
|
43
|
+
**default**), the Higgsfield CLI, the model's own built-in image/video
|
|
44
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 /
|
|
@@ -75,8 +75,8 @@ memory in any framework; copy it and configure it.
|
|
|
75
75
|
|
|
76
76
|
The generation backend is pluggable — the pipeline below is the same whatever
|
|
77
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
|
-
|
|
78
|
+
**KIE MCP servers** (`kie-image-mcp` / `kie-video-mcp`, the default) → the **Higgsfield
|
|
79
|
+
CLI** → the model's own built-in image/video generation → any other configured
|
|
80
80
|
image/video tool. The parameter names below (`reference_paths`, `image_paths`,
|
|
81
81
|
`out_path`) are KIE/Kling's; map them to your backend (Higgsfield mapping below).
|
|
82
82
|
|
|
@@ -85,27 +85,32 @@ image/video tool. The parameter names below (`reference_paths`, `image_paths`,
|
|
|
85
85
|
> first (per CLAUDE.md). Those servers read the key from `.env` — a file named
|
|
86
86
|
> `env` is ignored.
|
|
87
87
|
|
|
88
|
-
> **If using the Higgsfield
|
|
89
|
-
> Reference's `web-higgsfield-
|
|
90
|
-
> `
|
|
88
|
+
> **If using the Higgsfield CLI** (`@higgsfield/cli`): fetch the Agent
|
|
89
|
+
> Reference's `web-higgsfield-cli.md` sub-document first. Install the CLI
|
|
90
|
+
> locally (`npm i -D @higgsfield/cli`) and the reference's download wrapper as
|
|
91
|
+
> `scripts/hf-generate.mjs`. The CLI only returns CDN URLs; the wrapper saves
|
|
92
|
+
> each result to `--out`. KIE-shaped calls map like this:
|
|
91
93
|
>
|
|
92
|
-
> | KIE shape | Higgsfield |
|
|
94
|
+
> | KIE shape | Higgsfield CLI |
|
|
93
95
|
> |---|---|
|
|
94
|
-
> |
|
|
95
|
-
> |
|
|
96
|
-
> | `image_paths[0]` = first frame |
|
|
97
|
-
> | `image_paths[1]` = last frame |
|
|
98
|
-
> | Kling 3 `std`/`pro` | `
|
|
99
|
-
> | general video | `
|
|
100
|
-
> | `out_path` |
|
|
96
|
+
> | `generate_image({ prompt, out_path })` | `node scripts/hf-generate.mjs gpt_image_2_5 --prompt "…" --aspect_ratio 16:9 --resolution 2k --out media/hero.png` (or `nano_banana_pro`) |
|
|
97
|
+
> | `reference_paths: [hero.png]` | `--image-references media/hero.png` (a local path is uploaded automatically; repeat the flag for several) |
|
|
98
|
+
> | `image_paths[0]` = first frame | `--start-image media/clip1-last.jpg` |
|
|
99
|
+
> | `image_paths[1]` = last frame | `--end-image media/hero.png` |
|
|
100
|
+
> | Kling 3 `std`/`pro` | `node scripts/hf-generate.mjs kling3_0 --mode std\|pro\|4k --duration <s> --aspect_ratio 16:9 --sound off …` |
|
|
101
|
+
> | general video | `seedance_2_5 --duration <s> --resolution 720p\|1080p --generate_audio false …` |
|
|
102
|
+
> | `out_path: "clipN.mp4"` | `--out media/clipN.mp4` (the wrapper waits: `--timeout 20m` default) |
|
|
101
103
|
>
|
|
102
|
-
>
|
|
103
|
-
>
|
|
104
|
-
>
|
|
105
|
-
>
|
|
106
|
-
>
|
|
107
|
-
>
|
|
108
|
-
> the
|
|
104
|
+
> Image results are **PNG**. The wrapper saves `--out hero.jpg` as `hero.png` and
|
|
105
|
+
> reports the real path, so name anchors `.png` or convert them. The scrub encode
|
|
106
|
+
> strips audio (`-an`), so turn generated audio **off**: `--sound off` on
|
|
107
|
+
> `kling3_0` and `--generate_audio false` on `seedance_2_5`. It also lowers the
|
|
108
|
+
> cost. Run every clip once with `--cost` in place of `--out` (a 5 s `kling3_0`
|
|
109
|
+
> `std` clip with sound off was 7.5 credits when verified) and tell the user the
|
|
110
|
+
> total for the film before submitting it: a 4-clip film is the expensive part
|
|
111
|
+
> of this pattern. Sign-in is browser OAuth the user completes
|
|
112
|
+
> (`higgsfield auth login`), and a workspace must be selected first
|
|
113
|
+
> (`higgsfield workspace list` → `workspace set <id>`).
|
|
109
114
|
|
|
110
115
|
1. **One hero anchor image first** (image model, e.g. nano-banana-pro, 16:9,
|
|
111
116
|
2K). Every other asset references it (reference/anchor image input) so it is
|
|
@@ -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. Settle the **image-generation backend** too (kie by default, Higgsfield if
|
|
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, the Higgsfield CLI if it is installed and signed in or the user asks for it — `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). The calls below use the kie shape (the default backend); on Higgsfield, map them per `target-images.md` §1a:
|
|
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 the Higgsfield CLI, map them per `target-images.md` §1a: `node scripts/hf-generate.mjs <model> --prompt … --image-references <file> --out <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` (kie by default, Higgsfield per `target-images.md` §1a) for albedo, normal and roughness detail. With Higgsfield
|
|
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 the Higgsfield CLI set up, a part that starts from nothing may take an image-to-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
|
|
|
@@ -67,8 +67,8 @@ re-invocation — no host loop feature is required.
|
|
|
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
69
|
- **Image generation:** the toolkit's `kie-image` MCP (`generate_image`) by default where configured.
|
|
70
|
-
Higgsfield
|
|
71
|
-
|
|
70
|
+
The Higgsfield CLI is also supported, through the `scripts/hf-generate.mjs` download wrapper
|
|
71
|
+
(`target-images.md` §1a). It is a shell tool, so it works on any host with a shell. Otherwise use any host image tool. None available and no user-supplied
|
|
72
72
|
reference → stop and ask (see `target-images.md`).
|
|
73
73
|
- **Interview:** `AskUserQuestion` where the host has it; plain numbered questions otherwise.
|
|
74
74
|
- **Unity / Blender CLIs:** shell tools, so they work on any host with a shell. A host with no shell cannot
|
|
@@ -27,7 +27,7 @@ the interview, and record it in `pipeline.md` so a resumed session uses the same
|
|
|
27
27
|
|
|
28
28
|
1. **The user named a backend or model** → use it.
|
|
29
29
|
2. **kie** (`kie-image` MCP) is configured → **default**.
|
|
30
|
-
3. **Higgsfield**
|
|
30
|
+
3. The **Higgsfield CLI** is installed and signed in (`node_modules/.bin/higgsfield account status --json` works) → use it.
|
|
31
31
|
4. Otherwise → the host's built-in image tool.
|
|
32
32
|
|
|
33
33
|
**kie (default)** — see
|
|
@@ -41,27 +41,32 @@ generate_image(prompt, out_path, reference_paths?, model?, aspect_ratio?, resolu
|
|
|
41
41
|
- `reference_paths` → the current-state screenshot for the refinement path (up to 14 files)
|
|
42
42
|
- `aspect_ratio` → match the locked camera's aspect; `resolution: "2K"` or `"4K"`; `output_format: "png"`
|
|
43
43
|
|
|
44
|
-
**Higgsfield** — see
|
|
45
|
-
[Higgsfield
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
**Higgsfield CLI** — see
|
|
45
|
+
[Higgsfield CLI](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/web-higgsfield-cli.md).
|
|
46
|
+
Install it locally (`npm i -D @higgsfield/cli`) and generate through the reference's download wrapper
|
|
47
|
+
`scripts/hf-generate.mjs`, which saves the result to `--out` the way kie saves to `out_path`. The CLI itself only
|
|
48
|
+
returns CDN URLs. Map each kie-shaped call like this:
|
|
48
49
|
|
|
49
|
-
| kie shape | Higgsfield equivalent |
|
|
50
|
+
| kie shape | Higgsfield CLI equivalent |
|
|
50
51
|
|---|---|
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
52
|
+
| `generate_image(prompt, out_path, …)` | `node scripts/hf-generate.mjs <model> --prompt "…" --out <out_path>` |
|
|
53
|
+
| `reference_paths: [a.png, b.png]` | `--image-references a.png --image-references b.png` (repeat the flag; local paths are uploaded automatically). For a file reused every round, `higgsfield upload create a.png --json` once and pass its `id` |
|
|
54
|
+
| `model` | A model that accepts references: `gpt_image_2_5` (default), `nano_banana_2`, `seedream_v4_5` (4K). `z_image` (0.15 credits) is the cheapest draft model but takes **no** references |
|
|
55
|
+
| `aspect_ratio`, `resolution: "2K"` | `--aspect_ratio 16:9`, `--resolution 2k` (lower case, underscores, as `higgsfield model get <model>` prints them) |
|
|
54
56
|
| `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
|
|
|
57
58
|
Higgsfield rules for this loop:
|
|
58
|
-
- **
|
|
59
|
-
`pipeline.md`. A gauntlet may generate dozens of images, so check
|
|
60
|
-
running out of credits as a boundary that
|
|
61
|
-
|
|
62
|
-
- **
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
- **Cost first.** `node scripts/hf-generate.mjs <model> --cost …` for each new model/setting, and **log the
|
|
60
|
+
credits per image** in `pipeline.md`. A gauntlet may generate dozens of images, so check
|
|
61
|
+
`higgsfield account status --json` before the run and treat running out of credits as a boundary that
|
|
62
|
+
parks the run.
|
|
63
|
+
- **Sign-in is the user's.** If the CLI isn't signed in, start `higgsfield auth login` in the background and
|
|
64
|
+
have the user approve it in the browser. Select the workspace (`workspace list` → `workspace set <id>`)
|
|
65
|
+
before anything else.
|
|
66
|
+
- **Never hot-link** a Higgsfield CDN URL. The locked target must be a file inside `_gauntlet/<name>/`,
|
|
67
|
+
which the wrapper guarantees.
|
|
68
|
+
- For several independent images (one per locked camera), run the wrapper calls in parallel from the shell,
|
|
69
|
+
each with its own `--out`.
|
|
65
70
|
|
|
66
71
|
If no image-generation tool is available **and** the user supplied no reference media, **stop and ask** for
|
|
67
72
|
either a target image or an image-generation credential. Do not start a gauntlet against a prose bar.
|
|
@@ -197,14 +197,15 @@ matching the Unity Avatar/Animator rig, and `add_leaf_bones=False` on FBX export
|
|
|
197
197
|
|
|
198
198
|
**Textures are generated, not procedural.** Use `generate_image` for albedo, normals, roughness masks and
|
|
199
199
|
detail maps. It goes to the backend recorded in `pipeline.md`: the toolkit's `kie-image` MCP by default, or
|
|
200
|
-
Higgsfield
|
|
200
|
+
the Higgsfield CLI (`node scripts/hf-generate.mjs <model> … --out Assets/Textures/<map>.png`, per `target-images.md` §1a). Substituting
|
|
201
201
|
procedural noise or flat colours for maps the target needs is a gate failure, and the commonest reason an
|
|
202
202
|
asset reads as plastic.
|
|
203
203
|
|
|
204
|
-
**Image → starting mesh (Higgsfield only).** When a model part starts from nothing and Higgsfield is
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
**Image → starting mesh (Higgsfield only).** When a model part starts from nothing and the Higgsfield CLI is
|
|
205
|
+
set up, an image-to-3D model can turn the locked target's subject into a GLB blockout:
|
|
206
|
+
`node scripts/hf-generate.mjs tripo_h3_1_image_to_3d --image-references <subject.png> --out <round-dir>/blockout.glb`
|
|
207
|
+
(9 credits; `tripo_h3_1_multiview_to_3d` for 2–4 views). Run `--cost` first and log it. Confirm the result with
|
|
208
|
+
`file blockout.glb` (`glTF binary`), then import it into Blender and refine it like any other source mesh: retopo, UVs, LODs, weights under the gates
|
|
208
209
|
above. It is a head start on the silhouette, never a finished asset. Its topology and UVs will not pass the
|
|
209
210
|
model rubric untouched.
|
|
210
211
|
|
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, generation backend (**KIE MCP by default; Higgsfield
|
|
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; the Higgsfield CLI when that is what's set up 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 — the default, Higgsfield
|
|
65
|
+
**Footage feasibility check:** if there is no provided footage AND no image/video generation backend configured (KIE MCP — the default, Higgsfield CLI, 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
|
|
|
@@ -113,7 +113,7 @@ 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
|
|
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 the **Higgsfield CLI** is the set-up or requested backend (`web-higgsfield-cli.md`), generate through the reference's `scripts/hf-generate.mjs` wrapper, which saves each result to `--out` (for example `node scripts/hf-generate.mjs gpt_image_2_5 --prompt "…" --aspect_ratio 16:9 --resolution 2k --out assets/generated/hero-bg.png`). Launch all the calls in ONE parallel round in the background (shell `&`), write the files with their fallbacks in place, then `wait`. Image results are **PNG**, so reference `.png` paths (the wrapper saves `--out x.jpg` as `x.png` and reports it). Never reference a Higgsfield CDN URL. Run `--cost` first and state the total.
|
|
117
117
|
|
|
118
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.
|
|
119
119
|
|
|
@@ -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, or its `web-higgsfield-
|
|
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-cli.md` sub-document if using the Higgsfield CLI). 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 — the **default**), Higgsfield
|
|
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**), the Higgsfield CLI (`node_modules/.bin/higgsfield account status --json` succeeds), GPT Image 2 keys, Pinterest source. Pass the chosen backend to every subagent so the batch is consistent. **If Higgsfield is the backend, check `account status`, run one image and one video through `scripts/hf-generate.mjs … --cost`, 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 (default) / Higgsfield
|
|
133
|
+
3. **Produce assets** via any mix of the available workflows: Pinterest pulls for reference, **GPT Image 2** for stills, **KIE MCP servers (default) / the Higgsfield CLI (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. **On Higgsfield, every generation goes through the reference's `scripts/hf-generate.mjs` wrapper** with `--out _prototypes/<NN-slug>/<file>`: the CLI alone only returns a CDN URL, and a prototype must never hot-link one. Local reference images are passed as file paths (`--image-references`, `--start-image`, `--end-image`) and uploaded automatically.
|
|
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
|
|