Communitygithub.com

remotion-dev/add-cli-option

新增一個 Remotion CLI 或設定選項,透過建立 AnyRemotionOption、註冊 CLI 解析、連結設定 setter 並更新文件。在新增或轉換命令列旗標或 Remotion 選項時使用。

add-cli-option 是什麼?

此技能專為在 Remotion 專案中新增或轉換 CLI 或設定選項而設計。開發者可以透過建立一個 AnyRemotionOption 物件來定義選項的行為與預設值,將其註冊到 CLI 參數解析系統中,並在 Remotion 內部連結對應的 config setter,以確保選項能夠被正確讀取與應用。同時,技能還會要求更新相關文件(例如 CLI 說明或使用手冊),以保持一致的開發體驗。此技能主要在 Claude Code 或類似支援 markdown 驅動開發的 AI 代理平台上使用,適合所有需要擴展 Remotion 功能(例如新增自訂渲染參數或轉換現有環境變數為正式 CLI 選項)的場景。藉由自動化這些繁複的流程,不僅能減少人為錯誤,也能加速功能迭代。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/remotion-dev/remotion/tree/main/.agents/skills/add-cli-option

在你喜歡的 AI 中提問

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

說明文件

add-cli-option 是做什麼的?

新增一個 Remotion CLI 或設定選項,透過建立 AnyRemotionOption、註冊 CLI 解析、連結設定 setter 並更新文件。在新增或轉換命令列旗標或 Remotion 選項時使用。

步驟說明

  1. 建立選項定義:在 packages/core/src/options/ 目錄下建立一個新的 AnyRemotionOption 實例,包含名稱、類型、預設值與說明。
  2. 註冊 CLI 解析:在 packages/cli/src/parse-command-line.ts 或對應的 CLI 解析檔案中,將新選項對應的命令列旗標(例如 --my-flag)註冊到解析器中。
  3. 連結 config setter:在 packages/core/src/config/ 中的適當模組內,實作設定 setter 與 getter,並將 CLI 解析結果傳遞給 config。
  4. 更新文件:修改 packages/docs/docs/cli/ 或 packages/docs/docs/config/ 下的說明文件,以包含新選項的用法與範例。
  5. 測試與驗證:新增測試案例確保選項在不同情境下正常運作,包括 CLI 傳入與 config 物件設定。

注意:若選項用於轉換現有環境變數或設定,務必同時廢棄舊有方式並提供遷移指南。

Individual skills in this repo

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

remotion-dev/add-bug

Add a new Remotion bug entry to packages/bugs/api/[v].ts. Use when the user describes a bug and affected Remotion versions that should be surfaced through the bugs API.

remotion-dev/add-effect

Add a new effect to @remotion/effects, including implementation, package exports, docs, demos, preview images, Remotion skill updates, tests, formatting, and builds.

remotion-dev/add-expert

Add a new expert to the Remotion experts page

remotion-dev/add-new-package

Add a new package to the Remotion monorepo, including package scaffolding, monorepo registration, documentation, build scripts, tests, and release checklist updates. Use when creating a new @remotion package.

remotion-dev/add-sfx

Add a new sound effect to @remotion/sfx

remotion-dev/add-webcodecs-bug

Add a browser WebCodecs bug to the Remotion Mediabunny WebCodecs bugs docs page. Use when given a Chromium, WebKit, or Firefox issue URL that should be tracked in packages/docs/docs/mediabunny/webcodecs-bugs.mdx, especially when needing to look up the issue title, filing date, reporter, and resolution state before editing the MDX table.

remotion-dev/docs-demo

Add an interactive demo to the Remotion documentation. Use when creating a new <Demo> component for docs pages.

remotion-dev/homepage-video-assets

Use when rendering or replacing Remotion homepage creator strip videos, especially transparent Chrome WebM and Safari MP4 assets copied into both promo-pages and docs.

remotion-dev/make-pr

Open a pull request for the current feature

remotion-dev/remotion

Rebuild, install, and reload the private Remotion Canvas Capture unpacked Chrome extension. Use when the extension needs to be restored after a Codex worktree was deleted, rebuilt after source changes, moved to its durable install directory, or reloaded in Chrome or Chrome Canary.

remotion-dev/remotion-best-practices

Router for all Remotion skills

remotion-dev/remotion-captions

Transcribing, displaying and animating captions

remotion-dev/remotion-create

Create a new Remotion video

remotion-dev/remotion-docs

Search Remotion documentation

remotion-dev/remotion-interactivity

Structure Remotion markup for interactivity

remotion-dev/remotion-maps

Remotion Map animation knowledge

remotion-dev/remotion-markup

Content, animation and effects best practices

remotion-dev/remotion-multimedia

Interacting with Mediabunny

remotion-dev/remotion-render

Export a Remotion video

remotion-dev/remotion-saas

Build an app with Remotion

相關技能