/effects
引數:$ARGUMENTS
所有操作均從此技能所在的資料夾執行(此檔案所在的資料夾,通常是 ~/.claude/skills/effects),稱為 SKILL_DIR。以使用者的語言回覆(預設為法文)。
1. 確認安裝
執行 node SKILL_DIR/scripts/effects.mjs doctor。如果出現任何 ✗ 符號,告知使用者這是一次性安裝(需 3–10 分鐘,下載約 1–2 GB),然後在背景執行 bash SKILL_DIR/setup.sh,再執行一次 doctor。如果 doctor 顯示沒有顯示卡,警告標記 ✂ 的特效將會很慢(每張圖片約 15 秒),並建議加上 --seconds 5 或 --fast。
2. 收集必要資料
- 影片剪輯:使用者附加或指定的影片(垂直 9:16 臉部相機效果最佳;任何格式都會裁切成 1080×1920)。如果沒有,請要求提供。切勿自行假設路徑。
- 特效:第一個引數。如果缺失或未知,執行
node SKILL_DIR/scripts/effects.mjs list,顯示清單並詢問使用者。"all" / "toutes" / "aperçu" → 執行sheet指令(步驟 4)。 - 使用者個人資料:如果
SKILL_DIR/profile.json不存在,詢問一次使用者的名字或品牌名稱及其 @ 帳號,然後寫入:{"name": "Salim", "handle": "@salim", "accent": "#ff2d87"}(accent 可選)。之後每次重複使用。 - 文字內容:如果使用者有提供,使用其文字;否則使用預設值。每個特效讀取的選項如下表所示。
3. 渲染,顯示檢查清單
建立一個包含以下 5 個步驟的任務清單,並在腳本印出 ✓ n/5 行時逐一勾選:
- Visage trouvé
- Détouré de la pièce
- Texte placé derrière toi
- Couleurs étalonnées
- Rendu en 4K
node SKILL_DIR/scripts/effects.mjs render <effet> "<clip>" [options]
如果渲染時間較長(標記 ✂ 的特效每張圖片約需 1 秒,若有顯示卡,10 秒影片約需 2–3 分鐘),在背景執行並轉發進度訊息。輸出檔案位於剪輯旁,名為 <clip>-<effet>.mp4(2160×3840)。將此路徑提供給使用者。
實用選項:
| 選項 | 效果 |
|---|---|
--hd | 1080p 而非 4K,速度快一倍 |
--start 3 --seconds 8 | 只保留剪輯的某段區間 |
--smooth | 以 30 fps 而非 15 fps 進行去背(時間加倍,快速動作更流暢) |
--fast | 快速但較粗糙的去背(頭髮周圍保留部分背景) |
--images <folder> | 用於 orbit、phone-fan、profile-wall、tier-list 特效的 Reels 截圖 |
--grade warm|cool|bw|none | 色彩調校(預設為暖色) |
--accent "#00c2ff" | 主要顏色 |
--props '{"notes":["…"]}' | 其他屬性(JSON) |
在長時間的 ✂ 渲染之前,如果使用者的文字較長或特殊,請先執行預覽(約 30 秒)並查看結果:
node SKILL_DIR/scripts/effects.mjs still <effet> "<clip>" [same options]
4. 在他們的剪輯上查看全部 36 種特效
node SKILL_DIR/scripts/effects.mjs sheet "<clip>" [--name … --handle …]
此指令會產生 <clip>-36-effets.jpg(每種特效各一個畫面)。將圖片顯示給使用者,以便他們選擇。
各特效讀取的文字
在 --headline 或 --title 中,用 *星星* 環繞某個單詞可為其著色。\n 表示換行。
| 特效 | 讀取的選項(預設值以方括號標示) |
|---|---|
| glass-widgets | --name --handle --followers [71K],--props '{"chart":{"values":[…],"labels":[…],"unit":"K"}}' |
| documentary ✂ | --headline ["UN *CLIP.*\n36 EFFETS.\n*ZÉRO* APP."] --name --handle --kicker --word(幽靈文字) |
| orbit ✂ | --images |
| kallaway-split | --props '{"chart":{"title":"Mes 7 meilleurs reels\npar *vues*","values":[615,353,…],"labels":["Reel 1",…],"unit":"K"}}' |
| spotlight ✂ | --word [CLAUDIT](一個簡短單詞效果最佳) |
| checklist | --props '{"steps":[["Visage trouvé","chaque frame"],…]}'(5 組) |
| timeline | --title ["Claude *le monte*"] --headline(晶片) |
| lineup | --title |
| shortcut-rain | 無 |
| red-collage ✂ | --headline --word(背景文字) |
| comment-box | --comment ["claude 🔥"] --handle |
| cover-star ✂ | --name(巨大標題)--headline --handle |
| headline-wall | --props '{"notes":["…","…","…","…"]}' |
| phone-fan | --word [MES REELS] --handle --images |
| rabbit-hole | 無 |
| profile-wall | --handle --name --followers --images |
| noise | 無 |
| the-bill | --name --handle |
| split-headline | --title ["Claude *monte* mes reels."](以星星標記的單詞會突出顯示) |
| pastel-word ✂ | --word [REELS] |
| tier-list | --title --images |
| polaroid | --title(說明文字,預設為名稱) |
| filmstrip | 無 |
| comic-book | --word [BOUM] |
| glitch | --word [GLITCH] |
| duotone | --word [FOCUS] --accent |
| scanline | --title |
| cinema | --kicker [Chapitre I] --title(字幕) |
| breaking-news | --headline --word --name --handle |
| quote-card | --title(引言)--name --handle |
| countdown | --accent |
| progress-ring | --word [regardé] --handle |
| emoji-burst | 無 |
| neon-frame | --word [live] --accent |
| typewriter | --title 或 --headline |
| zoom-punch | --title(每次打擊一個單詞) |
如果發生錯誤
clip introuvable:檢查路徑,若包含空格請加上引號。- 字型來自 Google Fonts,Remotion 在首次渲染時會下載無頭 Chrome:兩者都需要網路連線。
- ✂ 特效中人物不明顯或有多人時:去背會保留所有偵測到的人物。請告知使用者此情況。
- 準備的檔案會快取在
SKILL_DIR/.work/中(每個剪輯一個資料夾)。隨時可刪除此資料夾以釋放空間。