# compositions

Sets guidelines for structuring Remotion compositions, still frames, folders, and dynamic metadata in src/Root.tsx.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/compositions.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/compositions

## What it does

This rule directs the agent on writing standard Remotion entry points. It defines how to register `<Composition>` instances with width, height, duration in frames, and frame rate. Single-frame assets rely on `<Still>` instead, avoiding redundant timing parameters.

Organization in the studio sidebar relies on `<Folder>`, where folder names only permit alphanumeric characters and hyphens. For component inputs, the instructions mandate `type` declarations over interfaces. Data passed to `defaultProps` must be JSON-serializable, with support for `Date`, `Map`, `Set`, and `staticFile()`. Dynamic durations or dimensions run through `calculateMetadata` prior to rendering.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/compositions.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/compositions.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/compositions.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/compositions.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/compositions.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/compositions.md

## When to use it
- register video compositions inside `src/Root.tsx`
- organize sidebar entries with nested `<Folder>` elements
- fetch remote payload data via `calculateMetadata` before rendering
- define single-frame `<Still>` components

## Example prompts
- Add a new composition grouped inside the `Marketing` folder
- Set up `calculateMetadata` to adjust frame count from an API response
- Configure `<Still>` thumbnail dimensions and default props

## Similar
- [remotion-create](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-create.md) — skill · 375000 installs
- [remotion-captions](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-captions.md) — skill · 373700 installs
- [remotion](https://affpapa.org/en/nevibecode/skills/vercel-labs-remotion.md) — skill · 1800 installs
- [yyl-remotion-video](https://affpapa.org/en/nevibecode/skills/yyl-remotion-video.md) — skill · 549 installs
- [remotion-scaffold](https://affpapa.org/en/nevibecode/skills/remotion-scaffold.md) — skill · 170 installs
- [vvv](https://affpapa.org/en/nevibecode/plugins/vvv.md) — plugin · ★ 568 repo stars

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
