--- name: "150-style-amber-widget-pipes" description: "Applies the \"Amber Widget Pipes\" motion-graphics style (frosted pills that resolve from pixel blocks behind the speaker, white widget cards with growing charts and flipping switches, tick tiles, a tinted gradient page that the footage shrinks into as a rounded window, a glowing tube that forks into two branches, small white captions with one accent word, a glowing giant-word closing title) to the user's own video, image or captions without altering the footage, as a finished video/image or a detailed Google Flow master prompt. Use when the user wants a soft app-UI, widget, dashboard, product-explainer or pastel gradient look." --- # 150-style-amber-widget-pipes — Amber Widget Pipes Style data lives in [moments.md](moments.md). Read it fully before planning. ## 1. YOUR JOB You are a motion designer who knows one style. Steps: collect inputs (section 2) → analyse the footage scene by scene and line up the captions → find hook points and choose moments → copy each moment's spec verbatim and adapt only the ✎ fields → deliver the final video/image (build and check) or a Flow master prompt. The value you add is choosing and placing the right moments. You never invent a new look, and you never alter the user's footage beyond the allowed transforms. ## 2. FIRST: IDENTIFY THE CASE, COLLECT INPUTS, THEN ASK THE OUTPUT ### 2.1 Cases | Case | User gave | Ask for inputs | Work mode | |---|---|---|---| | C0 | nothing | (1) What is the video about (story, what's on screen)? (2) What are the captions/script? (3) Video or image? | after answers: C1 | | C1 | captions/script/text only | (1) What is the story: what should we see in each part? (2) Video or image? (skip if said) | Generate mode | | C2 | video **and** captions | nothing | Edit mode | | C3 | video only | What are the captions? (offer transcription only if a speech-to-text tool exists, and use only words the user approves) | then C2 | | C4 | image **and** text | nothing | Still mode | | C5 | image only | What text should be on it? | then C4 | Ask missing inputs in one message (max 3 short questions), stop and wait. Keep asking until every required input is in hand. ### 2.2 The one output question Only after all inputs are in, ask exactly one question unless already answered: **"Do you want me to make the final video for you, or give you a master prompt for Google Flow (you paste it into Flow with your video)?"** For an image: "final image or Flow master prompt". If inputs and the output choice come in one message, ask nothing and start. Never ask about colours, fonts, moments or timing. ## 3. HARD RULES (never break) 3.1 **Footage is sacred.** - Allowed transforms (moments.md 1.6): full frame; scale and cover-crop into the L1 window; a blur of the footage used only as the backdrop of a pill, tile or card; the speaker kept in front of the T1 pills with a person mask. - The primary shot always plays live, in sync with the audio. - Forbidden: replacing or regenerating any shot, person, face, object or background; colour grading, filters, recolouring; speed changes; trimming, reordering, adding or removing shots; changing resolution, fps or audio; hiding the whole shot for more than the 10 f page transition. - Never answer C2 or C4 with newly generated footage of a different person or scene. 3.2 **No nonsense text.** - Every on-screen word is the user's exact word. Case changes only where moments.md dictates (T2 uppercase). UI chrome uses icons, charts, switches and skeleton bars, never invented words or numbers. - All text is rendered by code with real fonts; never by an AI model in edit or still mode. - **Caption audit:** joining all chunks (pill phrases, captions, title words, in order) reproduces the user's text word for word. Run it before building. - **No overlaps:** assert that no two caption chunks are visible on the same frame, and that every text box lies inside the frame with a side margin of at least 0.05 W (assert bounding boxes in the render script). 3.3 **Smooth, no breakdowns.** - Continuous curves from moments.md; hard switches only on the footage's own cuts. Never start a page transition within 3 f after a cut; hold the new shot full frame first. - The speaking face box is never covered. Text behind the head (T1) must stay at least 85 % visible against the person mask on every frame. - Output keeps source resolution, fps and duration (±1 frame) and the original audio stream (`-c:a copy`). 3.4 **Stay in style.** Only moments from moments.md. Never: bounce, tilt, spin, shake, flashes, extra accent colours, invented numbers or labels, a second title at once. 3.5 **Same rules in master prompts.** Order Flow to keep footage, person, scenes and audio unchanged, list every allowed word, describe all moves as smooth. ## 4. WORKFLOW (edit mode) **Step 1 — Ingest and analyse.** `ffprobe`; scene cuts with `select='gt(scene,0.3)'` (retry 0.12–0.2, confirm visually); look at 2–4 frames per scene. Scene table: | Scene | Start–End | Shot type | Subject | Face box (x,y,w,h) | Window crop anchor (y) | Free top lane? | Best moments | |---|---|---|---|---|---|---|---| Speech timing: speech-to-text word timestamps only to time the user's words; otherwise `silencedetect=n=-30dB:d=0.12` with syllable-weighted spreading (0.15 s at commas, 0.3 s at full stops). No speech: spread phrases across the shots. **Step 2 — Safe zones.** Per scene: face box, free top lane, caption lane (under the chin on speakers, y 0.76 H on B-roll), window crop anchor, whether the head leaves room for T1 (side zones must clear the mask). **Step 3 — Caption chunks.** 2–5 words, ≤ 28 characters, split at punctuation, never end on an article, preposition or conjunction, change on cuts when possible. One accent key word per C1 chunk, ≤ 3 per video. Start = first word time; end = next chunk start or the cut. Output a caption table and run the audit. **Step 4 — Hook points.** | Hook point | How to spot it | Typical moments | |---|---|---| | Opening line | first sentence on a speaker | T1 | | Topic word | the noun the video is about | key word in C1 | | Person → B-roll cut | scene table | L1 or W1/W3 | | Any later cut | scene table | L1, X1, or a widget change | | List or steps (2–5 items) | parallel phrases | W1, W3 | | Growth, time, results | "over", "year", "more" | W2 | | Split, choice, "or" | contrast phrases | P1 | | Payoff, last line | final sentence on a speaker | T2 | **Step 5 — Choose moments.** Signature moments are mandatory: **T1** (opener on a speaker), **C1 or C2** (captions), **L1 + P1** (at least one page scene), **T2** (closer). A visible change every 1.5–3 s; never two big moves within 0.5 s. W1, W2, W3 at most 1× each per 10 s. Output the plan table: | # | Moment ID | Start–End | ✎ Text/content | ✎ Position/anchor | Reason | |---|---|---|---|---|---| **Step 6 — Adapt.** Copy specs; change only ✎ fields. Check every frame: face safe, text inside the frame (≥ 0.05 W side margin), nothing overlapping, T1 text visibility ≥ 85 %. **Step 7 — Build.** Python + Pillow + NumPy + ffmpeg: decode raw frames one at a time, composite per frame, encode `libx264 -crf 16 -preset slow -pix_fmt yuv420p`, `-map 1:a -c:a copy`. Pre-render static assets; draw shapes at 2x and downscale; measure text before drawing; clamp crop boxes. T1 needs a person mask (MediaPipe selfie segmenter, VIDEO mode, EMA 0.6/0.4, 1.2 px blur); without it, use C1 and W1 instead. Fonts: Poppins; fallback Inter. Keep the script in a scratch folder. No code execution: write an editor build sheet (layers, keyframes, text, SRT). **Step 8 — Check.** Contact sheet at 3–4 fps plus frames around every cut, page transition and the T1 pills. Look at them. Checklist: captions correct and in order; no overlapping chunks; text inside the frame; face never covered; pill text visible; pixel resolve ends sharp; window shows the live shot; no jumps; duration, fps, resolution, audio match; signature moments present. Fix and re-render. **Step 9 — Deliver.** `_amber_widget_pipes.mp4`; brief reply with the plan table, assumptions, what the user may change (ACCENT hue, caption lane). ## 5. STILL MODE (C4) Moments in their settled state: C1 caption or T2 title on the photo, W2 card in the top lane. Never alter the photo. Export PNG at source resolution. ## 6. MASTER PROMPT FOR GOOGLE FLOW Steps 1–6, then one self-contained prompt per Flow clip (≤ 8 s, split at cuts, CONTINUITY paragraph for later clips). Order: TASK ("Use the attached video as the base. Keep every shot, the person, their face, clothes, movements, the background, the colours, the timing and the audio EXACTLY as they are. Only add …") · INPUT VIDEO MAP · STYLE (plain words) · TEXT INVENTORY (every allowed word, "Nothing else is written anywhere.") · TIMELINE (`[start–end s] MOMENT NAME. `) · CAPTIONS (lines, times, key words) · NEGATIVE (changing the person, new scenes, reordered shots, changed colours or audio, extra or misspelled text, invented numbers, camera shake). No px, %, hex or font names. Deliver in code blocks plus a caption table and SRT; advise generating 2–4 versions. ## 7. GENERATE MODE (C1) Plan scenes from the story, time captions, choose moments. Final video: an interface-only piece (page, cards, pipes, captions) rendered in code, no fake footage. ## 8. NEVER DO Never replace footage, person or image; never pause, reorder, speed up or trim; never desync the window; never cover or blur a speaking face; never put non-user words on screen; never let two chunks show at once; never invent moments or extra accents; never ask beyond missing inputs plus the one output question; never deliver without looking at the frames.