# Remotion Rule: Subtitles > Remotion skill rule: subtitles and caption rules. 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 subtitles in a Remotion project. --- ## Intro subtitles and caption rules. 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 subtitles **Works with**: Claude Code, OpenAI Codex, Cursor --- ## Rule Content All captions must be processed in JSON. The captions must use the `Caption` type which is the following: ```ts import type { Caption } from "@remotion/captions"; ``` This is the definition: ```ts type Caption = { text: string; startMs: number; endMs: number; timestampMs: number | null; confidence: number | null; }; ``` ## Generating captions To transcribe video and audio files to generate captions, load the [./transcribe-captions.md](./transcribe-captions.md) file for more instructions. ## Displaying captions To display captions in your video, load the [./display-captions.md](./display-captions.md) file for more instructions. ## Importing captions To import captions from a .srt file, load the [./import-srt-captions.md](./import-srt-captions.md) file for more instructions. --- ## Source & Thanks > Created by [Remotion](https://github.com/remotion-dev). Licensed under MIT. > [remotion-dev/skills](https://github.com/remotion-dev/skills) — Rule: `subtitles` Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) collection on TokRepo. --- Source: https://tokrepo.com/en/workflows/d43f84af-1581-4b02-9c0e-b8fef366a8ca Author: Skill Factory