/alemtuzlak-skills:remotion-videofrom alemtuzlak-skills
Generates a rendered promotional video from a PR or feature change using Remotion, producing mp4 and poster image for social media. Iterates with live preview in Remotion Studio.
Ships in alemtuzlak-skills. 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.
Read when SKILL.md points to them.
Turn a PR into a rendered short-form promo video with a hook, code moments, and CTA, using Remotion. Iterate with live preview in Remotion Studio, then render video.mp4 and poster.jpg for X/LinkedIn/social.
Unlike /video-script (which produces a textual script), this skill produces the actual video file.
Invoke when the user says: "make a video for this PR", "remotion video", "render a promo video", "video for X/LinkedIn", or when selected from /marketing-pipeline.
Resolve input
→ Phase 1: Discovery
→ Phase 2: Configuration
→ Phase 3: Narrative planning
→ Phase 4: Scaffold
→ Phase 5: First draft + iterate
→ Phase 6: Render
→ Phase 7: Cleanup
Phases 1, 3, 5, and 7 have explicit approval gates. Phase 2 is an interactive Q&A. Phase 5 is a freeform iteration loop that can run many rounds.
When the user invokes the skill with phrasing like "use sane defaults", "don't ask questions", "non-interactive", "just ship it", or any equivalent — interpret it precisely:
It DOES override (skip the prompt, pick the default):
marketing/<feature-slug>/remotion/It does NOT override (must always run regardless):
If you're tempted to skip a HARD-GATE because the user "said no questions" — re-read this section. The user said no questions, not no gates.
Resolve the argument (if provided) in this order:
.md containing "Executive Summary" or "Key Messages") → marketing brief.md with blog post structure) → blog post#\d+ pattern → PR<ref>..<ref> or <ref>...<ref> (alphanumeric + /, _, ., - on each side) → git ref rangeIf no argument is provided, ask: "What should the video be about? You can provide a PR URL/number, marketing brief, blog post, changelog, git ref range, file/directory path, or just describe the feature."
When invoked from the pipeline with a PR and upstream marketing-brief/blog-post paths, read both: PR for technical accuracy, upstream content for positioning/tone.
(Detailed phase specs begin below — see Phase 1.)
remotion-best-practices availabilityAttempt to invoke the remotion-best-practices skill via the Skill tool. If unavailable, present:
"The
remotion-best-practicesskill isn't installed. Options: a) proceed with baseline Remotion knowledge (quality may be reduced) b) wait while you install it c) cancel"
If the user picks (a), emit a warning in the final summary noting reduced quality.
| Input type | What to read |
|---|---|
| Marketing brief | positioning, key messages, audience |
| Blog post | headline, narrative, examples |
| Changelog | highest-impact entry |
| PR | gh pr view <n> --json title,body,files,labels, diff (gh pr diff), commit messages, linked issues |
| Git refs | git diff <range> + git log <range> --oneline |
| Codebase path | read the specified files/directories |
| Freeform | parse the user's description |
For PRs with 20+ files, filter to user-facing changes only — skip tests/, ci/, .github/, lockfile changes, dep bumps.
Error handling:
gh not available → tell the user, ask for an alternative (diff file, freeform description)When the input is a PR, the brief table in Step 1.2 is not enough. PR bodies are routinely vague, outdated, or focused on implementation rather than user value, and a video built off the body alone tends to overclaim or miss the headline angle entirely. Before continuing to Step 1.3, run this structured analysis and produce a written PR analysis block that becomes the source of truth for Steps 1.4 (scope confirmation), Q2.1 (duration ladder), and Phase 3 (narrative planning).
Mandatory steps — do all of them:
Pull metadata and identify the base branch.
gh pr view <n> --json number,title,body,baseRefName,headRefName,files,labels,commits,additions,deletions
Record baseRefName (usually main / master / develop) — that is the diff reference. gh pr diff <n> automatically compares the PR head against this base.
Pull the full diff against the base.
gh pr diff <n>
For very large PRs (>500 lines or >20 files), also list changed files via gh pr view <n> --json files.
Filter to user-facing surfaces. Ignore (do not let these shape the headline angle): tests/, __tests__/, *.test.*, *.spec.*, __mocks__/, ci/, .github/, lockfiles, dep bumps without behavior change, generated/build artifacts (dist/, build/, .next/), and formatting-only diffs. What remains is the user-facing surface of the PR.
Enumerate the public-API delta. From the filtered diff, list every change a user could observe or write code against:
exports (functions, types, components, hooks, classes, constants)Grep the diff for added lines beginning with export , new top-level function/class/const in src/ / lib/ / packages/*/src/, new files in those trees, and changes to public type signatures. If you cannot point at a line in the diff for a claimed API, the claim is wrong — drop it.
Enumerate the behavior delta. Beyond API surfaces, list user-visible behavior changes: UI elements added/changed (with file references), CLI / network output that looks different, side effects firing under new conditions, removed limitations, performance characteristics that changed.
Write the before / after value statement. Exactly two sentences, both grounded in concrete diff evidence:
The "had to" half must be a real prior workflow you can describe — copy-pasting an adapter from the docs, installing a second package, writing boilerplate, hitting an error, switching to a different tool. If the honest "Before" sentence is "they could already do this", the PR has no user-visible value delta — see step 8.
Cross-check the PR body against the diff. Walk the body's claims and the diff side-by-side:
[BLANK]? Infer from the diff; make the inferred angle explicit and confirm with the user at Step 1.4.Bail-out check: is this PR actually user-visible? If after steps 4–6 you cannot name a single new thing the user can do or observe, the PR is not video-worthy as a feature launch. Stop and ask the user:
"This PR looks like an internal refactor / test-only / dep-bump PR — I can't find a user-visible value delta. Options: a) shift to a performance / DX / cleanup angle if numbers support it b) pick a different PR or input c) cancel"
Do not invent a feature angle to fill the gap. A confabulated angle wastes a full iteration round and destroys user trust on the very first draft.
Produce the PR analysis block. Write the result as a short structured block before continuing to Step 1.3. This block — not the PR body — is the source of truth for everything downstream:
PR analysis — #1234 "Add fromZodSchema support"
Base: main · Head: feature/zod-schema · Author: <login>
User-facing files: 3 (packages/core/src/index.ts, packages/core/src/zod.ts, packages/core/src/types.ts)
Filtered out: 5 test files, 2 doc files, lockfile
Public-API delta:
+ export function fromZodSchema(schema: ZodSchema): StandardSchema
+ export type ZodCompatibleSchema
~ default error code for ZodError changed: 'invalid_type' → 'STANDARD/type'
Behavior delta:
- Users importing zod schemas no longer need a manual adapter.
- Error messages from zod paths now use the StandardError shape.
Before / after:
Before: copy a 15-line adapter from the docs into every project that mixes zod with this library.
After: one import + one call.
Surprises (in diff but not in PR body):
- Default error shape change (above) — could be the headline angle for migration-aware audiences.
Headline angle: "drop the 15-line adapter — one import, one call"
Scope band for Q2.1: one idea (15–25s)
The "Headline angle" line feeds Phase 3.0's motif derivation and Phase 3.3's hook copy. The "Scope band" line feeds Q2.1's scope-derived duration proposal.
Forbidden shortcuts (each is a fast path to a wrong video):
For git-ref-range and codebase-path inputs, apply the same structure with the diff coming from git diff <range> / direct file reads in place of gh pr diff. Steps 4–9 (public-API delta → analysis block) are not PR-specific.
Read if they exist: README.md, docs/, package.json. If nothing found, ask: "Can you briefly describe the product and who it's for?"
For PR inputs, the bullets and the compelling angle below must be derived from the PR analysis block written in Step 1.2a — not from the PR title or body. Quote the "Headline angle" line directly as the proposed story seed; turn the public-API delta and the before/after statement into the bullets. If the user added clarifying context after Step 1.2a, fold it in here.
For non-PR inputs, derive the bullets from the relevant entry in Step 1.2 (marketing brief positioning, blog headline, changelog highlight, codebase reading, freeform description).
Present:
"Here's what I'll base the video on:
- [feature summary bullet 1 — concrete, grounded in the diff / source]
- [feature summary bullet 2 — the before → after value, in one line]
The compelling angle: [proposed story seed — for PRs, the "Headline angle" from the analysis block]
Anything to add, remove, or correct?"
Do not proceed until the user confirms.
Before continuing, scan for: security patches, internal pricing, credentials, unreleased roadmap items, content marked confidential. Flag anything questionable to the user.
Ask these questions one at a time, in order.
Do not ask the user to pick a fixed length from a menu. A fixed number becomes a constraint, and the dominant failure mode is padding — freeze-frames, repeated beats, black or empty trailing frames, or filler bullets added solely to reach the chosen target. Instead, derive a duration from the scope of the change and present it as a proposal the user can confirm or override.
Allowed range: 15–60 seconds. Anything outside this window is wrong by default. Going under 15s means the story can't breathe; going over 60s means it's two videos.
Scope → duration ladder:
| Scope of the PR / feature | Distinct payoff beats | Target |
|---|---|---|
| One idea (single API addition, single bug fix, one QoL win) | hook + 1 delivery + CTA | 15–25s |
| Typical PR-sized feature (problem → solution → proof, or a multi-chapter code walk) | hook + 2–3 delivery + CTA | 25–40s |
| Multi-faceted release (multiple distinct sub-features, or comparison needing problem + solution + proof beats) | hook + 3–4 delivery + CTA | 40–60s |
A distinct payoff beat is one new thing the viewer learns. Two scenes whose payoff sentences (see Phase 3.3 item 1) reduce to the same idea are one beat, not two.
Sanity check before proposing — do this silently first:
Propose to the user (no menu, no fixed lengths):
"Based on the scope of this PR, I'm targeting ~Xs (range Ys–Zs). Beats: . Confirm, or override with a different length anywhere in 15–60s."
Hard rule — story sets duration, never the other way around. If at any later phase a scene needs to be stretched, held on a static frame, repeated, backed by black/empty frames, or filled with filler bullets to reach the chosen target — stop, shorten the target, re-confirm with the user, and ship the shorter video. Padding to hit a number is the single behavior this rule exists to forbid. If a 30s scope honestly tells in 18s, ship 18s.
Breathing-room constraint. Whatever duration is chosen, it must allow every on-screen text element to (a) finish animating in, (b) dwell long enough to be read, and (c) settle for at least ~0.4s before the next scene begins. Cutting to a new scene the instant a line of text finishes appearing is forbidden. See Phase 3.3 (item 3) and the Phase 6 audit for the concrete dwell-time table.
"Which aspect ratio?
- 16:9 landscape (1920×1080, default) — desktop X/LinkedIn
- 1:1 square (1080×1080) — mobile-friendly feed
- 9:16 vertical (1080×1920) — Reels/Shorts/TikTok
- Multi-format — render all three from the same story"
Frame rate is fixed at 30fps. The audit thresholds throughout this skill are expressed in absolute frame counts assuming 30fps; do NOT change fps in remotion.config.ts without simultaneously updating every frame-based threshold (Phase 6 pre-render audit, the dwell-time table, the breathing-room rules, chapters-required threshold).
"Where should the Remotion project live? Default:
marketing/<feature-slug>/remotion/(fresh per-video) Override: specify a path."
You MUST run the heuristics in brand-detection.md against the actual target repository — the source code that owns the feature, not the marketing/ output directory — before selecting any color, font, or logo.
Forbidden shortcuts (these produce wrong colors and waste an iteration):
The scan must produce a written record before any composition file is written. Output a short block listing, for each field: the source file checked, the value found (or not found), and the final value used. Example:
Brand scan — TanStack/ai
Primary : checked tailwind.config.* (none) · packages/*/styles.css (--brand: #0a3d2e) → #0a3d2e
Accent : checked theme.json (none) · brand.json (none) · derived from primary → #14b870
Logo : checked public/logo.svg → public/logo.svg (will be referenced from src/brand.ts)
Font : checked next/font (none) · @fontsource (none) · README ref → Inter (fallback)
If the scan finds nothing for a field, fall through to the neutral defaults below — but only after the scan ran and is recorded. Skipping the scan and going straight to defaults is the failure mode this gate exists to prevent.
If you cannot find a logo, ask the user — do NOT invent one. The same rule applies to any field where detection genuinely turned up nothing and no sensible neutral default exists.
The following are non-negotiable regardless of "no questions" mode:
marketing/<feature-slug>/remotion/ path or override)In interactive mode, present findings (the block above) and ask for confirmation. In non-interactive / "use sane defaults" mode, print the same block and proceed without asking — the record is required either way.
Present findings as:
"I found:
- Logo:
public/logo.svg- Primary:
#0066ff(fromtailwind.config.js)- Font:
Inter(fromnext/font)Use these, customize some, or provide your own?"
Persistence: write chosen brand to marketing/<feature-slug>/remotion/.marketing/brand.json (mirrors the hyperframes-video location). On subsequent runs, ask:
"I loaded brand settings from
marketing/<feature-slug>/remotion/.marketing/brand.json. Use saved, or re-detect?"
Fallback when nothing detected: ask explicitly with these neutral defaults. These are intentionally neutral — auto-detection of the project's actual brand is always preferred, and these values should only appear when detection turns up nothing.
#3B82F6 (neutral blue)#8B5CF6 (neutral violet)#0A0A0A (near-black, dark mode)#FFFFFF (white)#9CA3AF#22C55E#EF4444Geist (loaded automatically via @remotion/google-fonts)Confirm with the user before scaffolding.
Note on fonts: The default scaffold loads Geist via @remotion/google-fonts and wires it into brand.font.family. To use a different Google Font, edit src/fonts.ts to import from a different @remotion/google-fonts/<Name> module. brand.font.googleFont is the display name used by the skill to decide which module to load. Non-Google fonts require manual wiring.
Before picking a story pattern, identify the signature visual motif that will carry the narrative across scenes. This is the single most important call for not looking generic.
references/visual-motifs.md — the catalog maps 20+ common verbs to motifs, state axes, and example custom elements. If the verb isn't listed, apply the heuristic in that file.Confirm with user:
"The core verb is compose music, so I'll use an animated waveform as the signature motif — smooth/clean in the hook and solution, jagged/red in the problem. This thread will appear in scenes 1, 2, and 4. Approve, pick a different motif, or let me propose alternatives?"
Do NOT skip this step. A video without a derived motif defaults to generic bullet-list storytelling and fails the generic test (Storytelling Rule 10).
Scan the PR/input for signals and pick one of 5 patterns. See the detection signals table in patterns/README.md — that file is the single source of truth.
Load the matching pattern spec from patterns/<pattern>.md.
Confirm with user:
"This looks like an [API/Library feature] PR. I'll use that story template. Override? Options: api-library / ui / performance / bugfix / generic / describe a custom pattern"
Per pattern:
Offer user override:
"For code snippets, I'll synthesize realistic usage examples rather than paste raw diff. Override: use-diff / synthesize / mix"
Before synthesizing usage code for a PR, verify the library's actual public API. Do not invent method names, argument shapes, or import paths.
For each snippet the skill plans to include:
packages/<name>/src/index.ts, docs examples in docs/, test fixtures in tests/).If the library isn't available locally and the skill can't verify, ask the user before synthesizing. A wrong API in the first draft destroys user trust and wastes a full iteration round.
This step has two parts: a silent self-improvement loop that you run before the user sees anything, and the user-facing approval gate that follows.
Do not show the user the first thing you wrote. The first version of a scene plan is almost always weaker than the second. The agent's job here is to hand the user the strongest plan it can build given the rules in this skill, not the first draft.
After drafting an initial scene plan, run a deliberate improvement pass against the rule sections listed below. Iterate at least twice. Stop only when one full pass produces zero further changes — the draft has stabilized.
On every pass, for each scene and for the plan as a whole, ask: "Does this satisfy this rule? If not, can I rewrite, merge, drop, split, or reorder a scene to fix it?" Apply the fix in-place, then continue the pass.
The five Core checks below must be satisfied — every plan, no exceptions. On top of those, scan against the broader rule sections at the end of this step.
Core checks (every plan must satisfy all five):
Per-scene payoff: for each scene, write one sentence of the form "The new thing a viewer knows at the end of this scene is ___." If two scenes produce the same sentence, one is redundant — merge or cut. If a scene's sentence is vague (e.g., "the product is good"), the scene is filler — redesign.
Pacing variance: scene durations must reflect cognitive load, not a uniform slice. Reference shape for a 30s target — scale proportionally for shorter (15–25s) or longer (40–60s) videos:
Reject plans where the shortest and longest scene differ by less than ~2×. Equal-slice plans are the single strongest "AI-generated" tell. Reject plans where the CTA is under 4s — a rushed CTA destroys the conversion the rest of the video bought.
Breathing room (no rush-cuts on text): a scene must not transition out while a text element is still being read. Minimum on-screen dwell time, measured from the moment the element finishes animating in to the moment the scene begins transitioning out:
| Element | Minimum dwell |
|---|---|
| Short headline / one phrase (≤6 words) | ≥ 1.5s (≥45 frames at 30fps) |
| Long headline / single sentence (7–14 words) | ≥ 2.5s (≥75 frames) |
| Two-line text / short paragraph (15–30 words) | ≥ 3.5s (≥105 frames) |
| Code chapter (per chapter, after focus lands) | ≥ 3s (≥90 frames) |
| CTA URL / handle (must be clearly readable) | ≥ 3s (≥90 frames) |
Every scene must also include a ~0.4s settle hold (≥12 frames at 30fps) between the last animation completing and the scene transitioning out. Cutting on the same frame an animation finishes is forbidden — the eye needs a beat to confirm what it saw, and transitions that arrive on the resolve-frame feel cluttered and amateur. If the proposed durationFrames cannot accommodate these minima, shorten the beat list, do not shrink the dwell times.
Value prop by ~t=8s (or by ~25–30% of total duration, whichever is earlier): by the end of scene 2, the viewer must know what the feature does, who it's for, and why it matters. If that's not true with the current plan, restructure before scaffolding. Do NOT bury the value in the delivery scene.
Motif presence and state-change: the signature motif chosen in Phase 3.0 must appear in at least 2 scenes (typically 3: hook + problem + CTA) and visibly change state between at least one adjacent pair (e.g., clean → glitchy → clean again).
Broader rule sections to scan on every improvement pass. Search this file (or the linked file) for each section heading and walk it against the current draft:
hooks/hook-rules.md) — applied to the HookTitle scene. If it fails any check, rewrite the headline; don't just record the failure./*…*/, pre-break long imports.patterns/<pattern>.md) — the scene sequence and payoffs should be coherent with the template; deviations must have a clear justification.Improvements you may apply silently during the loop (no user question needed):
durationFrames to satisfy pacing variance and breathing-room minima — only by trimming, never by stretching or paddingChanges that must wait for the user — flag them, do not apply silently:
Stop condition. End the loop when one full pass over all rule sections (Core checks + broader sections) produces zero changes. If you hit five passes without stabilizing, you have a structural problem the loop can't fix — stop and ask the user for guidance instead of churning.
When presenting to the user, include a brief "Self-review notes" line near the top of the response so the user can see the improvement work was actually done. List the 2–5 most material changes the loop applied. Example:
Self-review notes: tightened the hook line from "Add validation easily" to "Swap validation libs with one line"; merged a redundant "why it matters" scene into the problem setup; trimmed delivery 14s → 11s so the CTA dwells ≥4s.
If the loop produced no material changes (rare — usually means the first draft was already strong, or the agent isn't pushing hard enough), say so explicitly: "Self-review notes: draft was stable on first pass; no rewrites needed."
Example output:
"Here's the plan (30s target):
- HookTitle (0–3s, 90f) —
"Swap validation libs with one line"— payoff: there's one line that replaces N SDKs- ProblemSetup (3–8s, 150f) — three evidence cards with concrete conflicting API shapes — payoff: viewer sees the real API-shape conflict they live with today
- LibrarySwap (8–22s, 420f) — shared Standard Schema code, import line cycles zod → valibot → arktype — payoff: viewer sees the "one line change" literally happen on screen
- CTAEndScreen (22–30s, 240f) —
"Ship it"+ link to standardschema.dev — payoff: viewer knows exactly where to go nextPacing: hook 3s / problem 5s / delivery 14s / CTA 8s (ratio ~4.7×) — passes variance check. Motif: schema-interop glyph (interlocking rings) appears in scenes 1, 2, 4; rings are disconnected in scene 2, unified in 1 and 4.
Approve or adjust any section?"
Do not scaffold until the user approves the scene plan.
See patterns/README.md for how patterns map to scene plans.
Hard cuts between scenes are acceptable; match-cuts are what make a video feel crafted. When the signature motif (Phase 3.0) appears in adjacent scenes, the motif must carry over as a match-cut, not restart from zero.
Rules:
SceneBackground variant must change between adjacent scenes (no two adjacent scenes share a variant). This is enforced at pre-render.Write the planned transitions into the scene plan before scaffolding:
Transition 1→2: waveform carries over at the same position; color fades from brand.primary → brand.danger; amplitude jitters from smooth to glitchy over 8 frames. Transition 2→3: glitch waveform contracts into a flat line → that line becomes the top border of the code card in scene 3. Transition 3→4: active-provider pill in scene 3 slides down and morphs into the URL pill of the CTA.
If the feature has a visible UI surface — a generated image, a rendered audio player, a dashboard, a settings toggle, a diff view — the video must include at least one beat that shows that surface. Research on product-launch video is consistent: "show the product in action" is the strongest single predictor of viewer recall.
Options (in order of preference):
<Video src={...}/> in a Custom scene.Place the UI moment in the delivery scene (Scene 3 in the default structure), ideally at its midpoint so the viewer gets code-plus-result. A code-only delivery feels like a reference doc; code-plus-UI feels like a demo.
Skip this step only if the feature is purely API-level with no user-visible surface (a parser, a compiler pass, a type-level utility).
When the user picked option 4 (Multi-format) in Q2.2, the skill must plan per-aspect narrative variants — a 9:16 vertical video is not just a cropped 16:9.
The most common failure mode when porting a 16:9 layout to 1:1 or 9:16: the agent keeps the original element sizes, only changes Composition width and height, and ships a video where content occupies ~50% of the new canvas with huge dead margins on top/bottom (vertical) or sides (square).
The right move is the opposite of intuition: when the canvas gets smaller in one axis, the content's per-element size needs to get bigger, not smaller. Less competing content = each element earns more visual space.
Concrete defaults when porting from 1920×1080 (landscape) to other aspects:
Stack-style flex gap of 56px on landscape becomes ~80px on 9:16. Whitespace is doing brand work — keep it generous.Implementation pattern in Remotion: read the current aspect from useVideoConfig() (or a context) inside each scene/Panel and switch sizing values via a small byAspect({ landscape, square, vertical }) helper, instead of hardcoding pixel sizes. The same Story data drives all three compositions; only the per-aspect sizing layer differs.
Run the fill check mentally before rendering and as a hard pre-render audit:
At the hero frame (peak content) of every scene at every aspect, the bounding box of the foreground content reaches within ~80–100px of every canvas edge. If any scene at any aspect has more than ~120px of dead margin on either axis, the per-aspect sizing is wrong — the content is undersized.
If you're tempted to keep all the landscape sizes "since they look fine on landscape" — stop. They look fine on landscape because they fill landscape. They will not fill a different aspect at the same sizes.
BeforeAfter, multi-pill pill rows, and wide LibrarySwap layouts must switch to stacked (top/bottom) or single-item-at-a-time layouts on 9:16. Mark these scenes with an aspectOverrides hint during scene planning, and branch the JSX in the scene component on useVideoConfig().width / height ratio.tanstack.com/ai instead of https://tanstack.com/ai/audio-generation) for 9:16.Write the per-aspect deltas into the scene plan as a short section, even if most scenes render identically. Example:
9:16 deltas: Scene 3
LibrarySwapstacks the code card above the provider pills (same content, vertical flow). Headline 132px → 144px (kept large). Padding 32px → 200px top/bottom. Code font 18px → 18px (held). Total duration shaved to 26s (hook 2.5s / problem 4s / delivery 12s / CTA 7.5s).
Skip this step if the user picked a single aspect.
(Caption emphasis syntax, text alignment, background variants, and code-block theming are governed by the Layout and Typography Rules section below.)
At the location chosen in Q2.3 (default marketing/<feature-slug>/remotion/):
<project-root>/
├── package.json
├── tsconfig.json
├── remotion.config.ts
├── src/
│ ├── index.ts # Entry point: registerRoot + font side-effect
│ ├── Root.tsx # Composition registry
│ ├── Main.tsx # Scene dispatcher
│ ├── story.ts # Typed story JSON (written by skill from scene plan)
│ ├── story-types.ts # Scene union type (source of truth)
│ ├── brand.ts # Brand tokens (extended palette: primary/accent/background/text/muted/success/danger)
│ ├── fonts.ts # Loads Geist via @remotion/google-fonts — default font
│ ├── highlight.tsx # <Highlight text="**word**" /> component for caption emphasis
│ ├── highlighted-code.tsx # Shiki-based code highlighter
│ ├── scenes/ # Copied from templates/scenes/
│ └── assets/ # Copied logo, intro/outro if any
Copy files from skills/remotion-video/templates/project/ (stripping the .template suffix):
package.json.template → package.jsontsconfig.json.template → tsconfig.jsonremotion.config.ts.template → remotion.config.tsindex.ts.template → src/index.ts (entry point — calls registerRoot and imports ./fonts for side-effect)Root.tsx.template → src/Root.tsxbrand.ts.template → src/brand.ts (then populate with Q2.4 values)story-types.ts.template → src/story-types.ts (scene union type — single source of truth)fonts.ts.template → src/fonts.ts (loads Geist by default via @remotion/google-fonts/Geist)highlight.tsx.template → src/highlight.tsx (text emphasis helper — renders **word** in primary color)shiki-theme.ts.template → src/shiki-theme.ts (brand-derived Shiki theme — keywords in primary, strings in accent, comments in muted, background transparent)highlighted-code.tsx.template → src/highlighted-code.tsx (wraps shiki for Remotion async frame capture; defaults to brandShikiTheme)scene-background.tsx.template → src/scene-background.tsx (brand-tinted scene wrapper — every scene uses this)Main.tsx.template → src/Main.tsx (scene dispatcher)Copy all .tsx files from skills/remotion-video/templates/scenes/ into <project-root>/src/scenes/.
Detect package manager from lockfile (pnpm-lock.yaml → pnpm, bun.lockb → bun, yarn.lock → yarn, package-lock.json → npm). Install:
remotion @remotion/cli @remotion/google-fonts shiki react react-dom typescript @types/react @types/react-dom @types/node
Example (pnpm):
pnpm --dir marketing/<feature-slug>/remotion install
story.tsPopulate from the approved scene plan. The Story and Scene types are defined in src/story-types.ts (copied from templates/project/story-types.ts.template). See that file for the full type definitions.
src/Main.tsx for Custom scenesThe skill copies Main.tsx.template → src/Main.tsx in Step 4.1. That base file dispatches all 9 bundled scene types. Whenever a story plan uses a Custom scene, the skill must extend the renderScene switch in src/Main.tsx: add the import for the custom component and a case for its componentName that renders it with its props (instead of throwing). The base template throws on Custom so missing dispatch is loud, not silent.
UIShowcase note: When a UIShowcase scene references a mockComponent (instead of or in addition to mediaSrc), the skill must extend the UIShowcase dispatch case in Main.tsx to resolve the component name to an actual React element and pass it as the mockComponentNode prop. The default dispatch only handles mediaSrc (image/video files). Mock-component UI mocks follow the same "skill extends the switch" pattern as Custom scenes.
When the user picked option 4 (Multi-format) in Q2.2, the skill modifies src/Root.tsx to register three compositions instead of one, each passing the same Main component with a different width/height:
MainLandscape — 1920×1080MainSquare — 1080×1080MainVertical — 1080×1920All three share the same durationInFrames and fps from story.meta. The base Root.tsx.template ships with a single Main composition by default; the skill replaces that block with the three-composition block when multi-format is selected.
When the story plan calls for a scene shape the 9 bundled templates can't express, generate a custom scene under src/scenes/custom/<Name>.tsx.
Rules (enforced by the skill):
remotion, shiki, react, ../../highlighted-code, ../../scene-background, and ../../brandtsc --noEmit) before render — skill runs typecheck and self-corrects up to 2 times on failureinterpolate / spring for animations (no setTimeout, no external animation libs)durationFrames from its Scene entrysrc/Root.tsx alongside the bundled scenesUse remotion-best-practices skill when available for guidance. Fallback to baseline Remotion docs patterns.
Run as a background process, invoking the scaffolded project via --dir:
pnpm --dir marketing/<feature-slug>/remotion exec remotion studio --port 3000
(Fall back: try 3001, 3002, 3003 if 3000 is in use. Fail loud if all taken.)
Capture the URL and present to the user:
"Studio is running at http://localhost:3000. Open it in your browser and review the first draft.
What do you want to change? (freeform — 'make the hook punchier', 'swap scenes 2 and 3', 'use arktype instead of yup', 'drop the problem scene', 'longer pause on the code', anything you want.)"
Parse the user's request and decide which file to edit:
| Request kind | File to edit |
|---|---|
| Content / copy change | src/story.ts (scene's text, caption, code fields) |
| Timing / ordering change | src/story.ts (reorder array, update durationFrames) |
| Visual / animation tweak on a bundled scene | src/scenes/<Scene>.tsx |
| Novel visual request the library can't express | src/scenes/custom/<Name>.tsx (create new) + src/Root.tsx (register) + src/story.ts (reference with { type: "Custom", componentName: "<Name>", props: {...} }) |
| Brand change (colors, font, logo) | src/brand.ts |
After each edit:
pnpm exec tsc --noEmit silentlyRe-prompt:
"Saved. Studio should have refreshed. Next change, or ready to render?"
User signals "ready to render", "looks good", "ship it", "render", "done", or similar → move to Phase 6.
Each iteration stores a snapshot of src/story.ts content in an in-memory session history. If the iteration loop hits 10 rounds without approval:
"We've iterated 10 times. Options:
- Reset to an earlier draft (I'll show the history)
- Keep going
- Render the current draft as-is"
If the user picks (1), show a numbered list of snapshot summaries (hook text of each draft) and let them pick.
The Studio preview is pristine; the render pipeline must preserve that. Two structural problems ruin h264 output of otherwise-perfect React scenes:
Chroma subsampling (YUV 4:2:0) halves color resolution. Pink text
on dark backgrounds, thin colored lines, and subpixel anti-aliasing get
blurred. The fix is supersampling: render at 2x composition
dimensions (--scale 2) so ffmpeg downsamples from a sharper source.
8-bit quantization gives only 256 luminance steps — gradients band.
The fix must be at the source, not at the codec: SceneBackground
ships a subtle SVG noise overlay (NoiseDither) that dithers the
quantization below perception. 8-bit h264 encoding is the only format
that plays reliably across Windows 11 Films & TV, Discord, browsers,
VLC, and social upload pipelines. Do NOT default to 10-bit
(yuv420p10le) — consumer GPU decoders often skip h264 high10 without
falling back to software, producing black frames on Win11/Discord.
Defaults ship: --scale 2 + --image-format png + --crf 14 +
--pixel-format yuv420p. A 30-40s 1080p video lands around 6-15 MB.
Edge case — 10-bit opt-in: the render:10bit npm script exists for
creators who verified their end-to-end pipeline supports h264 high10
profile (e.g., shipping to a known YouTube upload that always transcodes,
or to a target audience on mpv/VLC only). Never use as a default.
Never render with --image-format jpeg for a final. The JPEG
quality-80 intermediate blurs text independently of anything else.
How NoiseDither works: an overlay layer inside SceneBackground
renders an SVG feTurbulence fractalNoise filter at ~4% opacity in
overlay blend mode. The noise breaks up the 8-bit gradient-quantization
step boundaries perceptually, turning visible bands into faint grain.
This is the same technique Figma and export pipelines use.
Before rendering, all of these must pass. If any fail, report exactly what and where, and do not render.
Technical checks:
pnpm exec tsc --noEmit passesscenes[].durationFrames / meta.fps is within the 15–60s window AND within ±20% of the scope-derived target proposed in Q2.1 (or matches an explicit user override). If the natural story comes in shorter than the proposed target, the target was wrong — re-derive from scope, do not pad.durationFrames endcode renders without shiki errors (test by invoking the shiki highlighter on each snippet)src/brand.ts exists on disk--scale 2 --pixel-format yuv420p (or remotion.config.ts sets both). 10-bit (yuv420p10le) is opt-in only; it breaks Win11 Films & TV and Discord inline playback.Storytelling audit (refuse to render if any fail — report to user and ask for a fix before proceeding):
hooks/hook-rules.md) pass on the HookTitle scene's textsrc/scenes/)max(scene.durationFrames) / min(scene.durationFrames) ≥ 2.0. Uniform-duration plans refuse to render.0.30 × total duration. If more than 30% of the video elapses before scene 3 begins, the value prop is buried.SceneBackground variants (prevents the "same color for 15 seconds" flatness)zIndex declaration. Verify any newly-added decorations against the rendered hero frame in Remotion Studio, not frame 0. See Layout Rule 7.chapters[]. Static emphasizedLines-only code dumps fail this check. See Code Scene Rules — Tell a story with chapters.chapters[] MUST have a per-chapter caption / title that swaps in lockstep with the focusLines change. A code highlight without a synchronized title saying why we're looking at it fails this check. See Code Scene Rules — Synchronized chapter narration.Stop the Remotion Studio background process first.
For a single-aspect video:
pnpm --dir marketing/<feature-slug>/remotion exec remotion render src/index.ts Main out/video.mp4 --codec h264 --crf 14 --image-format png --pixel-format yuv420p --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion still src/index.ts Main out/poster.jpg --frame 0 --image-format png --scale 2
For multi-format (user picked 4 in Q2.2), render each composition:
pnpm --dir marketing/<feature-slug>/remotion exec remotion render src/index.ts MainLandscape out/video-landscape.mp4 --codec h264 --crf 14 --image-format png --pixel-format yuv420p --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion still src/index.ts MainLandscape out/poster-landscape.jpg --frame 0 --image-format png --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion render src/index.ts MainSquare out/video-square.mp4 --codec h264 --crf 14 --image-format png --pixel-format yuv420p --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion still src/index.ts MainSquare out/poster-square.jpg --frame 0 --image-format png --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion render src/index.ts MainVertical out/video-vertical.mp4 --codec h264 --crf 14 --image-format png --pixel-format yuv420p --scale 2
pnpm --dir marketing/<feature-slug>/remotion exec remotion still src/index.ts MainVertical out/poster-vertical.jpg --frame 0 --image-format png --scale 2
Move artifacts from <project>/out/ to marketing/<feature-slug>/:
video.mp4 (or per-aspect files)poster.jpg (or per-aspect files)✓ Rendered: marketing/<feature-slug>/video.mp4 (30s, 16:9, <size>)
✓ Poster: marketing/<feature-slug>/poster.jpg
Ask the user what to do with the scaffolded Remotion project:
"Video is ready. What do you want to do with the Remotion project at
marketing/<feature-slug>/remotion/?
- Keep it — useful for re-rendering or variants later
- Delete it — keep only the mp4 and poster
- Archive — move to
marketing/<feature-slug>/remotion.zipand delete the folder"
Execute the chosen action. End.
The default failure mode of an AI-generated promo video is generic: a hook, three bullet points, a code block, a CTA. Every scene stacked vertically, same rhythm, same layout language as ten thousand other "new feature launch" reels. Viewers scroll past in under 2 seconds. Technically correct ≠ memorable.
These rules exist to push back against that default.
A vertical stack of bullet points with icons is the most overused and forgettable scene shape in dev-marketing video. When the story asks for a "list of pains / benefits / reasons", the skill MUST transform the list into a structure that visualizes what it's saying:
≠, ↯).Every beat should ideally have a form that only makes sense for that beat. If the same bullet shape could hold "our five pillars of happiness" or "three reasons our API is fast", it is too generic — redesign it.
Every promo video should have one recurring visual element tied to the subject matter — a "thread" that appears in 2–4 scenes (typically hook, problem, and CTA) and carries the theme.
The motif is derived in Phase 3.0 from the product's core verb. See references/visual-motifs.md for the full catalog (20+ verb → motif mappings) and the heuristic for deriving a motif when the verb isn't listed.
Key principles (full detail in the catalog):
When scaffolding, create a reusable component (e.g., src/audio-waveform.tsx, src/speed-streak.tsx, src/packet-flow.tsx) in the project root and import it into each relevant scene. Never rebuild the thread scene-by-scene.
The 9 bundled scenes (HookTitle, ProblemSetup, CodeSnippet, LibrarySwap, BeforeAfter, MetricCompare, BulletList, CTAEndScreen, UIShowcase) cover ~80% of cases and should be used when the story fits. They should NOT be the excuse for a lazy story.
If a beat's visual shape would be unique and memorable, create a Custom scene under src/scenes/custom/<Name>.tsx rather than bending a bundled scene into something it isn't. Examples that warrant Custom scenes:
The rule of thumb: if your first instinct is "I'll just use BulletList" and the content is interesting, stop. Either upgrade to a Custom scene or upgrade the bundled scene's internal storytelling (tilts, connection glyphs, staggered physics, per-item glyph variation).
Inside any scene that describes a pain or a benefit, prefer real, verifiable detail over abstract claims. This makes the video technically credible and visually unique because the evidence IS the design element.
| Abstract (generic) | Concrete (unique + credible) |
|---|---|
| "Every provider is different" | music_length_ms vs seconds_total vs duration shown side-by-side |
| "Our SDK is type-safe" | A screenshot-like TS diagnostic with red squiggles on the bad line |
| "10× faster" | Two progress bars racing, finishing at t=500ms and t=50ms |
| "Works anywhere" | Animated pills of the supported runtimes lighting up in sequence |
When pulling evidence from a PR or codebase, quote the actual symbol names, parameter names, or model ids that appear in the source. If a viewer who uses those libraries recognizes the exact string you're showing, you've won credibility and memorability in the same frame.
Every animation should deliver information, not just "look animated". If removing an animation would not change what the viewer understands, it is decoration and should be reconsidered.
Good:
Bad:
After any multi-beat scene (evidence wall, problem pile-up, comparison), the viewer needs a one-line synthesis to carry forward. Reserve the last 25–35% of a scene's duration for a fly-in tagline that states the insight:
The tagline should:
This is the single biggest lever for turning "nice visual" into "actually communicates a point".
Research on high-performing kinetic typography and motion graphics is consistent: text moves only when motion adds clarity, never because there's a 3-second hole to fill. Motion without a payload is the single biggest "looks AI-generated" tell.
Good motion choices:
Bad motion choices (generic):
Counter-expectation is underused: when the default register is fast-and-loud, going still-and-soft for one beat can land harder than any spring animation. If the surrounding scenes are busy, let the insight tagline (see Rule 6) sit dead-still for 1.5 seconds.
The brand palette is static; a color script is the scene-to-scene emotional arc layered on top. Individual scenes should feel different from each other along a temperature or saturation dimension:
SceneBackground variant="primary-glow")variant="vignette" with a danger-colored overlay or glitch accent)variant="diagonal")variant="primary-glow" again)The arc should support the narrative ("confident → tense → resolved"). A problem scene that uses the same warm glow as the hook robs the narrative of its tension beat. A CTA that stays cool/red reads as unresolved.
Implementation: the existing SceneBackground variants are the lightweight color-script surface. For a more cinematic arc, nudge the hexToRgba alphas, add a brand.colors.danger-tinted overlay in Problem scenes, or add a subtle saturation boost in the CTA.
By the ~10-second mark, the viewer must know (a) what this feature does, (b) who it's for, (c) why it matters. This is a research finding from every major product-launch-video study: the single strongest predictor of completion rate is value clarity before the ~10s mark.
Mapping to the standard 30s structure:
During Phase 3.3 (scene-plan approval), explicitly self-check: "By the end of scene 2 (around t=8s), does the viewer know what the product does and why?" If no, the scene plan is wrong — restructure before scaffolding. Don't bury the value in the LibrarySwap.
Before rendering, run this self-check against every scene. If the answer to ANY is "no", the scene is generic and should be redesigned:
If a scene fails the test, the fix is rarely "change the copy". It's a layout or visual-element change: add a signature thread appearance, introduce a domain-specific glyph, replace a bullet with a concrete evidence card, pull a real symbol name from the source.
Hard rules applied whenever the skill writes or edits HookTitle scene text. See hooks/hook-rules.md and hooks/hook-patterns.md for details.
hooks/hook-rules.md (Rule 2).hooks/hook-patterns.md)visual field (pattern-interrupt / curiosity-gap / social-proof) must align with the text (checked at scene-plan approval in Phase 3.3)If any rule fails, the skill proposes up to 3 alternative hooks that comply.
Applied whenever the skill generates or edits any scene.
Backgrounds: every scene uses <SceneBackground variant="…">. Flat background fills are banned — if a scene absolutely needs one, document why in a code comment and pass variant="flat" explicitly. Variants: primary-glow (radial glow of the brand primary at top-left), vignette (dark vignette around the edges for focus scenes), diagonal (subtle accent→primary linear gradient), flat (no overlay).
Text alignment — pick ONE per scene, never mix. A single scene must use ONE text alignment for every text element it contains. Mixing alignments inside a scene (e.g., left-aligned headline + centered tagline + left-aligned caption) reads as broken — the eye has no anchor to track and the layout looks like assembled fragments rather than a designed scene.
In two-column scenes (left = code, right = trace tree, or before/after panels), each column is its own alignment context, but each column must be internally consistent — a column's caption, body, and tagline all share one alignment. Never have the right column centered while the left column is left-aligned. The pre-render audit (Phase 6.1) flags scenes with mixed alignments inside one column.
Emphasis: in any text, caption, headline, or other string field passed to a scene, wrap key words in **word** so <Highlight> renders them in brand.colors.primary. Limit 1–2 emphasized runs per caption. Example: "Mix providers wrong — **ship a landmine**."
Code blocks: always render with <HighlightedCode>. The default theme is brandShikiTheme (from src/shiki-theme.ts) — a theme derived from brand.ts colors so syntax tokens match the rest of the presentation (keywords in brand.primary, strings in brand.accent, comments in brand.muted, background transparent). Do NOT fall back to vitesse-dark, github-dark, or any other stock theme unless the brand is explicitly monochrome. If the brand palette shifts, regenerate — never hardcode #0d1117 or any GitHub-dark-derived color. Container background = rgba(255,255,255,0.04) with 1px solid rgba(255,255,255,0.08) border and a brand-primary-tinted boxShadow.
Spacing rhythm — harmony, not extremes: follow a single consistent scale across every scene so the eye doesn't have to relearn the layout. Defaults that work:
If a layout feels "too airy", the gap is probably ≥120px between peers — tighten to the 40–56px band. If a title feels "stuck to" what's below, the gap is ≤48px — push to 72+. When in doubt, pick ONE scale and use it everywhere; inconsistent gaps look more "generic AI slideshow" than any single choice.
Background-versus-foreground readability — load-bearing contrast. Whenever decorative elements sit behind a focal text element (streaming background traces, ambient particles, low-opacity logos, looping motion threads), the foreground text MUST remain unambiguously readable. Defaults that work:
#0A0A0A. Above 0.25 it competes with foreground; above 0.4 it actively obscures.hexToRgba(brand.colors.background, 0.78) at the center, fading to transparent at ~70% radius) on a z-layer between the decoration and the text. Keeps decoration visible at the edges, keeps text on a clean dark base.Z-stack discipline — no unintended overlap. Every focal element (headline, code line, span row, attribute chip, CTA button) must be either fully visible or intentionally and obviously layered. The failure modes this rule exists to catch:
zIndex: 0; scrims/vignettes get zIndex: 1; foreground content gets zIndex: 2+. Stick to a known scale; don't sprinkle ad-hoc zIndex values.overflow: 'hidden' on the container) or constrain their travel distance to stay inside.Layout intent vs. layout accident: a logo deliberately framed behind a CTA URL pill is intentional (z-stack, transparency, designed). The same logo crashing into the URL pill at an unintended position is an accident. The pre-render audit (Phase 6.1) flags any focal element whose bounding box overlaps a non-foreground element by more than ~10% of its area without an explicit zIndex declaration.
These rules are grounded in established research on how the human visual system actually digests information: Cowan on working memory capacity, Treisman's Feature Integration Theory on pre-attentive processing, Nielsen Norman Group eye-tracking studies on scanning patterns, Gestalt principles of perceptual grouping, and Rayner's reading-saccade research. They explain why certain layouts feel intuitive and others feel like "AI-generated noise," and they are checked at scene-plan approval (Phase 3.3) and pre-render (Phase 6.1).
Visual working memory tops out at about 3–4 chunks (Cowan, refining Miller's 7±2). When a frame shows 5+ distinct elements (icons, cards, badges, numbers, captions, motifs), the viewer cannot hold them simultaneously — the eye samples 3–4 and drops the rest.
Pre-attentive processing (Treisman, Feature Integration Theory) detects color, motion, orientation, and size in parallel and unconsciously within ~200 ms. A single pre-attentive feature is found in constant time regardless of distractor count; conjunctions of features require slow serial attention.
Nielsen Norman Group eye-tracking studies identified four dominant scanning patterns. Match the scene's layout to the expected pattern; mismatches add ~0.5 s of parse time per scene (≈2% of a 30 s budget per misplacement).
Use perceptual grouping to encode relationships before the viewer reads any text. Done right, the layout is the message; done wrong, you need callout lines to explain what relates to what.
gen_ai.*.message event lands in its own bordered region.A reading fixation lasts ~200–300 ms; viewers make ~3–4 fixations per second; a typical reading saccade covers 7–9 letter spaces (Rayner). Video viewers do not backtrack — if a caption isn't readable in the time it's on screen, it gets skipped entirely.
Sudden motion in peripheral vision triggers the orienting response — the eye snaps toward it within ~150 ms involuntarily. This is the strongest attention pull in the entire visual system. It's also exhausting if abused.
Mandatory for any code beat ≥5 seconds (~150 frames at 30fps). A 15-line dump on screen with no progressive emphasis is the strongest "AI-generated reference doc" tell — the viewer's eye hunts for what to read first, can't find an anchor, and disengages. Code must be staged as a narrative arc the viewer can follow:
If the code beat is a single 15-line snapshot with no progression — no chapters[] on the scene, only static emphasizedLines — refuse the scene plan in Phase 3.3 and ask for a chapter breakdown before scaffolding.
Code scenes (CodeSnippet, BeforeAfter) walk the viewer through the code over time, not dump everything at once. Use the chapters array on the scene to sequence emphasis:
Non-focused lines dim to ~0.22 opacity with a slight blur; 700ms CSS transitions animate the change. On BeforeAfter, the non-focused panel additionally fades (to ~0.35 effective opacity), blurs 1.5px, and scales down slightly, via 600ms transitions.
Rules:
durationFrames should match the scene's durationFrames. Extra frames hold on the last chapter; missing frames truncate.caption for a per-beat narration. The caption cross-fades (300ms) when it changes.chapters is preferred over the static emphasizedLines for anything longer than ~3s.chapters[]. A static emphasizedLines is only acceptable for ≤3s flashes. The pre-render audit refuses to render code scenes longer than 5s without a chapter breakdown.A code highlight without a synchronized title is half a beat. The viewer sees something dimmed and something focused, but doesn't know whether the focused part is the new feature, the result, the bug being fixed, or the foundation everyone already has — so they can't reason about it.
Every chapter must include a synchronized narration line that swaps in lockstep with the focus change. The narration sits above the code (or in a fixed slot near it) and tells the viewer the verb of what's happening:
Implementation pattern (Remotion):
chapter object on the scene takes a caption (or title) string. Don't rely on the scene-level caption — chapters override per beat.<HeadingStack>-style component above the code card: a small wrapper that cross-fades between the active chapter's caption and the previous one. Drive it off useCurrentFrame() and the chapter timeline so the title transition is timeline-driven, not based on React re-renders.Authoring rules:
Pre-render audit: any chapter with focusLines (or equivalent active-line targeting) but no caption / title field fails the gate. Refuse to render chaptered code scenes without narration.
CodeSnippet (full width): lines up to ~75 chars fit comfortably at 36px.BeforeAfter (half width each): lines must stay under ~45–50 chars at 20px. Long imports and long JSX lines overflow at the original 28px — the template uses 20px with tighter padding (24) as the floor.import { webSearchTool }
from '@tanstack/ai-anthropic/tools'
BeforeAfter Panel ships with minWidth: 0 on the flex child and overflow: hidden on the code container as a safety net, but you should still keep lines short rather than relying on truncation.TypeScript diagnostic comments (// TS2322 ..., // ~~~~~~~~~~~~~, // TS2345 ...) are the visual punchline of "wrong provider" / "broken code" scenes. Any dark theme (the default brandShikiTheme, vitesse-dark, etc.) renders comments in a muted color, which destroys the signal.
Mark error lines in story.ts via side.errorLines on a BeforeAfter panel — the Panel automatically renders those lines in brand.colors.danger, overriding Shiki:
before: {
label: "Wrong provider",
language: "ts",
code: `...
// ~~~~~~~~~~~~~ TS2322
// Anthropic tool ≠ OpenAI adapter`,
errorLines: [9, 10],
},
Rule of thumb: any line whose comment starts with TS\d+, contains squiggle indicators (~~~~), or explains why the preceding line is wrong should be an error line.
The end-screen CTA is the last frame viewers see. It must match the deck's visual language — no outlier treatment.
<SceneBackground variant="primary-glow"> (same as most other scenes).brand.colors.text (white) with pink/primary <Highlight> accents on the key words.brand.colors.primary at large weight (160px, 900) with a textShadow glow derived from the primary — the primary is the star against the dark bg, not fighting a colored background.rgba(255,255,255,0.06)) + thin primary-tinted border (hexToRgba(primary, 0.5)) + subtle primary outer glow (boxShadow: 0 0 40px hexToRgba(primary, 0.2)).Video code is displayed at 20-36px on a static frame — not in an IDE with horizontal scroll. Format for that medium, not for what prettier would emit.
Rules:
Multi-line arrays when any element spans multiple lines. If an array element is itself a multi-line call or object literal, put each element on its own line with the brackets on their own lines:
// Bad — hard to parse at display size
tools: [webSearchTool({ name: 'web_search', type: 'web_search_20250305' })]
// Good — readable
tools: [
webSearchTool({
name: 'web_search',
type: 'web_search_20250305',
}),
]
Elide configs with /*…*/ when the config shape isn't the point of the scene. A video has ~2–4 seconds per chapter — don't spend those seconds on boilerplate:
// Good — highlights the tool, not its config
tools: [computerUseTool(/*…*/)]
Break long imports across lines in side-by-side scenes. At 20px font with ~50% of the slide width, imports longer than ~45 chars overflow. Pre-break them:
import { computerUseTool }
from '@tanstack/ai-anthropic/tools'
No trailing semicolons in captions that reference line numbers. Line numbers in chapters[].lines are 1-indexed over the raw template string — every newline matters for accurate line-number references.
For BeforeAfter scenes that show a compile error → fix, pick a comparison that teaches something non-obvious:
The compile error is the punchline; make sure the setup earns it. Look at the library's actual capabilities map (e.g., <Provider>ChatModelToolCapabilitiesByName) for real model/tool mismatches that exist in the current release — don't fabricate mismatches that wouldn't actually fire.
| Failure | Response |
|---|---|
gh CLI not available | Tell user, offer alternative input (diff file / freeform description) |
| Invalid PR or ref | Ask user to verify |
| Node / package manager not available | Fail loud, tell user what to install |
remotion-best-practices missing | Per Phase 1.1: offer (a) proceed, (b) install, (c) cancel |
| Typecheck fails after 2 self-correct attempts | Show the error, ask user to describe the fix in freeform, retry |
| Render crashes | Show Remotion's error; offer (a) retry, (b) simplify the failing scene, (c) abort |
| Port 3000 in use | Try 3001, 3002, 3003 in order; fail loud if all taken |
| Studio background process crashes mid-iteration | Restart once; if it crashes again, surface the error and ask user |
| Brand auto-detection finds nothing | Ask user explicitly with sensible defaults (see Phase 2.4 fallback block for the full primary/accent/background/text/font/logo list) |
| Entry point missing (studio fails with "No Remotion entrypoint was found") | Skill forgot to copy index.ts.template during scaffold — recopy from templates and retry |
| Font not rendering at runtime (text shows in fallback sans-serif) | src/fonts.ts wasn't imported for side-effect by src/index.ts — verify the import "./fonts" line is present |
.marketing/brand.json is the only shared state)README.md (opens in a new tab)brand-detection.md (opens in a new tab)hooks/hook-patterns.md (opens in a new tab)hooks/hook-rules.md (opens in a new tab)patterns/README.md (opens in a new tab)patterns/api-library-feature.md (opens in a new tab)patterns/bug-fix.md (opens in a new tab)patterns/generic-fallback.md (opens in a new tab)patterns/performance-win.md (opens in a new tab)patterns/ui-feature.md (opens in a new tab)references/visual-motifs.md (opens in a new tab)templates/project/Main.tsx.template (opens in a new tab)templates/project/Root.tsx.template (opens in a new tab)templates/project/brand.ts.template (opens in a new tab)templates/project/fonts.ts.template (opens in a new tab)templates/project/highlight.tsx.template (opens in a new tab)templates/project/highlighted-code.tsx.template (opens in a new tab)templates/project/index.ts.template (opens in a new tab)templates/project/package.json.template (opens in a new tab)templates/project/remotion.config.ts.template (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (alemtuzlak/skills) — no native marketplace selected
npx claudepluginhub p/alemtuzlak-alemtuzlak-skills41 skills in this plugin
/accessible-htmlUse whenever writing, editing, or reviewing markup or UI code — HTML, JSX/TSX, Vue/Svelte/Angular templates, web components, email HTML, or CSS that affects text size, color, focus, motion, layout order, or hit area. Also use when adding a button, link, form, input, modal, dropdown, menu, tabs, tooltip, toast, icon, image, iframe, table, list, keyboard shortcut, drag interaction, or any click handler; when a design has to become code; and when the user says "accessibility", "a11y", "WCAG", "screen reader", "keyboard navigation", "focus", "aria", "contrast", "alt text", or "axe"./amazing-videoUse only when the user runs /amazing-video or names the amazing-video skill. The text after the command is the video topic, such as a PR, a feature, or an API./Other plugins' skills for the same job