name: roblox-gentle-pipeline description: Trigger: building any Roblox game with Gentle Shell's "roblox" profile or the roblox-art-director, roblox-builder, roblox-critic, roblox-guardian, roblox-asset-artist agents. Runs the 15-stage (0-14) slice-by-slice pipeline - environment/slice 0, contracts, art bible, graybox, guarded modules, build, assets, target look, look, juice, playtest, 8-gate judge, fix, policy, deliver - with an explicit Studio operator and lease.
Roblox Pipeline (Gentle Shell roblox profile)
Genre-neutral. Ship in vertical slices; never generate a whole game in one pass. "Done beats perfect" everywhere EXCEPT player data, purchases and input/remote validation. Load roblox-exito for design and scenario-roblox-expert for Studio MCP usage. Slice-0 base: the starter repo ~/Desktop/roblox-starter (clone it, then fill docs/contracts.md and art/style.json).
Roles
| Role | Agent | Owns | Never |
|---|---|---|---|
| Studio operator + director | Orchestrator (MUST be vision-capable) | Concept, docs/contracts.md, Rojo sync, build scripts, lighting/post calibration, playtest, captures, git checkpoints, lease hand-off | Bulk Luau (>1 module); skipping parent verification |
| Pinned writer | agent claude-sonnet-5-5 (model from the profile) | Edits to existing/shared files >~200 lines, guarded call sites, default.project.json, escalated flash failures | Studio MCP; guarded logic unless guardian-approved |
| Art director | roblox-art-director | art/bible.md, art/concepts/, 2D assets, art/style.json, target restyles, critiques | src/, Studio MCP, git, uploads |
| Builders | roblox-builder (flash) | New self-contained modules, idempotent src/build/ scripts | Studio MCP, shared/large files, data/purchases |
| Asset artist | roblox-asset-artist | Meshes, materials, store assets/audio, assets/manifest.json | src/, git, running while the operator holds the lease |
| Guardian | roblox-guardian | Data, purchases, validation layer, Lune tests, sign, policy | Studio MCP, publishing, non-guardian modules |
| Critic | roblox-critic | Independent 8-gate verdict from disk artifacts | Edits, Studio MCP, delegation |
| Human | User | rojo serve, Save-to-File, LightingStyle, published place, listening to audio, ship/cut | - |
Studio lease. One studio_owner at a time; the operator holds it by default. Hand-off: operator stops all Studio calls, names the holder and mode (Edit) in the task, holder returns it with studio_state, operator verifies (staging cleaned, mode Edit) before resuming. Only the asset artist ever borrows it.
Stages
Every stage lists Owner, studio_owner, Do, Done when. Work in slices; re-enter stages 3-12 per slice.
0. Environment + slice 0
- Owner: operator + human. studio_owner: operator.
- Do (slice-0 checklist):
- New game bootstrap. If the session is not in a game repo made from the starter (no
tools/check.sh+default.project.json), ask the human withask_user_choicebefore anything else: "Create a new game from the roblox-starter template?" (options: create it, use the current folder, cancel), then ask the repo name and private/public. On "create", runroblox-new-game <name> [--public](it creates the GitHub repo from the template, clones it to~/Desktop/<name>and sets the noreply identity), relay its next steps, and tell the human to open Gentle Shell in the new folder; continue stage 0 there, not here (subagent consent, memory and relative paths depend on the session root). Never copy the starter by hand. - Human runs
rojo servein a separate terminal; agents never start/stop it. A/reloadcan kill background jobs, so re-check it is running. - Clean the template in Edit mode: delete
Baseplate, defaultSpawnLocation, ALL template post effects (Bloom, SunRays, DepthOfField, ColorCorrection, Atmosphere). Appliers keep exactly one of each effect (find-or-create singletons). - Confirm
.gitignorehas anchored/build/(neverbuild/, which hidessrc/build). - Human does Save-to-File once (
save_placeonly works after that). - Human sets
Lighting.LightingStyle(Realistic|Soft;Lighting.Technologyno longer exists, useLightingStyle); record it inart/style.json. - Data/purchase games: see "Phone, multiplayer, data procedures".
- Run
bash tools/check.sh(fetchesglobalTypes.d.luau); capture at t=0 and t=+10 s.
- New game bootstrap. If the session is not in a game repo made from the starter (no
- Done when: check passes, template stripped, place saved, LightingStyle in
art/style.json, both captures show no burn-out.
1. Concept + contracts
- Owner: operator + human. studio_owner: operator.
- Do: fill
docs/contracts.md: core loop, session goal, return reason, module APIs, remotes, attributes/tags, guardian-owned list, and a## Session Scenario(exact scripted steps from join to reset, plus rejoin if data exists). - Done when: human approves; every module, remote and scenario step is specified.
2. Art bible + style.json
- Owner:
roblox-art-director(bible). studio_owner: none. - Do:
art/bible.md, 3-6 concepts,art/style.json(palette, materials,lightingincl.LightingStyle+human_step,prompt_style, scale, UI, cameras). All image-model numbers tagged "targets, uncalibrated". - Done when: style.json covers every visual role in the contracts; human approves direction.
3. Graybox (judged ONLY on the loop)
- Owner: operator + 1-2 builders. studio_owner: operator.
- Do: server-authoritative core loop with primitive Parts. No assets, no lighting polish, no visual critique.
- Done when: the Session Scenario runs end to end and the human says the loop is worth polishing.
4. Guarded modules
- Owner:
roblox-guardian(write). studio_owner: operator (sync only). - Do: data, purchases, currency,
Remotesregister API + validation layer with Lune tests. - Done when:
bash tools/check.shandlune run testspass.
5. Build batch
- Owner: builders / pinned writer. studio_owner: none (operator verifies).
- Do: modules in parallel only on disjoint paths; remotes via the shared API; Touched/prompt/click rewards go through validation; verify after every worker (below).
- Done when: all modules pass check; guarded diffs are signed.
6. Asset phase
- Owner:
roblox-asset-artist. studio_owner: asset artist (explicit Edit-mode lease). - Do: shape-donor meshes (max 2 tries, then Parts/CSG or a store asset), materials, audio/store assets; every accepted asset recorded in
assets/manifest.json. - Done when: manifest complete,
save_placeok,AssetStagingclean, lease returned withstudio_state, store/audio passed guardianpolicy, human listened to audio once.
7. Target look image
- Owner:
roblox-art-director(target). studio_owner: operator (takes the capture). - Do: real capture from a
style.jsoncamera -> restyled image, same camera, plus ranked property changes labelledstyle-onlyorgameplay-touching. - Done when: image and ranked list delivered; gameplay-touching items routed to the critic/human.
8. Look phase
- Owner: operator. studio_owner: operator.
- Do: apply style-only lighting/post one batch at a time with before/after timed captures. Values stay "uncalibrated" until a capture verifies them.
- Done when: timed captures match the target mood with no burn-out; verified values written back to
style.json.
9. Life / juice phase
- Owner: builders / pinned writer + operator. studio_owner: operator.
- Do: tag-driven motion (bob/spin), pickup/interaction FX, audio cues, toggleable ambience, clear end-of-session feedback.
- Done when: check passes; timed captures or video show the motion, FX and audio hooks running.
10. Integrate + playtest
- Owner: operator + guardian (tests). studio_owner: operator.
- Do: sync Rojo, run build scripts,
lune run tests(required for a valid signature),bash tools/check.sh. Run the contracts' Session Scenario by script. Capture per camera at t=2, 10, 30 s (or short video); phone and multiplayer procedures below; saveconsole.txt,stats.json, one labelled contact sheet. - Done when: fresh artifacts and logs exist on disk.
11. Judge (8 gates)
- Owner:
roblox-critic. studio_owner: none. - Do: read raw artifacts and captures; score gates 1-8; at most 8 property-level fixes.
- Done when: verdict written; see Gates.
12. Fix
- Owner: builders / pinned writer / guardian. studio_owner: operator.
- Do: apply fixes, repeat 10-11. Count passes per gate type.
- Done when: gates pass, or the iteration budget triggers a human decision.
13. Policy
- Owner:
roblox-guardian(policy). studio_owner: none. - Do: audit monetization, reward timers, random rewards, social features, store assets, uploads. The human approves each upload explicitly before it happens.
- Done when:
clearwith no blockers.
14. Deliver
- Owner: operator + art director (
assets) + human. studio_owner: operator. - Do: icon + 3 thumbnails, title/description/devices, rejoin check (Verified/Assumed), final commit,
.rbxlbackup. - Done when: human gives an explicit publish go-ahead.
Cross-cutting rules
Worker verification and routing
- Flash builders: new self-contained modules and build scripts. Pinned Sonnet writer: edits to existing or shared files over ~200 lines, guarded call sites,
default.project.json; also the default when unsure. - After EVERY worker the parent runs
git status --porcelain,git diff --statinside the allowed surface, andbash tools/check.sh. Empty or out-of-surface diff = reject, even if the worker says "completed". One failure from a flash model escalates that task to the Sonnet writer. - Builders never receive images: they read
art/style.json,assets/manifest.jsonand text fixes only. - Handoff packet: role/mode,
## Allowed edit surfaces, contracts section,style.json/manifest, check command, skill paths, required return block (files_changed,diff_stat).
MCP-capability protocol
When Studio MCP cannot read or set something (e.g. LightingStyle, Save-to-File), STOP, give the human one numbered manual step, record the value in style.json, verify by capture.
Asset persistence
assets/manifest.json (name, meshId, textureId, size, source, tris, status; plus creator/assetId for store/audio) is the record. The build rebuilds MeshParts with InsertService:CreateMeshPartAsync once at server start into cached templates and clones them. .rbxm export is a backup only (it can lose MeshId).
Uncalibrated numbers and safe ranges
Image-model palette, lighting and post numbers are targets, uncalibrated. Only the operator applies lighting/post, one batch at a time, with before/after timed captures. Safe ranges: moderate bloom, threshold >= 1.3 under Realistic, no effect stacking.
Temporal evidence
Per camera a timed sequence (t=2, 10, 30 s) or short video; one still hides burn-out and float/spin. Reject magenta/blank/partial frames and retry later. Owner captures are first-class. One labelled contact sheet per slice for vision reviewers.
Gates
| # | Gate | Pass |
|---|---|---|
| 1 | Console | no errors, no repeating warnings |
| 2 | Loop | contracts' Session Scenario passes |
| 3 | Performance | desktop-Studio proxy: p95 <= 20 ms, worst <= 33.3 ms |
| 4 | Phone | HUD readable, clear of jump button/top bar, touch targets usable, 2 aspect ratios |
| 5 | Visual bar | landmark visible, singleton lighting, matches style.json, no burn-out/blank frames, scale right |
| 6 | First minute | goal clear, first feedback fast |
| 7 | Session arc | start, activity, atomic end/reset, next session works |
| 8 | Feel | motion, FX, audio read as alive |
Each is pass | fail | unverified; an unverified gate blocks pass. The perf figure is a desktop proxy, never phone proof.
Phone, multiplayer, data procedures
- Phone: Device Emulator, 2 aspect ratios (one tall, one wide); capture HUD and primary interaction in each.
- Multiplayer: any game with >1 player per server needs
Test > Clients and Serverswith 2-3 clients and a report; otherwise "assumed". - Data and purchases: slice 0 publishes a private place, enables Studio access to API services, creates placeholder products/passes. Rejoin is verified in a real session and labelled Verified or Assumed.
Security
Touched,ProximityPromptandClickDetectorrewards are client input: validate distance, rate and state server-side, like remotes.- State transitions never reopen before yielding rebuilds/spawns finish (atomic reset).
- Builders register remotes only through the shared
RemotesAPI. Guardian signs ONLY guardian-owned modules (validation layer, currency, purchases, data).lune run testsat stage 10 is required for a valid signature; any later edit to guarded code voids it.
Iteration budget
After 2 fix passes per gate type, stop and ask the human: ship, continue (name the next pass), or cut.
Audio and store assets
Prefer Roblox-owned or licensed. Record creator + id in the manifest. Human listens once before the slice passes. Store assets go through guardian policy before use.
Ownership and escalation
Guardian fixes guardian-owned paths; builders (or the Sonnet writer) fix their own module. After two round-trips on one defect the parent asks the human.
Quota resilience
- The operator and asset artist must stay vision-capable; never degrade them to a non-vision model.
- Critic stays a different model family from the art director; if unavailable, pause visual judging and use owner captures.
- Guardian never degrades to flash; if unavailable, pause guarded work.
- Any model change mid-slice forces a checkpoint first: commit, state summary,
save_placeif the place was saved. - Image quota fallback (art director). When the art director returns
status: quota_exhausted, the parent does not retry and does not switch silently. It asks the human withask_user_choice: question "Gemini image quota is exhausted (resets in ). Switch to manual mode? I give you the exact prompt to paste in the Gemini web chat and where to save each image, then I continue." Options:Manual mode(relaunch the same task withmanual: approved),Wait for the quota(mark the image stage blocked, keep working on stages that do not need images),Skip this image(continue without it and note it in the slice report). In manual mode the parent relays the numbered requests verbatim, waits for the human to say the files are saved, then resumes the art director to verify them. Other image-free work keeps running meanwhile.
Session hygiene
- Read order for any worker: the task,
docs/contracts.md,art/style.json,assets/manifest.json, then the named skills. - Commit a checkpoint after each passed slice and before any lease hand-off or model change.
- Keep contracts the single source of truth: change them first, then code. Specific game facts live in the game repo, never in this skill or the agents.
- Decide with evidence on disk (artifacts, captures, test output), not worker prose.
Stage-to-agent quick map
- Modes: art director
bible(2),target(7),critique(after 8/10),assets(14); guardianwrite(4),sign(5, 12; needs a fresh green stage-10 test run),policy(6 for store/audio assets, 13). - Parallelism: builders only on disjoint paths; never run the asset artist while the operator needs Studio.
- Failure handling: blocked/partial worker -> read its return block, fix the contract or surface, re-dispatch once; a second failure escalates (flash -> Sonnet writer -> human).
- Run
git statusbefore ending a session so no work is left unsaved.