Communitygithub.com

Hownameee/short-videos

所有 Remotion 技能的路由器

short-videos 是什麼?

此技能作為一個智慧路由器,根據使用者請求的具體任務,自動載入相應的 Remotion 專用技能參考文件。它涵蓋了從建立新專案、編寫 React Markup、處理多媒體(如修剪、裁剪影片)、使用地圖(Mapbox、MapLibre、MapTiler、GeoJSON)到實現互動性、字幕以及 SaaS 應用程式開發等全方位功能。支援的平台包括 Cursor 和具備內建瀏覽器的其他 AI 代理客戶端,並指導如何啟動 Remotion Studio 進行即時預覽,或使用指令列進行渲染。此外,它還提供查閱最新 Remotion API 文件、升級依賴套件以及為影片添加互動式編輯界面的最佳實踐,能有效簡化開發流程並提升使用者體驗。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/Hownameee/short-videos/tree/HEAD/.agent/skills/remotion-best-practices

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

保留使用者所做的變更

使用者可能會在對話以外的程式碼中進行編輯。

如果您發現中途有出乎意料的變更,請不要覆蓋它,假設這是使用者有意為之,或先請求確認。

建立影片

如果使用者要求製作、建立或建置新的影片或組合,請載入建立新的 Remotion 影片,無論是否已存在 Remotion 專案。

新專案設定

如果目前沒有 Remotion 專案存在,請載入建立新的 Remotion 專案

React Markup 最佳實踐

如果您正在編寫 Remotion React Markup,請載入 Remotion Markup 最佳實踐

地圖

對於靜態地圖、動態路線與標記、地理說明、Mapbox、MapLibre、MapTiler、GeoJSON 或 3D 地理俯瞰動畫,請載入 Remotion 地圖。

多媒體

若要在瀏覽器中實現多媒體任務,例如修剪、裁剪影片或從中取得中繼資料,請載入 Remotion 多媒體

提升互動性

透過良好地組織 Remotion Markup,我們可以讓使用者在 Studio 中互動式地更改內容並將變更寫回程式碼。如果相關: 互動性最佳實踐

開啟預覽

如果使用者要求「製作」影片、「建立」影片等。 除非使用者非常明確要求,否則預設不要渲染影片。使用者想要看到的是互動式預覽。 一旦專案可以執行,請在建立或編輯組合之前啟動 Studio 並在瀏覽器中開啟預覽。保持其開啟狀態,以便使用者可以觀看進度並提供方向。

如果您使用的是 Cursor

執行 Studio 時不要使用 --no-open,以便自動開啟瀏覽器:

npx remotion studio

如果您使用的是其他具備內建瀏覽器的 AI 代理客戶端

您可以使用上述指令讓 Studio 開啟瀏覽器,或執行:

npx remotion studio --no-open

這將啟動一個長時間運行的程序,並輸出預覽的伺服器 URL。 如果伺服器已經啟動,它將輸出 URL。 如果您使用 --no-open,請在應用程式內瀏覽器中開啟精確輸出的 URL,並驗證 Studio 已載入。一旦組合存在,驗證其影片預覽是否載入。如果您無法在其中開啟,請執行不帶 --no-open 的 Studio。 您可以透過導覽至 /[composition-id] 來造訪特定組合,例如 http://localhost:3000/MapAnimation。

:::note Studio 支援 WebMCP 工具。 :::

如果您沒有內建瀏覽器

這將在瀏覽器中開啟 Studio,如果已經開啟則重新聚焦。

npx remotion studio

更多選項

若要啟動 Remotion Studio 中的專案、開啟其確切的本機 URL 或設定 Studio CLI 標誌,請載入 Remotion Studio。

渲染影片

僅在使用者非常明確要求時才進行渲染。 例如「渲染影片」、「匯出」、「給我 MP4」。

預覽也提供了更直觀的渲染介面,因此請考慮使用它而不是命令列進行渲染。

npx remotion render

如需更多選項,請參閱渲染。

對於超出簡單 npx remotion render 的進階渲染,請參閱:渲染最佳實踐

字幕

處理字幕時,請載入 Remotion 字幕。

建立 SaaS、自動化或應用程式

使用 Remotion SaaS 技能 了解基於 Remotion 的 SaaS 應用程式,例如 <Player>、在 Lambda、Vercel、Cloudflare 上渲染、透過 Express.js 渲染、客戶端渲染,或尋找合適的 SaaS 範本。

查閱 Remotion API 和文件

若要查找和閱讀最新的 Remotion 文件,請載入 Remotion 文件。

升級

若要升級 Remotion、相關套件、相容的 Mediabunny 套件以及已安裝的 Remotion Agent 技能,請載入 Remotion 升級。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

Hownameee/short-videos

Generate, revise or troubleshoot local Kokoro narration, pronunciation and scene word timing. Reuse verified unchanged clips; inspect the Python environment before setup changes. Exclude research, visuals, music composition and publishing.

Hownameee/short-videos

Transcribing, displaying and animating captions

Hownameee/short-videos

Structure Remotion markup for interactivity

Hownameee/short-videos

Remotion Map animation knowledge

Hownameee/short-videos

Content, animation and effects best practices

Hownameee/short-videos

Upgrade Remotion, and related packages

Hownameee/short-videos

>- Run Phase 1 of the shared short-video workflow: turn a raw topic or prompt into a sourced research pack and 2–4 distinct video directions, each with a defensible tension hook, promise, payoff, beats, visual approach, duration range, and risks. Use whenever the user asks for video ideas, angles, research, facts, hooks, topic analysis, or choices before scriptwriting. Stop for the user's direction choice and do not silently continue into script or production.

Hownameee/short-videos

Produce an approved short video or correct an existing video's background sound, emotion, captions, mix or export. Generate only changed narration, render and review a current preview, run technical and editorial QC, then export. Exclude script-only and general audio-advice requests.

Hownameee/short-videos

>- Run Phase 2 of the shared short-video workflow: convert an explicitly selected direction and its research into a reviewable beat sheet, narration, flexible scene timing, on-screen text, visual plan, captions, music and SFX cues, pronunciation notes, payoff, takeaway, and contextual CTA. Use whenever a user asks to write, revise, preview, or approve a short-video script. Stop for script approval and do not generate TTS or render video yet.

Hownameee/short-videos

>- Design and review a coherent visual system for short-form video before and during Remotion implementation. Use for video art direction, scene UI, typography, layout, color, diagrams, captions, motion, transitions, platform safe areas, or visual-quality review. Use Remotion skills separately for API, timeline, media, Studio, and rendering behavior; do not use this skill for narration-only or research-only work.

Hownameee/short-videos

Coordinate prompt-to-short-video discovery, scripting and production. Resume existing projects and route soundtrack or mix corrections directly to production. Preserve direction choice and script approval; exclude general audio advice.

相關技能