# assets

The assets rule guides Claude Code in adding images, video, audio, and fonts to Remotion projects. Use it when an agent needs to wire media into a composition.

- 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/assets.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/assets

## What it does

The rule directs the agent to keep local files in the project’s `public/` directory and create their references with `staticFile()`. Remotion’s `Img` component handles pictures; `Video` and `Audio` from `@remotion/media` handle clips and sound. These components wait for media to load before rendering.

For fonts, the rule shows a `FontFace` flow: build its URL with `staticFile()`, load the face, then register it with `document.fonts`. A remote URL can be passed directly instead. Local files need `staticFile()` so their references work when the project is served from a nested path.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/assets.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/assets.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

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

### Windsurf (Devin Desktop)

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

### Cline

**Manually: put the files in place**
- File: `.clinerules/assets.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/assets.md

## When to use it
- reference an image in `public/` from a Remotion composition
- add local video or audio to a composition
- load a font with `FontFace`
- use remote media URLs without `staticFile()`

## Example prompts
- Add the image `logo.png` from `public/` to my Remotion composition.
- Connect `clip.mp4` and `music.mp3` from `public/`.
- Load `font.woff2` with `FontFace` in this composition.

## Similar
- [Asset Manager](https://affpapa.org/en/nevibecode/skills/asset-manager.md) — skill · 165 installs
- [remotion-asset-coordinator](https://affpapa.org/en/nevibecode/skills/remotion-asset-coordinator.md) — skill · 184 installs
- [Agent-Native Assets](https://affpapa.org/en/nevibecode/mcp/agent-native-assets.md) — MCP server · ★ 7736 repo stars
- [pixijs-assets](https://affpapa.org/en/nevibecode/skills/pixijs-assets.md) — skill · 7200 installs
- [build-hybrid-game-assets](https://affpapa.org/en/nevibecode/skills/build-hybrid-game-assets.md) — skill · 1600 installs
- [unsplash-asset-images](https://affpapa.org/en/nevibecode/skills/unsplash-asset-images.md) — skill · 1900 installs

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
