技能 face-swap
🎭

face-swap

低風險 ⚙️ 外部命令🌐 網路存取📁 檔案系統存取

使用 AI 在影片和圖片中交換臉部與角色

也可從以下取得: agentspace-so,doany-ai

傳統的臉部交換需要複雜的手動編輯或昂貴的專業軟體。此技能透過多個 AI 模型(Wan 2-2 Animate、GPT Image 2 Edit、Flux Kontext、Kling、Nano Banana)進行路由,以自動為您的使用場景選擇正確的方法——影片或靜態、單張或批次、保留動作或保留身份。

支援: Claude Codex Code(CC)
⚠️ 68
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「face-swap」。 將 portrait.jpg 中的臉部換到影片 interview.mp4 中

預期結果:

讓 portrait.jpg 中的角色配合 interview.mp4 中的音訊說話,臉部動作與語音同步

正在使用「face-swap」。 使用 actor.png 中的臉部替換 scene.jpg 中的人物

預期結果:

場景中演員的臉部無縫整合,保留原始姿勢、光線和背景

正在使用「face-swap」。 只將臉部改為 40 歲灰髮有鬍子的男性

預期結果:

保留原始圖片的所有內容,只按照描述更換臉部

安全審計

低風險
v1 • 5/28/2026

Skill is legitimate AI-powered face swapping documentation for a third-party API service (RunComfy). Static findings are false positives: external commands are hardcoded CLI examples in markdown documentation, not executable code; network access is to documented RunComfy API endpoints only; filesystem access is standard CLI token storage documented transparently. The skill includes appropriate consent warnings for dual-use technology. Tool usage is restricted to `Bash(runcomfy *)` only with shell-injection mitigation via JSON input. No malicious patterns or exfiltration detected.

1
已掃描檔案
321
分析行數
7
發現項
1
審計總數
中風險問題 (1)
Dual-Use Technology Without Gating
Face-swapping is inherently sensitive (deepfake potential) but the skill does not gate inputs - the responsibility rests with the operator. The skill appropriately warns to refuse requests targeting real people without consent, but enforcement depends on operator compliance.
低風險問題 (3)
Static Findings False Positive - External Commands
76 instances of 'Ruby/shell backtick execution' detected in SKILL.md are false positives. All are documentation code blocks showing CLI usage examples (`runcomfy run <model> --input '{...}'`). These are hardcoded, legitimate commands in markdown, not executable code with user-controlled input.
Static Findings False Positive - Network URLs
39 'Hardcoded URL' detections are false positives. All are legitimate RunComfy documentation links (runcomfy.com, docs.runcomfy.com) embedded in markdown to reference supported API endpoints.
Static Findings False Positive - Weak Crypto
6 'Weak cryptographic algorithm' detections are false positives. The scanner misidentified documentation text about model selection criteria as cryptographic references. No actual cryptographic algorithms or weak crypto usage exists in this skill.

風險因素

⚙️ 外部命令 (1)
🌐 網路存取 (1)
📁 檔案系統存取 (1)
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
37
社群
79
安全
91
規範符合性

你能建構什麼

建立具有角色身份一致性的品牌內容

在產品圖庫或活動素材中應用相同的代言人身份。使用 Nano Banana Edit 將相同的參考臉部交換到多個場景中,同時保持一致的長寬比和解析度。

使用新角色語音配音影片內容

取得帶有音軌的現有影片,並用新身份替換角色,使其說出原始音訊。Wan 2-2 Animate 會讓新角色配合音軌的節奏和詞彙進行動畫。

製作具有精確臉部放置的英雄活動圖片

對於單張高影響力的圖片,使用 GPT Image 2 Edit 和最多 10 張參考圖片,精確地將肖像中的臉部交換到場景中,同時完全保留姿勢、光線和背景。

試試這些提示

簡單影片臉部交換
將此影片中的臉部換成這張圖片中的臉部
來自音訊的動畫角色
建立一個影片,其中 [character name] 使用此音軌說話。使用 [image URL] 作為角色參考。
批次產品圖片身份交換
將每張產品圖片中的臉部換成第一張圖片中的臉部。其他元素保持不變。
描述臉部變更而不提供參考
這張圖片中的一切保持完全不變,只將臉部改為 [description: age, gender, features]

最佳實務

  • 使用高品質、光線充足、正面姿勢的參考圖片,以獲得最佳臉部交換效果
  • 匹配參考圖片和目標場景的光線條件,以避免臉部看起來不自然
  • 在嘗試複雜的影片動畫之前,先用簡單的單張圖片交換進行測試

避免

  • 不要嘗試從低解析度或高度壓縮的圖片中交換臉部
  • 避免將臉部交換到光線或角度差異很大的場景
  • 未經明確同意,不要使用此功能為真實人物建立合成媒體

常見問題

Wan 2-2 Animate 和 Kling Motion Control 有什麼區別?
Wan 2-2 Animate 使用音訊來驅動角色動畫並提供參考身份圖片。Kling Motion Control 將現有影片表演中的動作轉移到目標角色圖片上。
我可以不提供參考圖片就交換臉部嗎?
是的——Flux Kontext Pro 允許您使用文字描述所需的臉部,而不是提供參考圖片。但是,為了獲得最佳效果,建議使用參考圖片。
我可以在批次中處理多少張圖片?
Nano Banana Edit 每個呼叫支援 1-20 張圖片。第一張圖片通常是身份參考,其餘圖片是需要交換的場景。
支援哪些輸入檔案格式?
輸入媒體必須可透過 HTTPS URL 存取。支援的類型包括常見的圖片格式(JPG、PNG)和 RunComfy 模型支援的影片格式。
如何確保多個影格之間的身份一致性?
使用 Nano Banana Edit,並將身份作為 image_urls 陣列中的第一張圖片。鎖定長寬比和解析度以確保批次一致性。
如果交換後的臉部看起來不自然,我應該怎麼做?
嘗試在提示中明確匹配光線(例如「匹配第一張圖片的膚色和光線」)並確保您的參考圖片與目標場景具有相似的品質和姿勢。

開發者詳情

檔案結構

📄 SKILL.md