# Remotion Rule: Assets > Remotion skill rule: Importing images, videos, audio, and fonts into Remotion. Part of the official Remotion Agent Skill for programmatic video in React. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add remotion-dev/skills ``` This rule activates automatically when working with assets in a Remotion project. --- ## Intro Importing images, videos, audio, and fonts into Remotion. Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) — the official Agent Skill for programmatic video creation in React. **Best for**: Developers using Remotion for assets **Works with**: Claude Code, OpenAI Codex, Cursor --- ## Rule Content # Importing assets in Remotion ## The public folder Place assets in the `public/` folder at your project root. ## Using staticFile() You MUST use `staticFile()` to reference files from the `public/` folder: ```tsx import { Img, staticFile } from "remotion"; export const MyComposition = () => { return ; }; ``` The function returns an encoded URL that works correctly when deploying to subdirectories. ## Using with components **Images:** ```tsx import { Img, staticFile } from "remotion"; ; ``` **Videos:** ```tsx import { Video } from "@remotion/media"; import { staticFile } from "remotion";