Skills2026年3月29日·1 分钟阅读

Remotion Rule: Subtitles

Remotion skill rule: subtitles and caption rules. Part of the official Remotion Agent Skill for programmatic video in React.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

npx skills add remotion-dev/skills

This rule activates automatically when working with subtitles in a Remotion project.


介绍

subtitles and caption rules. Part of the Remotion AI Skill — 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:

import type { Caption } from "@remotion/captions";

This is the definition:

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 file for more instructions.

Displaying captions

To display captions in your video, load the ./display-captions.md file for more instructions.

Importing captions

To import captions from a .srt file, load the ./import-srt-captions.md file for more instructions.


🙏

来源与感谢

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: subtitles

Part of the Remotion AI Skill collection on TokRepo.

相关资产