AGENT SKILL

remotion-setup

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude."

License 许可
MIT
所属仓库
SkillMedev/skills
最近更新
2026-10-14
Stars
★ 25
Forks
3

01 前言 Front Matter

name
remotion-setup
metadata
{ "title": "Remotion Setup" }
description
Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude."

03 SKILL.md 正文

Remotion Setup

You scaffold a fresh Remotion project and wire it so the rest of the workflow is "just prompt Claude." This is the one-time environment work. Do it once per project; afterward remotion-compose and remotion-render skip straight to the creative loop.

Trigger eagerly. If the user says anything about making videos with Claude - "set up Remotion," "create a Remotion project," "I want to make product videos with Claude," "start a video project" - run this skill.

Step 1 - Verify the toolchain

Remotion renders with headless Chromium, so check Node before scaffolding:

node --version   # need >= 16; prefer an active LTS release

If Node is older than 16, stop and tell the user to upgrade (nvm: nvm install --lts && nvm use --lts). Also confirm npx is available (ships with npm 5.2+).

Step 2 - Scaffold the project

npx create-video@latest

This is interactive. Recommend the Blank (Hello World) template - it is the cleanest base for product videos. The CLI asks for a project directory and a package manager; let the user pick, then cd into the new folder and install:

cd <project-name>
npm install

Step 3 - Install the Remotion Agent Skills

So Claude Code has Remotion's own skill context available in this repo:

npx remotion skills add remotion

This drops Remotion's agent-skill files into the project. If the command is unavailable in the installed Remotion version, point the user at a newer @remotion/cli and continue - it is a convenience, not a hard dependency.

Step 4 - Establish folder conventions

Standardize the layout so later skills always know where things go:

src/
  Root.tsx              # registers every <Composition> (the entry registry)
  index.ts              # registerRoot(RemotionRoot)
  compositions/         # one .tsx file per video - remotion-compose writes here
public/
  assets/               # images, logos, audio - referenced via staticFile()

Create the folders if the template did not:

mkdir -p src/compositions public/assets

src/Root.tsx is the registry. Every video is a <Composition> registered here:

// src/Root.tsx
import { Composition } from "remotion";
import { HelloWorld } from "./compositions/HelloWorld";

export const RemotionRoot: React.FC = () => {
  return (
    <Composition
      id="HelloWorld"
      component={HelloWorld}
      durationInFrames={90}
      fps={30}
      width={1920}
      height={1080}
    />
  );
};
// src/index.ts
import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);

Sensible defaults to register with: 30 fps and 1920x1080 for landscape product videos (1080x1920 for vertical social), and short durations - 90 frames at 30 fps is 3 seconds, and most product demo videos land between 15 and 60 seconds (450-1800 frames).

Step 5 - Load a Google font

Remotion has first-class Google Fonts so text renders deterministically. Install and load once:

npm install @remotion/google-fonts
// load near the top of a composition file
import { loadFont } from "@remotion/google-fonts/Inter";
const { fontFamily } = loadFont();
// then use: <div style={{ fontFamily }}>...</div>

loadFont() blocks the render until the font is ready, so on-screen text never flashes in an unstyled fallback. Pick the font that matches the brand - swap Inter for Poppins, Roboto, etc.

Step 6 - Smoke-test composition

Write a trivial composition to prove the environment renders end to end:

// src/compositions/HelloWorld.tsx
import { AbsoluteFill, useCurrentFrame, interpolate } from "remotion";
import { loadFont } from "@remotion/google-fonts/Inter";

const { fontFamily } = loadFont();

export const HelloWorld: React.FC = () => {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 30], [0, 1], {
    extrapolateRight: "clamp",
  });
  return (
    <AbsoluteFill style={{ backgroundColor: "#0B0B0F", justifyContent: "center", alignItems: "center" }}>
      <h1 style={{ fontFamily, color: "white", fontSize: 90, opacity }}>
        It works.
      </h1>
    </AbsoluteFill>
  );
};

Make sure it is registered in src/Root.tsx (Step 4), then render it:

npx remotion render src/index.ts HelloWorld out/smoke-test.mp4

The first render downloads headless Chromium (a few hundred MB - expect a one-time wait of a few minutes on a normal connection); after that, this 90-frame smoke test should render in well under a minute. If out/smoke-test.mp4 plays a fading-in title, the environment is good. If the render fails, it is almost always (a) Chromium download/permissions, (b) the composition not registered in Root.tsx, or (c) a Node version issue from Step 1.

Step 7 - Launch Remotion Studio for preview

For the interactive preview (scrub the timeline, hot-reload on edits):

npx remotion studio

This serves the Studio at http://localhost:3000. The create-video template also wires npm run dev to the same thing. Leave Studio running while iterating - edits to composition files hot-reload instantly.

Deliverable

The user walks away with a working Remotion project: the scaffolded repo with the src/compositions/ + public/assets/ layout in place, Remotion agent skills installed, a Google font wired, a registered smoke-test composition, a rendered out/smoke-test.mp4 that actually plays, and Remotion Studio running for preview. Nothing is "set up" until the smoke-test MP4 exists and plays.

