---
catalog_id: "R-076"
kind: "repo"
domain: "agent"
domain_label: "Agent 编排 / Agent Systems"
date: "2026-11-27"
title: "remotion-dev/claude-code-plugin"
verdict: "双清单文本化封装14项视频技能，过审零脚本插件市场"
summary: "Remotion 官方专供 Claude Code /plugin 生态的自动化编译分发仓，通过双插件清单、14 顶层 SKILL 与 15 内嵌 REFERENCE 分层及源码/地理数据 Markdown 文本化包装，满足插件市场零可执行文件与跨技能沙箱合规边界。"
summary_en: "Official Remotion Claude Code plugin repo compiling 14 skills and Markdown-wrapped data under dual manifests to meet zero-executable rules."
canonical_url: "https://oumuatown.com/repos/remotion-dev__claude-code-plugin/"
markdown_url: "https://oumuatown.com/repos/remotion-dev__claude-code-plugin.md"
og_image_zh: "https://oumuatown.com/og/zh/R-076.png"
og_image_en: "https://oumuatown.com/og/en/R-076.png"
cite_count: 30
repo: "remotion-dev/claude-code-plugin"
github_url: "https://github.com/remotion-dev/claude-code-plugin"
commit: "f96c742"
tags:
  - "claude-code-plugin"
  - "agent-skills"
  - "remotion"
  - "plugin-packaging"
  - "video-generation"
  - "multi-harness"
github_repos:
  - "https://github.com/remotion-dev/claude-code-plugin/tree/f96c742"
  - "https://github.com/anthropics/claude-plugins-official/tree/0fbfda5"
---

# R-076 · remotion-dev/claude-code-plugin

> **结论 / Verdict**: 双清单文本化封装14项视频技能，过审零脚本插件市场
> **EN Summary**: Official Remotion Claude Code plugin repo compiling 14 skills and Markdown-wrapped data under dual manifests to meet zero-executable rules.

## Provenance & Evidence

