Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add ncklrs/startup-os-skills --skill "remotion-scaffold"
Install specific skill from multi-skill repository
# Description
Scaffolds Remotion project folder structure, base configuration files, and file organization. Focuses ONLY on directory creation, empty file templates, and Remotion configuration. Use when starting a new video project or when asked to "scaffold Remotion project", "create project structure", "setup Remotion folders".
# SKILL.md
name: remotion-scaffold
description: Scaffolds Remotion project folder structure, base configuration files, and file organization. Focuses ONLY on directory creation, empty file templates, and Remotion configuration. Use when starting a new video project or when asked to "scaffold Remotion project", "create project structure", "setup Remotion folders".
Remotion Scaffold
Creates the foundational folder structure, configuration files, and organizational framework for Remotion video projects. This skill focuses exclusively on project setup and does NOT generate animation logic or component implementation.
What This Skill Does
Generates project scaffolding for:
- Directory structure β Organized folder layout for compositions, scenes, assets
- Configuration files β Base constants.ts, types.ts with empty templates
- Empty scene templates β Placeholder scene components with TODO markers
- Asset directories β Organized folders for images, audio, fonts
- Registration setup β Composition registration in Root.tsx
Scope Boundaries
IN SCOPE:
- Creating folder structure
- Writing empty file templates
- Setting up configuration skeleton
- Directory organization patterns
OUT OF SCOPE:
- Animation implementation (use /remotion-animation)
- Scene component logic (use /remotion-component-gen)
- Sequence composition (use /remotion-composition)
- Component generation (use /remotion-component-gen)
Input/Output Formats
Input Format: Project Requirements
Accepts project setup requirements:
Natural Language:
Create a new Remotion project scaffold for a 30-second video with 4 scenes.
Structured Format:
## Project Requirements
**Project Name:** ProductDemo
**Duration:** 30 seconds
**Frame Rate:** 30 fps
**Dimensions:** 1920x1080 (16:9)
**Number of Scenes:** 4 (Intro, Features, Demo, CTA)
**Asset Types:** Images, Audio (music + SFX)
Output Format: SCAFFOLD_MANIFEST.md
Generates a manifest documenting created structure:
# Scaffold Manifest: ProductDemo
## Status
β
Directory structure created
β
Configuration files generated
β
Scene templates created (empty)
β³ Ready for implementation
## Generated Structure
src/remotion/compositions/ProductDemo/
βββ index.tsx # β
Created - Main composition (empty)
βββ constants.ts # β
Created - Constants template
βββ types.ts # β
Created - Type definitions
βββ scenes/
βββ Scene1Intro.tsx # β
Created - Empty template
βββ Scene2Features.tsx # β
Created - Empty template
βββ Scene3Demo.tsx # β
Created - Empty template
βββ Scene4CTA.tsx # β
Created - Empty template
public/
βββ images/ # β
Created - Empty directory
βββ audio/
β βββ music/ # β
Created - Empty directory
β βββ sfx/ # β
Created - Empty directory
βββ fonts/ # β
Created - Empty directory
## File Templates Created
### Main Composition: `index.tsx`
```typescript
import { AbsoluteFill, Sequence } from "remotion";
import { SCENE_TIMING } from "./constants";
import { Scene1Intro } from "./scenes/Scene1Intro";
import { Scene2Features } from "./scenes/Scene2Features";
import { Scene3Demo } from "./scenes/Scene3Demo";
import { Scene4CTA } from "./scenes/Scene4CTA";
import type { ProductDemoProps } from "./types";
export function ProductDemo({}: ProductDemoProps) {
return (
<AbsoluteFill>
{/* TODO: Add composition layout via /remotion-composition */}
<Sequence
from={SCENE_TIMING.intro.start}
durationInFrames={SCENE_TIMING.intro.duration}
>
<Scene1Intro />
</Sequence>
{/* Additional scenes... */}
</AbsoluteFill>
);
}
Constants: constants.ts
// TODO: Define color palette
export const COLORS = {
// Add colors here
} as const;
// TODO: Configure spring animations via /remotion-animation
export const SPRING_CONFIGS = {
// Add spring configs here
} as const;
// Scene timing (30fps, 30 seconds total = 900 frames)
const FPS = 30;
export const SCENE_TIMING = {
intro: { start: 0, duration: 5 * FPS },
features: { start: 5 * FPS, duration: 10 * FPS },
demo: { start: 15 * FPS, duration: 10 * FPS },
cta: { start: 25 * FPS, duration: 5 * FPS },
} as const;
Types: types.ts
export interface ProductDemoProps {
// Add custom props here
}
export interface SceneProps {
// Common scene props
}
Scene Template: scenes/Scene1Intro.tsx
import { AbsoluteFill } from "remotion";
export function Scene1Intro() {
return (
<AbsoluteFill>
{/* TODO: Implement scene via /remotion-component-gen */}
</AbsoluteFill>
);
}
Next Steps
- Define animations β Run
/remotion-animationto generate animation configs - Build composition β Run
/remotion-compositionto structure Sequence layout - Implement scenes β Run
/remotion-component-genfor each scene - Configure render β Run
/remotion-render-configfor output settings - Add assets β Run
/remotion-asset-coordinatorfor asset preparation
Configuration Summary
| Setting | Value |
|---|---|
| Composition ID | ProductDemo |
| Duration | 30 seconds (900 frames) |
| Frame Rate | 30 fps |
| Dimensions | 1920x1080 (16:9) |
| Scenes | 4 (Intro, Features, Demo, CTA) |
| Status | Scaffold complete, ready for implementation |
File Locations
All files created in:
- Composition: /path/to/project/src/remotion/compositions/ProductDemo/
- Assets: /path/to/project/public/
Scaffold Checklist
Creation checklist:
- [x] Create composition folder structure
- [x] Generate main composition file (index.tsx) with TODO markers
- [x] Generate constants file (constants.ts) as template
- [x] Generate types file (types.ts)
- [x] Create empty scene component files
- [x] Create asset directories (public/images/, public/audio/)
- [x] Add composition registration skeleton
- [ ] Animation implementation (next: /remotion-animation)
- [ ] Composition logic (next: /remotion-composition)
- [ ] Scene implementation (next: /remotion-component-gen)
## Directory Structure Patterns
### Pattern 1: Simple Project (1-2 scenes)
src/remotion/compositions/VideoName/
βββ index.tsx # Main composition
βββ constants.ts # Configuration constants
βββ types.ts # TypeScript types
### Pattern 2: Multi-Scene Project (3+ scenes)
src/remotion/compositions/VideoName/
βββ index.tsx # Main composition
βββ constants.ts # Shared constants
βββ types.ts # Type definitions
βββ scenes/
βββ Scene1.tsx
βββ Scene2.tsx
βββ Scene3.tsx
### Pattern 3: Complex Project (with audio)
src/remotion/compositions/VideoName/
βββ index.tsx # Main composition
βββ constants.ts # Configuration
βββ types.ts # Types
βββ audio.ts # Audio configuration
βββ scenes/
βββ ...
### Pattern 4: Component Library Project
src/remotion/
βββ components/
β βββ particles/
β βββ text/
β βββ progress/
β βββ transitions/
βββ compositions/
β βββ VideoName/
βββ utils/
βββ seededRandom.ts
βββ timing.ts
## File Templates
### Empty Main Composition
```typescript
import { AbsoluteFill } from "remotion";
import type { VideoNameProps } from "./types";
export function VideoName({}: VideoNameProps) {
return (
<AbsoluteFill>
{/* TODO: Add composition structure via /remotion-composition */}
</AbsoluteFill>
);
}
Empty Constants Template
// TODO: Define via /remotion-animation
export const COLORS = {} as const;
export const SPRING_CONFIGS = {} as const;
export const SCENE_TIMING = {} as const;
Empty Types Template
export interface VideoNameProps {
// Add props here
}
Empty Scene Template
import { AbsoluteFill } from "remotion";
export function Scene1() {
return (
<AbsoluteFill>
{/* TODO: Implement via /remotion-component-gen */}
</AbsoluteFill>
);
}
Registration Template
Add to src/remotion/Root.tsx:
import { Composition } from "remotion";
import { VideoName } from "./compositions/VideoName";
// Add to RemotionRoot component:
<Composition
id="VideoName"
component={VideoName}
durationInFrames={900} // TODO: Calculate based on requirements
fps={30}
width={1920}
height={1080}
defaultProps={{}}
/>
Video Format Presets
Quick reference for common video formats:
// YouTube (16:9)
{ width: 1920, height: 1080, fps: 30 }
// Instagram Reels / TikTok (9:16)
{ width: 1080, height: 1920, fps: 30 }
// Twitter/X (16:9)
{ width: 1920, height: 1080, fps: 30 }
// Square (1:1)
{ width: 1080, height: 1080, fps: 30 }
Asset Directory Organization
Standard asset directory structure:
public/
βββ images/
β βββ logos/
β βββ backgrounds/
β βββ icons/
βββ audio/
β βββ music/
β βββ sfx/
βββ fonts/
βββ [custom-fonts].woff2
Scaffold Workflow
- Parse requirements β Extract project name, duration, scenes, format
- Create directories β Generate folder structure
- Write empty templates β Create files with TODO markers
- Setup registration β Add composition to Root.tsx
- Generate manifest β Document created structure in SCAFFOLD_MANIFEST.md
- Hand off β Direct to specialized skills for implementation
Integration with Other Skills
This skill is the FIRST STEP in the pipeline:
remotion-scaffold (this skill)
β outputs: SCAFFOLD_MANIFEST.md
remotion-animation
β outputs: ANIMATION_CONFIG.md
remotion-composition
β outputs: COMPOSITION_STRUCTURE.md
remotion-component-gen (per scene)
β outputs: SCENE_COMPONENT.md
remotion-render-config
β outputs: RENDER_CONFIG.md
Works with:
- /motion-designer β Project requirements may come from design specs
- /remotion-animation β Next step for animation configuration
- /remotion-composition β Next step for composition structure
- /remotion-component-gen β Next step for scene implementation
- /remotion-render-config β Final step for render settings
This skill provides clean, minimal project scaffolding that serves as the foundation for the Remotion implementation pipeline.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.