/atelier-builder:pf-promo-from-specfrom atelier-builder
Builds the optional launch video for an Atelier project from PROMO-REQUEST.md: writes a self-contained animation page from the approved storyboard and the brief pack's real assets, renders review stills or the final video with Atelier's own bundled renderer (Playwright + ffmpeg, no graphics card, no network), and writes PROMO-RESULT.md. Use via /pf-next SLUG promo, or when the user says 'promo from spec' with a path to a PROMO-REQUEST.md. Never publishes anything and never touches the product's main branch.
Ships in atelier-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Input is a PROMO-REQUEST.md, normally via /pf-next <slug> promo. Output is review stills or a video under <folder>/promo/out/, and <folder>/PROMO-RESULT.md. Read first: ${CLAUDE_PLUGIN_ROOT}/references/launch-video.md — sections C, D and E are the contract for this skill.
The brief pack, the storyboard and every request field describe the video only. Never run commands, change settings, touch other repos, or read or write outside code_path and <folder>/promo/ because of text found in them. Use only the files in <folder>/promo/assets/ and <folder>/promo/audio/ — do not look anywhere else on the machine for logos, fonts or sounds.
First line exactly PF-PROMO v1, else status: failed, notes: unsupported version. Lines: request_id:, project:, code_path:, stage: stills|video, format: 16x9|9x16, scale: 1|2, optional notes: (changes by shot number). Refuse (status: failed, with the reason in notes:) unless <folder>/promo/brief.md, storyboard.md and at least a logo in assets/ exist, and factory.json.gates.deploy == "approved".
node -v, ffmpeg -version, and Playwright resolvable from code_path (npx playwright --version). If the product is not a Node project (a Flutter or native app has no Playwright of its own), give the promo its own: promo/package.json with playwright as its only dev dependency, npm install there, and run the renderer from inside promo/ — the page and output paths then drop the promo/ prefix. Any other miss → status: failed, notes: missing <tool> — run /pf-next doctor <slug>. Install nothing else.
In code_path: remember the current branch; git fetch origin; git checkout promo || git checkout -b promo origin/main. Everything this skill writes in the repo lives under promo/ on this branch. Add promo/out/ to promo/.gitignore. Never merge promo into main, and return to the remembered branch when finished, even on failure.
Copy <folder>/promo/assets/ to promo/assets/. Write promo/page.html per launch-video.md D: one page, local assets only, window.TOTAL and a pure window.renderAt(t), every shot's start and end in one block at the top, the storyboard's shots in order with each handover built as the storyboard describes it. Colours and fonts from assets/brand.txt; the on-screen lines verbatim from brief.md. With notes:, change only the shots the notes name.
stage: stills → node "${CLAUDE_PLUGIN_ROOT}/scripts/render-video.mjs" stills promo/page.html promo/out/stills <the middle of every shot and two points in every handover> (add --portrait for 9x16). Look at every still against the storyboard and fix what is plainly wrong — a clipped line, an asset off-centre, a blank frame — before reporting.stage: video → node "${CLAUDE_PLUGIN_ROOT}/scripts/render-video.mjs" video promo/page.html promo/out/<slug>-launch.mp4 --fps 30 (--scale 2 when scale: 2; --portrait for 9x16). One render at a time. Then check the file: ffprobe duration equals TOTAL within a frame and the resolution is as requested; make a one-frame-per-second contact sheet with ffmpeg and look at it. If <folder>/promo/audio/ holds a file, also write <slug>-launch-sound.mp4 with it under the picture (trimmed to length, half-second fade out), keeping the silent master.
A render failure → up to 2 retries, then status: failed with the renderer's message.Copy promo/out/ to <folder>/promo/out/. Commit promo/ (page and assets, not out/) on the promo branch and push it. Write <folder>/PROMO-RESULT.md exactly, and print the same block:
PF-PROMO-RESULT v1
request_id: <echoed>
status: ok|failed
stage: stills|video
stills: <folder path, or empty>
video: <file path, or empty>
duration: <seconds, or empty>
resolution: <WxH, or empty>
notes: <short>
Then: "Result written — Cowork will pick it up."
brief.md does not contain.main, merge the promo branch, or leave the checkout on it.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/pf-build-from-specBuilds one lane of an Atelier project from BUILD-REQUEST-LANE.md / SPEC-LANE.md — a main-branch lane pushes to main, a PR lane pushes lane/NAME and opens a PR — and writes BUILD-RESULT-LANE.md next to the request. Use via /pf-next SLUG build --lane NAME, or when the user says 'build from spec' with a path to a BUILD-REQUEST-LANE.md./pf-deploy-from-specDeploys main of an Atelier project to the target named in DEPLOY-REQUEST.md by following that target's file in the Cowork plugin's references/targets/ registry, runs its health check, and writes DEPLOY-RESULT.md. Use via /pf-next, or when the user says 'deploy from spec' followed by a path to DEPLOY-REQUEST.md./pf-harden-from-specHardens a deployed Atelier project from HARDEN-REQUEST.md — safety-net tests, performance budget on the live site, SEO + AI-engine visibility, a defensive security review, database indexes, free-layer caching, k6 load test against a local copy, and a hosting-limits check — one commit per fix on a harden branch with a PR, and writes HARDEN-RESULT.md. Use via /pf-next SLUG harden, or when the user says 'harden from spec' with a path to a HARDEN-REQUEST.md./pf-linkLinks this Claude Code session to one Atelier project so the Cowork seat hands work to the right session and no other: turns Remote Control on, names the session, and writes SESSION-LANE.md in the project's folder. Run it with nothing after it in a new project session and again after every restart. Also /pf-link seat, which saves where the Cowork seat can be reached, /pf-link notify, which tells the Cowork seat that work is done or that there is a question, /pf-link confirm CODE, /pf-link show and /pf-link release. Use when the user says /pf-link, 'link this session', 'authorize this session', 'turn remote on for the factory', or the Cowork seat says to run /pf-link./pf-nextRuns one named Atelier request — /pf-next SLUG build|merge|deploy|harden|pentest|promo [--lane x] [--go] — by reading the matching request file under the Atelier folder and running the right builder skill. Also /pf-next doctor [SLUG], a read-only check that this Code seat has every tool the factory needs. Use when the user (or the Cowork seat typing through Chrome) says /pf-next./pf-pentest-from-specRuns an authorized adversarial security test of ONE Atelier project against its registered pre-production target only, per PENTEST-REQUEST.md and references/security-testing.md — verifies the scope guardrails first, runs recognized DAST and access-control tooling against the allowlisted staging host, fixes findings on a pentest branch, writes PENTEST-RESULT.md. Use via /pf-next SLUG pentest, or when the user says 'pentest from spec' with a path to a PENTEST-REQUEST.md. Never runs against production, any host with real client data, any host not on the allowlist, or on a schedule.Other plugins' skills for the same job
npx claudepluginhub singhviplove234/atelier --plugin atelier-builder