mcpField
R
remotion-docs

remotion-docs

github.com/remotion-dev开发5.8k215.2k 次安装2 天前更新
代码仓库

关于 remotion-docs

用于查找和阅读最新 Remotion 文档的技能,指导开发者通过 Algolia 搜索文档,并以 Markdown 获取页面后再实现 API。

主要功能

  1. 01搜索 Remotion 文档
  2. 02以 Markdown 获取文档
  3. 03参考当前 API 资料

适用场景

  1. 01查找 Remotion API 文档
  2. 02以节省令牌的格式阅读文档页面

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/remotion-dev/skills --skill remotion-docs

安装后在 Claude Code 中输入/remotion-docs确认已加载。

附带文件agents/openai.yamlassets/remotion-icon.svg

详细介绍

本技能将教你如何查找和阅读 Remotion 的最新文档。 如果这不相关,请改为加载 Remotion Best Practices。

搜索文档

使用 Algolia 搜索 API 查找相关文档页面:

POST https://plsduol1ca-dsn.algolia.net/1/indexes/*/queries?x-algolia-api-key=3e42dbd4f895fe93ff5cf40d860c4a85&x-algolia-application-id=PLSDUOL1CA
Content-Type: application/x-www-form-urlencoded

{
  "requests": [
    {
      "query": "<your search query>",
      "indexName": "remotion",
      "params": "attributesToRetrieve=[\"hierarchy.lvl0\",\"hierarchy.lvl1\",\"hierarchy.lvl2\",\"url\"]&hitsPerPage=10"
    }
  ]
}

每条搜索结果都包含一个指向文档页面的 url 字段。

获取 Markdown 格式的页面

在任意 Remotion 文档 URL 后添加 .md,即可获取其 Markdown 源文件(节省 token):

https://www.remotion.dev/docs/use-video-config.md
https://www.remotion.dev/docs/sequence.md
https://www.remotion.dev/docs/lambda/rendermediaonlambda.md

工作流

  1. 在 Algolia 中搜索所需的概念或 API。
  2. 从结果中选择最相关的 URL。
  3. 为每个 URL 添加 .md 后缀并获取页面。
  4. 根据最新文档进行实现,而不是依赖记忆中的 API 知识。

评论

支持 Markdown