$npx -y skills add remotion-dev/remotion --skill remotion-docsSearch and fetch Remotion documentation pages
| 1 | This skill teaches you how to discover and read current Remotion documentation. |
| 2 | If this is not relevant, load [Remotion Best Practices](../remotion-best-practices/SKILL.md) instead. |
| 3 | |
| 4 | ## Searching the docs |
| 5 | |
| 6 | Use the Algolia search API to find relevant documentation pages: |
| 7 | |
| 8 | ``` |
| 9 | POST https://plsduol1ca-dsn.algolia.net/1/indexes/*/queries?x-algolia-api-key=3e42dbd4f895fe93ff5cf40d860c4a85&x-algolia-application-id=PLSDUOL1CA |
| 10 | Content-Type: application/x-www-form-urlencoded |
| 11 | |
| 12 | { |
| 13 | "requests": [ |
| 14 | { |
| 15 | "query": "<your search query>", |
| 16 | "indexName": "remotion", |
| 17 | "params": "attributesToRetrieve=[\"hierarchy.lvl0\",\"hierarchy.lvl1\",\"hierarchy.lvl2\",\"url\"]&hitsPerPage=10" |
| 18 | } |
| 19 | ] |
| 20 | } |
| 21 | ``` |
| 22 | |
| 23 | Each hit contains a `url` field pointing to the documentation page. |
| 24 | |
| 25 | ## Fetching a page as Markdown |
| 26 | |
| 27 | Append `.md` to any Remotion docs URL to retrieve its Markdown source (saves tokens): |
| 28 | |
| 29 | ``` |
| 30 | https://www.remotion.dev/docs/use-video-config.md |
| 31 | https://www.remotion.dev/docs/sequence.md |
| 32 | https://www.remotion.dev/docs/lambda/rendermediaonlambda.md |
| 33 | ``` |
| 34 | |
| 35 | ## Workflow |
| 36 | |
| 37 | 1. Search Algolia for the concept or API you need. |
| 38 | 2. Pick the most relevant URL(s) from the results. |
| 39 | 3. Fetch each URL with the `.md` suffix. |
| 40 | 4. Implement using the current documentation rather than memorized API knowledge. |