🎥 Make videos programmatically with React
`@remotion/skills`: Add `/remotion-docs` skill (#9084)
Copilot900f4043a29f
diff --git a/packages/docs/docs/ai/skills.mdx b/packages/docs/docs/ai/skills.mdxindex d13fdd9d3b..078eafc983 100644--- a/packages/docs/docs/ai/skills.mdx+++ b/packages/docs/docs/ai/skills.mdx@@ -69,3 +69,9 @@ Use this when elements are not selectable or editable as you would like them toGuidance for browser-based multimedia handling with Mediabunny.Use this for advice on how to get video and audio metadata.++### `/remotion-docs`++Search the Remotion documentation and fetch any page as Markdown.++Use this to look up current API references, component props, and package guides before implementing.diff --git a/packages/skills/skills/remotion-best-practices/SKILL.md b/packages/skills/skills/remotion-best-practices/SKILL.mdindex cdd1a4b9f6..475df135ee 100644--- a/packages/skills/skills/remotion-best-practices/SKILL.md+++ b/packages/skills/skills/remotion-best-practices/SKILL.md@@ -32,3 +32,7 @@ When working with Captions, load [Remotion Captions](remotion-captions/SKILL.md)## Creating a SaaS, automation or applicationUse the [Remotion SaaS skill](remotion-saas/SKILL.md) for knowledge about Remotion-powered SaaS apps, such as `<Player>`, rendering on Lambda, Vercel, Cloudflare, via Express.js, client-side rendering, or for finding the right SaaS template.++## Looking up Remotion APIs and documentation++To find and read current Remotion documentation, load [Remotion Docs](remotion-docs/SKILL.md).diff --git a/packages/skills/skills/remotion-best-practices/remotion-docs b/packages/skills/skills/remotion-best-practices/remotion-docsnew file mode 120000index 0000000000..b188b15954--- /dev/null+++ b/packages/skills/skills/remotion-best-practices/remotion-docs@@ -0,0 +1 @@+../remotion-docs\ No newline at end of filediff --git a/packages/skills/skills/remotion-docs/SKILL.md b/packages/skills/skills/remotion-docs/SKILL.mdnew file mode 100644index 0000000000..86ead4c910--- /dev/null+++ b/packages/skills/skills/remotion-docs/SKILL.md@@ -0,0 +1,47 @@+---+name: remotion-docs+description: Search and fetch Remotion documentation pages+metadata:+ tags: remotion, docs, documentation, search+---++This skill teaches you how to discover and read current Remotion documentation.+If this is not relevant, load [Remotion Best Practices](../remotion-best-practices/SKILL.md) instead.++## Searching the docs++Use the Algolia search API to find relevant documentation pages:++```+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"+ }+ ]+}+```++Each hit contains a `url` field pointing to the documentation page.++## Fetching a page as Markdown++Append `.md` to any Remotion docs URL to retrieve its Markdown source (saves tokens):++```+https://www.remotion.dev/docs/use-video-config.md+https://www.remotion.dev/docs/sequence.md+https://www.remotion.dev/docs/lambda/rendermediaonlambda.md+```++## Workflow++1. Search Algolia for the concept or API you need.+2. Pick the most relevant URL(s) from the results.+3. Fetch each URL with the `.md` suffix.+4. Implement using the current documentation rather than memorized API knowledge.