- Primary Repository: https://github.com/remotion-dev/claude-code-plugin (@f96c742)
- Referenced Repository: https://github.com/anthropics/claude-plugins-official/tree/0fbfda5
- Verified Source Citations (#Lxx): 30
- Web Reader: https://oumuatown.com/repos/remotion-dev__claude-code-plugin/

# remotion-dev/claude-code-plugin

> 仓库地址：https://github.com/remotion-dev/claude-code-plugin · 审计版本：`remotion-dev/claude-code-plugin@f96c742` · 审计日期：2026-11-27
> 来源文章：[关联文章](../articles/2026-11-27-0xnicc0-12-hand-drawn-motion-repos.md)

## 定位与解决的真问题

- **核心定位与目标用户**：Remotion 官方为 Claude Code 插件系统（`/plugin`）生成的只读分发镜像仓库（插件名 `remotion`，版本 `4.0.547`，`.claude-plugin/plugin.json#L1-L27`），由上游 monorepo `remotion-dev/remotion` 中的 `packages/claude-code-plugin` 与 `packages/skills` 在发版流水线自动编译覆写生成（`README.md#L35-L37`）。
- **相比常规做法解决的关键痛点**：
  1. **跨越通用 Agent Skills（如 `` `remotion-dev/skills` ``）与 Claude Code 插件市场审核规则的鸿沟**：Claude Code 插件安装器禁止包含可执行的 `.ts`/`.tsx`/`.mjs`/`.geojson` 源码与脚本、`#!` shebang 与跨技能目录相对跳转，并严控文件总数与单文件体积；本仓作为纯编译产物承接所有格式降级与清单声明，使团队只需维护一套上游 `packages/skills` 真源。
  2. **在不引入额外斜杠命令目录的前提下同时支持主动调用与被动路由**：仅依靠 `.claude-plugin/plugin.json#L15` 暴露 `./skills/`，让用户既能直接键入 `/remotion-create` 触发脚手架工作流（`README.md#L19-L29`），也能在自然语言对话中由 `remotion-best-practices` 总路由按需加载对应垂直规范。

## 技术栈与核心目录结构

- **语言 / 运行时 / 关键依赖**：纯声明式插件清单（JSON）+ Agent Skills 规范 Markdown 文档 + 静态图标（无 `package.json`、无运行时代码、无可执行脚本）。
- **关键目录树与体量统计**（`remotion-dev/claude-code-plugin@f96c742`，全仓共 **209 个受控文件**：194 个 `.md`、14 个 `.json`、1 个 `.png`，单文件最大为 `37,249 B` 的 `.claude-plugin/icon.png` 与 `19,794 B` 的 `opentimeline.md`）：
  - `.claude-plugin/`：`plugin.json`（插件运行时清单）、`marketplace.json`（自托管市场源清单）、`icon.png`（插件图标，替换了上游的 SVG 图标）。
  - `skills/`（共 14 个顶层技能包）：
    - `remotion-best-practices/`：顶层总路由 `SKILL.md`（119 行），内部完整嵌入其余 13 个子技能（其中 `remotion-markup/` 内部还二级嵌入 `remotion-maps/`）。
    - 13 个可独立触发的顶层垂直技能：`remotion-captions`、`remotion-create`、`remotion-docs`、`remotion-elements`、`remotion-interactivity`、`remotion-license`、`remotion-maps`、`remotion-markup`、`remotion-multimedia`、`remotion-render`、`remotion-saas`、`remotion-studio`、`remotion-upgrade`。

## 核心实现源码级剖析（附文件路径与行号）

1. **`.claude-plugin/` 双清单契约与「零 Commands / 零 Hooks」纯技能暴露模型**（`.claude-plugin/plugin.json#L1-L27`、`.claude-plugin/marketplace.json#L1-L30`、`README.md#L15-L37`）：
   - **纯技能极简插件定义**：`plugin.json` 绑定 `claude-code-plugin-manifest.json` Schema，将版本与主框架锁死在 `"4.0.547"`，并仅配置 `"skills": "./skills/"` 一项扩展入口（`#L2-L16`）；仓库中**不存在**独立的 `commands/`、`agents/`、`hooks/` 目录或 MCP Server 配置文件。依托 Claude Code 将插件内顶层 `skills/<skill-name>/SKILL.md` 自动注册为 `/<skill-name>` 命令的机制，开箱即暴露 `/remotion-create` 等交互指令（`README.md#L19-L29`）。
   - **自托管 GitHub Marketplace 元数据**：`.claude-plugin/marketplace.json#L9-L29` 声明市场名为 `remotion`，并将插件唯一来源指向 `{ "source": "github", "repo": "remotion-dev/claude-code-plugin" }`，分类为 `Design`，使用户通过单一仓库地址即可完成市场订阅与插件安装闭环。

2. **双层技能拓扑：14 个顶层 `SKILL.md` vs 15 份内嵌 `REFERENCE.md` 及动态链接改写**（`skills/remotion-best-practices/SKILL.md#L1-L119`、`skills/remotion-create/SKILL.md#L1-L74`、`skills/remotion-best-practices/remotion-create/REFERENCE.md#L1-L74`）：
   - **入口去重（14 vs 15）**：全仓仅在 `skills/*/` 第一层保留 **14 份 `SKILL.md`**；所有被嵌套聚合的子技能目录（`remotion-best-practices/` 下的 13 个子目录，外加分别嵌入在 `remotion-markup/` 与 `remotion-best-practices/remotion-markup/` 下的 2 份 `remotion-maps/`）均将入口文件改名为 **`REFERENCE.md`**（全仓共 **15 份 `REFERENCE.md`**），彻底消除插件加载器递归扫描 `skills/` 时重复注册几十个同名技能的隐患。
   - **同源内容按“所处位置”执行差异化链接编译**：直接对比独立技能 `skills/remotion-create/SKILL.md` 与聚合副本 `skills/remotion-best-practices/remotion-create/REFERENCE.md` 可确认其编译期精确重写规则：
     - 在独立顶层技能 `skills/remotion-create/SKILL.md#L8,#L42,#L47-L65,#L74` 中，凡指向自身根目录之外的其他技能（如总路由、`remotion-studio`、`remotion-markup`、`remotion-interactivity`）的 Markdown 相对链接全部被剥离并降级为**纯文本技能提示**（例如 ``Remotion Studio (`remotion-studio` skill)``、``(`video-editing.md` in the `remotion-markup` skill)``），严格满足单技能自包含、不跨目录逃逸的规范；
     - 而在总聚合包内的 `skills/remotion-best-practices/remotion-create/REFERENCE.md#L8,#L42,#L47-L65,#L74` 中，由于目标技能已被同根嵌入，引用自动重写为**可点击相对路径**（`[Remotion Best Practices](../SKILL.md)`、`[Remotion Studio](../remotion-studio/REFERENCE.md)`、`[Video editing](../remotion-markup/video-editing.md)`），仅同级目录内文件（如 `video-layout.md`、`tailwind.md`）在两端同时保持相对链接。
   - **路由护栏要点**：`skills/remotion-best-practices/SKILL.md#L7-L100` 保持 119 行低上下文占用，规定了保留用户外部代码修改、按客户端环境区分 `npx remotion studio` 与 `--no-open` + 浏览器实测/WebMCP 工具、以及仅在用户明确要求导出视频时才执行 `npx remotion render` 的核心守则。

3. **代码模板与地理数据合规文本化封装（`*.{tsx,ts,mjs}.md` + `.json`）及内嵌 3D 航飞防呆源码**（`skills/remotion-maps/techniques/cesium/assets/CesiumFlythrough.tsx.md#L1-L278`、`skills/remotion-maps/techniques/cesium/scripts/prep-cesium-path.mjs.md#L1-L167`）：
   - **绕过源码扩展名与 Shebang 禁令**：Claude Code 插件校验禁止携带可执行扩展名或 `#!` 头的脚本，因此仓库内 5 份原本为 `.tsx`/`.ts`/`.mjs` 的资产与脚本（跨 4 处 `remotion-maps` 副本共生成 **20 个 `*.{tsx,ts,mjs}.md` 文件**）均被构建管线改写为标准 Markdown 文档——前 3 行注入统一提取指令（`Copy the code below into ... Preserve the relative directory layout and include its imported files and JSON data.`），正文包裹进带语言标记的代码围栏，并同步剥离原始可执行脚本头部的 `#!/usr/bin/env node`；而原有地理路径样本则统一改后缀为标准 `.json`（`cesium-path.json`、`city-path.json`、`sample-river.json`）。
   - **受封装模板体现的确定性渲染细节**：检查被包装后的 `CesiumFlythrough.tsx.md#L121-L256` 可见，Remotion 官方把关键防闪烁机制直接固化在模板中：关闭 Cesium 默认渲染循环（`useDefaultRenderLoop = false`）、强制 `preserveDrawingBuffer: true`、并在组件挂载与每次 `frame` 变更的 `useEffect` 中双重加锁 `delayRender`/`continueRender`，通过 `settle` 轮询直到连续 9 次 `render` 后 `tilesLoaded` 为真（或达 600 ticks 上限）才释放截帧，同时对 Google Photorealistic 3D Tiles 强制校验 `<= 30s` 限制并叠加右上角许可水印（`#L180-L184`, `#L261-L274`）。配套航线预处理脚本 `prep-cesium-path.mjs.md#L6-L135` 则显式放弃会产生尖锐折角的 Douglas-Peucker 抽稀，采用 `0.1km` 等弧长重采样 → 两轮 `±2.8km` 滑动平均（`smoothMA`）→ 向主弦方向 0.45 阻尼平滑，生成无拐点银行转弯（banking）轨迹。

4. **与 `` `remotion-dev/skills` ``（见同源笔记 `` `repos/remotion-dev__skills.md` ``）的分发边界对照**：

   | 维度 | `` `remotion-dev/skills` ``（通用多宿主技能包） | `` `remotion-dev/claude-code-plugin` ``（本仓） |
   |---|---|---|
   | **定位与真源** | 主仓 `packages/skills/` 的开放式同步仓库，面向 `npx skills add`、Codex、Cursor、OpenCode 等 | 主仓 `packages/claude-code-plugin/build.mts` 的编译输出仓，专供 Claude Code `/plugin` 市场 |
   | **清单与宿主资产** | 不含 `.claude-plugin/`；保留 `remotion-icon.svg` 与 Codex 专用 `agents/openai.yaml` | 补齐 `.claude-plugin/{plugin.json,marketplace.json,icon.png}`；剔除 `remotion-icon.svg` 与 `openai.yaml` |
   | **代码与辅助脚本** | 保留 `scripts/*.ts` 生态校验/同步工具，地图示例维持原生 `.tsx`/`.ts`/`.mjs`/`.geojson` | 剔除全部构建/同步脚本；代码模板改包为 `*.{tsx,ts,mjs}.md`，GeoJSON 转为 `.json` |
   | **嵌入与空间预算** | 同一套嵌套 `REFERENCE.md` 与链接重写逻辑 | 因 `remotion-maps` 四重嵌入展开（顶层、`remotion-markup`、`remotion-best-practices` 直接子目录、以及 `remotion-best-practices/remotion-markup/`）产生 **4 份 × 16 文件 = 64 文件（占全仓 209 文件的 30.6%）**，受限于插件市场 `<= 512` 文件上限 |

## 亮点设计 vs 局限/坑点

- **值得借鉴的设计**：
  - **真源与受限平台合规产物的彻底解耦**：上游开发作者按常规前端工程写 `.tsx`/`.mjs`/`.geojson` 并享有类型检查与直接运行能力，发布流水线在编译期无损完成 `SKILL.md -> REFERENCE.md` 改名、跨技能链接降级与源码 Markdown 化包装，让开发者体验与平台严苛安全审计零冲突。
  - **“只暴露 `skills/`”替代手写 `commands/` 胶水层**：在同时支持斜杠命令与自动路由的 Claude Code 插件体系中，直接利用顶层 `SKILL.md` 生成命令入口，避免维护两套重复触发描述。
- **局限、隐含假设与潜在坑点**：
  - **只读生成物不可直接提交 PR**：`README.md#L37` 明确警告直接修改本仓会在下次发版被强制覆盖，所有修复必须回流至 `remotion-dev/remotion` 主仓。
  - **多层级嵌入引发的文件数膨胀风险**：单靠 `remotion-maps` 被两层复用就产生 4 份全量副本（64 文件）和 20 个 `.md` 包装源码，目前总文件数已达 209 个（全仓上限 512，见 `` `repos/remotion-dev__skills.md` `` 中对 `test/plugin.test.ts` 的剖析），未来若继续新增含大量代码片段的子技能将迅速逼近平台配额天花板。
  - **代码提取多一跳认知成本**：由于代码文件被转为 `*.tsx.md`，Agent 使用前必须遵循前 3 行提示剥离 Markdown 代码围栏还原文件名（`CesiumFlythrough.tsx.md#L3`），无法像本地包那样直接 `cp` 或执行。

## 可复用的模块或设计模式

- **如何迁移到未来项目**：
  1. **发布个人/团队 Claude Code 插件时的“源码文本化 + 四重副本审计”基线**：若现有多宿主 Skill 仓库（如包含 `render.mjs`、`look.py` 等脚本的视频/分析技能）需要上线 Claude Code `/plugin` 市场，可复刻本仓模式——主仓保留可执行脚本与单测试用 `.agents/skills/`，构建脚本为插件分支生成 `.claude-plugin/{plugin.json,marketplace.json}`、将嵌套 `SKILL.md` 改写为 `REFERENCE.md`、将附带样板代码/脚本包装成 `*.ext.md` 并统计副本膨胀率防超 512 文件限制。
  2. **Geo/3D 异步瓦片稳定截帧模板**：可将 `CesiumFlythrough.tsx.md` 中的 `useDefaultRenderLoop = false` + 双 `delayRender` + 连续帧稳态计数器移植到所有含异步流式资源（3D Tiles、Mapbox 矢量瓦片、远程 glTF）的 `remotion-explainer-video` 组件中。
- **关联 Pattern**：[hand-drawn-pixel-stylization-and-animation-remake-loop](../patterns/hand-drawn-pixel-stylization-and-animation-remake-loop.md) · [agentic-video-and-3d-toolchain-matrix](../patterns/agentic-video-and-3d-toolchain-matrix.md) · [deterministic-code-film-contract](../patterns/deterministic-code-film-contract.md)

## Cross-Referenced Specimens

- [A-007 · 12 个手绘与像素动效开源仓库管线 + @seeconvm Fable 5.2 20 章全流程实战课程](https://oumuatown.com/articles/2026-11-27-0xnicc0-12-hand-drawn-motion-repos.md) — 手绘像素动效七仓补位与二十章代码成片排障资产库
- [P-014 · 手绘像素风格化、参考动效逐帧逆向复刻与多运行时确定性寻帧闭环（Hand-Drawn/Pixel Stylization, Animation Remake & Deterministic Stepping Loop）](https://oumuatown.com/patterns/hand-drawn-pixel-stylization-and-animation-remake-loop.md) — 手绘像素四通道风格化、逆向逐帧复刻与多引擎离线寻帧闭环
- [P-001 · Agent 驱动视频剪辑、2D/3D 动画与跨宿主技能选型矩阵（Agentic Video, 3D & Skill Toolchain Matrix）](https://oumuatown.com/patterns/agentic-video-and-3d-toolchain-matrix.md) — 视频生成、三维自动化与跨宿主技能选型边界与避坑矩阵
- [P-004 · 确定性代码成片帧契约与无损流式渲染管线（Deterministic Code-Film Contract）](https://oumuatown.com/patterns/deterministic-code-film-contract.md) — 纯时间函数、单主时钟与无头流式直写消除代码成片漂移
- [R-099 · anthropics/claude-plugins-official](https://oumuatown.com/repos/anthropics__claude-plugins-official.md) — 官方插件供应链：外链全锁SHA，配策略全审与CAS自动回退
