Finalize a developed Remotion Element, add it to the docs gallery, render its previews, and run repository checks.
npx skills add https://github.com/remotion-dev/remotion --skill publish-element
The source of truth for design and quality criteria is the Element Guidelines. Read them completely before making changes. If this skill and the guidelines diverge on acceptance criteria, follow the guidelines.
This skill owns the technical publication workflow. It starts with an Element scaffold created by the scaffold-element skill and does not create the initial development scaffold.
Confirm these files and the matching entry in packages/docs/src/components/Elements/element-definitions.ts already exist:
packages/docs/elements/<category>/<slug>/index.mdxpackages/docs/elements/<category>/<slug>/<slug>.tsxDo not launch the Studio from this skill. Before continuing, require the developer to explicitly confirm that they visually reviewed element-<category>-<slug> in the docs Remotion Studio and that it looks correct. Do not infer approval from completed tests or from the agent's own inspection. If the developer has not approved it or more visual development is needed, give them these commands and stop the publishing workflow:
bun run build
cd packages/docs
bun run remotion
Review the finished source, MDX page, and central definition against the Element Guidelines and the technical requirements in the scaffold-element skill. Resolve placeholder content and finalize the description, display name, contributors, dimensions, duration, installationMode, declared dependencies, preview padding, poster frame, and preview object.
Confirm that posterUrl and videoUrl use flat https://remotion.media/elements/<category>-<slug>-preview.png and .mp4 paths. Preview assets are composited onto the standard background and use MP4 for broad browser, social-card, and embed compatibility, even when the Element itself supports transparency. These explicit URLs are the publishing source of truth.
When the Element has Studio-editable controls, also review it using the interactivity best practices skill.
If the Element imports a package that is not available to packages/docs, add it to packages/docs/package.json, run bun install, and include bun.lock.
packages/docs/src/components/Elements/element-definitions.ts places the Element in the generated overview and category library.'<category>/<slug>/index' to the matching category in packages/docs/elements-sidebars.ts.Preserve the ordering used by the sidebar. Do not add a manual link to the category index: the visual and raw Markdown libraries are generated from the central definitions. If the task explicitly introduces a new category, create an index that renders the filtered ElementLibrary and add its sidebar group as part of this step.
Before considering gallery registration complete, verify that the Element appears on the overview page, its category page, and the generated raw Markdown routes.
Do not edit packages/docs/src/remotion/Root.tsx; Element compositions are derived from the central definitions.
Format the changed TypeScript and TSX files only. For the usual files:
bunx oxfmt \
packages/docs/elements/<category>/<slug>/<slug>.tsx \
packages/docs/src/components/Elements/element-definitions.ts \
packages/docs/elements-sidebars.ts \
--write
cd packages/docs
bun test src/test/elements.test.ts
Perform the preview verification required by the Element Guidelines. Render only the new Element, using its posterFrame from element-definitions.ts:
cd packages/docs
mkdir -p .element-previews/<category>/<slug>
bunx remotion still \
src/remotion/entry.ts \
element-<category>-<slug> \
.element-previews/<category>/<slug>/preview.png \
--frame=<poster-frame> --gl=angle --overwrite
bunx remotion render \
src/remotion/entry.ts \
element-<category>-<slug> \
.element-previews/<category>/<slug>/preview.mp4 \
--codec=h264 --crf=23 --image-format=png --pixel-format=yuv420p \
--gl=angle --muted --overwrite
cd ../..
Do not run render-element-previews without an Element filter, because that renders every Element and clears the complete preview output. If uploading is explicitly requested later, use:
cd packages/docs
bun run render-element-previews --element=<category>/<slug> --upload
cd ../..
The filtered command clears and regenerates only that Element's nested local review output, then uses its explicit metadata URLs for the public locations and R2 keys.
Inspect packages/docs/.element-previews/<category>/<slug>/preview.png and preview.mp4, then give both paths to the developer for visual review. Stop and wait for the developer to explicitly confirm that both previews look correct. Do not run the final repository checks or finish the publishing workflow until that approval is received.
Do not commit the ignored output or upload previews unless uploading was explicitly requested and maintainer R2 credentials are available.
bun run build
bun run stylecheck
git diff --check
git status --short
Before finishing, verify that the page is listed in the generated overview and category library, the generated raw Markdown, and the sidebar; all checks pass; and only intended files are part of the change. Report the commands run, their results, and the preview files inspected.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take remotion-dev/publish-element from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.