@babylonjs-toolkit/agent 1.1.18 → 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 +3 -1
- 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-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.
|
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
|
|
@@ -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
|
|