Do NOT

  • Do not skip the Node check and scaffold anyway - a sub-16 Node fails deep inside the Chromium render with a confusing error, not at install time.
  • Do not declare setup done without rendering the smoke test; a project that compiles but has never produced an MP4 has not proven the Chromium pipeline works.
  • Do not put compositions or assets in ad-hoc locations - later skills (remotion-compose, remotion-render) rely on src/compositions/ and public/assets/ existing.
  • Do not reference assets by relative path or URL; use staticFile() from public/, or renders will work locally and break elsewhere.
  • Do not use system or CSS-imported fonts for on-screen text - without loadFont() blocking, text can render in a fallback font on the render machine.
  • Do not pick a feature-heavy template for product videos; the Blank template avoids carrying demo code the user must delete later.

Quality bar

  • node --version is >= 16 and was checked before scaffolding.
  • out/smoke-test.mp4 exists and plays a fading-in title.
  • The folder conventions exist exactly as specified, and the smoke composition is registered in src/Root.tsx.
  • Text renders through @remotion/google-fonts with loadFont(), not a system fallback.
  • Remotion Studio launches at localhost:3000 and hot-reloads an edit.

Handoff

Once the smoke test renders and Studio is up, tell the user the project is ready and hand off: "Setup is done. Describe the video you want - duration, scenes, brand colors - and I'll write the composition (remotion-compose), then render and iterate (remotion-render)."

04 同仓库更多 Skills

SkillMedev
SkillMedev/skills

有氧运动计划

zone-2-cardio-plan

当有人要求制定稳态有氧训练计划、进行有氧基础训练或达到第二区间、安排轻松或耐力型的每周有氧训练、按心率区间训练,或提高静息心率、最大摄氧量或耐力时,可以使用此方案。该方案构建了一个包含训练计划结构、训练方式选择和进度安排的心率区间有氧训练模块。本方案仅提供一般健身指导,不构成医疗建议。请勿用于设计力量或举重训练计划(请使用力量训练计划)、高强度间歇训练 (HIIT) 或循环训练(请使用体能训练和 HIIT 计划),或灵活性/柔韧性训练(请使用灵活性训练计划)。

★ 25
SkillMedev
SkillMedev/skills

youtube-script-writer

Writes retention-engineered long-form YouTube scripts on a hook/body/payoff architecture - a first-30-seconds hook that survives the retention cliff, a beat-sheet body with mini-hooks and bridges, timed pattern interrupts, and a payoff that over-delivers - with B-roll and editing cues marked inline. Use when someone says "script my next video", "my retention graph dies at the start", "tighten this draft", or "outline a video on X". Do NOT use for the 3-second opener of TikTok, Reels, or Shorts - use video-hook-writer instead; do NOT use for spoken voiceover synced to on-screen tutorial actions - use narration-script instead; do NOT use for a sales demo built on a buyer's discovery notes - use demo-script instead; do NOT use to design the thumbnail and title - use thumbnail-concept instead.

★ 25
SkillMedev
SkillMedev/skills

win-back-campaign

Designs segmented win-back email sequences for dormant users - dormancy tiers, a three-beat sequence with a single proportional incentive, and a suppression rule - and measures success by re-activation, not opens. Use when someone says "our users went quiet", "design a win-back campaign", "how do I re-engage lapsed customers", "should we email people who haven't logged in for months", or lifecycle messaging has stopped landing with a lapsed segment. Do NOT use for recovering an unfinished checkout - use abandoned-cart-sequence instead. Do NOT use for diagnosing and fixing why active customers cancel - use churn-reduction instead. Do NOT use for building always-on onboarding or nurture flows - use email-drip-builder instead.

★ 25
SkillMedev
SkillMedev/skills

wikipedia-style

Writes neutral, verifiable, encyclopedic prose following Wikipedia's core content policies and manual of style - NPOV, inline citations, notability-backed claims, and a strict ban on promotional language. Use when someone asks "write this like a Wikipedia article", "draft a Wikipedia page for this company or person", "make this neutral and encyclopedic", or "why does my article draft keep getting rejected". Do NOT use for persuasive or opinion writing - use op-ed-writer instead; for thesis-driven academic papers, use academic-essay; for verifying claims in existing text, use fact-checker.

★ 25
SkillMedev
SkillMedev/skills

whitepapers

Structures and writes authoritative B2B whitepapers - a standalone executive summary, a data-sized problem statement, methodology, evidence-driven findings, recommendations, and a soft call to action - flagging every claim that needs a real citation. Use when a marketer asks "write a whitepaper on this topic", "turn our research into a lead-gen asset", "make this credible enough for executives", or a draft reads like a product pitch instead of analysis. Do NOT use for customer-story-driven proof - use case-study-builder instead; for policy audiences, use policy-brief.

★ 25
SkillMedev
SkillMedev/skills

white-space-analysis

Finds unmet market gaps by ranking jobs-to-be-done on importance versus satisfaction, overlaying them against current solutions and workarounds, and validating that each gap is real, winnable, and worth winning. Use when someone asks "where are the gaps in this market", "what's underserved here", "where should we play next", or is hunting for product, feature, or market-entry opportunities. Do NOT use for profiling competitors and building battle cards - use competitive-intelligence instead; for putting a dollar figure on an identified opportunity - use market-sizing instead; for extracting jobs-to-be-done from raw customer interviews - use jtbd-extractor instead.

★ 25