[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F15Z95292QYZ7CSPJ4SJDV":3,"skill-same:01M6F15Z95292QYZ7CSPJ4SJDV":104},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":69,"ownerHtmlUrl":70,"ownerBlogUrl":6,"ownerDescription":71,"updatedAt":72,"install":73,"resources":85},"01M6F15Z95292QYZ7CSPJ4SJDV","faceswap",null,"AI Face Swap - Swap face in video, deepfake face replacement, face swap for portraits. Use from command line. Supports local video files, YouTube, Bilibili URLs, auto-download, real-time progress tracking.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[5,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"files","line","progress","ffmpeg","local","swap","time","yt-dlp","youtube","command line","auto","use","command","curl","Media","Video","api","real-time","dlp","2026-11-10 10:12:30",false,"---\nname: faceswap\ndescription: AI Face Swap - Swap face in video, deepfake face replacement, face swap for portraits. Use from command line. Supports local video files, YouTube, Bilibili URLs, auto-download, real-time progress tracking.\nversion: 1.0.5\nauthor: verging.ai\ncategory: media\nuser-invocable: true\nmetadata:\n  openclaw:\n    requires:\n      env:\n        - VERGING_API_KEY\n      bins:\n        - yt-dlp\n        - ffmpeg\n        - ffprobe\n        - curl\n    primaryEnv: VERGING_API_KEY\n---\n\n# faceswap - AI Face Swap Service\n\nYou are a CLI assistant for AI face swap. Users can use you to call verging.ai's AI face swap functionality.\n\n## User Input Format\n\nUsers will provide commands like:\n```\n\u002Ffaceswap --video \u003Cvideo file or URL> --face \u003Cface image or URL> [options]\n```\n\n## Options\n\n| Option | Short | Description | Default |\n|--------|-------|-------------|---------|\n| --video | -v | Target video file path or URL | Required |\n| --face | -f | Face image file path or URL | Required |\n| --start | -s | Video start time in seconds | 0 |\n| --end | -e | Video end time in seconds | Video duration |\n| --hd | -h | HD mode (3 credits\u002Fsec vs 1 credit\u002Fsec) | false |\n| --api-key | -k | Your API Key | VERGING_API_KEY env |\n| --output | -o | Result save path | Current directory |\n| --download | -d | Auto download result to local | false |\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| VERGING_API_KEY | Your API Key |\n| VERGING_API_URL | API base URL (default: https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1) |\n\n## API Endpoints\n\n| Endpoint | Method | Format | Purpose |\n|----------|--------|--------|---------|\n| \u002Fapi\u002Fv1\u002Fauth\u002Fme | GET | - | Get user info (including credits) |\n| \u002Fapi\u002Fv1\u002Fupload-video | POST | Form Data | Get R2 presigned upload URL |\n| \u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job | POST | Form Data | Create face swap job |\n| \u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs | GET | - | Query job status |\n\n## Authentication\n\nAll API requests require authentication via the `Authorization` header:\n\n```bash\nAuthorization: ApiKey \u003Cyour_api_key>\n```\n\n**⚠️ Important: There is a space between \"ApiKey\" and your key!**\n\nExample:\n```bash\n# ✅ Correct\nAuthorization: ApiKey vrg_sk_123456...\n\n# ❌ Wrong (missing space)\nAuthorization: ApiKeyvrg_sk_123456...\n```\n\nYou can get your API key from https:\u002F\u002Fverging.ai (Login → Click avatar → API Keys).\n\n### Authentication Examples\n\n```bash\n# Check user info\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fauth\u002Fme\n\n# Step 1: Get presigned upload URL for video\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"video_file_name=video.mp4\" \\\n  -F \"job_type=face-swap\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fupload-video\n\n# The response contains:\n# {\n#   \"result\": {\n#     \"url\": \"https:\u002F\u002F...r2.cloudflarestorage.com\u002F...mp4?X-Amz-...\",\n#     \"public_url\": \"https:\u002F\u002Fimg.panpan8.com\u002Fface-swap\u002F2026-03-11\u002Fxxx.mp4\"\n#   }\n# }\n\n# Step 2: Upload video file to the presigned URL\ncurl -X PUT -T \u002Fpath\u002Fto\u002Fvideo.mp4 \\\n  \"https:\u002F\u002F...presigned-url-from-step-1...\"\n\n# Step 3: Get presigned upload URL for face image (same method)\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"video_file_name=face.jpg\" \\\n  -F \"job_type=face-swap\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fupload-video\n\n# Step 4: Upload face image to presigned URL\ncurl -X PUT -T \u002Fpath\u002Fto\u002Fface.jpg \\\n  \"https:\u002F\u002F...presigned-url...\"\n\n# Step 5: Create face swap job\n# Use the public_url from Step 2 and Step 4\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"swap_image=@\u002Fpath\u002Fto\u002Fface.jpg\" \\\n  -F \"file_name=face.jpg\" \\\n  -F \"target_video_url=https:\u002F\u002Fimg.panpan8.com\u002Fface-swap\u002F2026-03-11\u002Fxxx.mp4\" \\\n  -F \"user_video_duration=10\" \\\n  -F \"is_hd=false\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job\n\n# Query job status\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  \"https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs?job_ids=123\"\n\n# List all jobs\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs\n```\n\n**Important:** \n- Replace `$VERGING_API_KEY` with your actual API key or set it as an environment variable\n- The `Authorization` header uses format: `ApiKey \u003Ckey>` (not `Bearer \u003Ckey>`)\n\n## Dependencies\n\nThis skill requires:\n- **Remote video download capability** (only when user provides a URL like YouTube, Bilibili, etc.):\n  - Preferred: install yt-dlp skill first: `npx skills add lwmxiaobei\u002Fyt-dlp-skill --skill yt-dlp`\n  - Alternative: `npx skills add mapleshaw\u002Fyt-dlp-downloader-skill --skill yt-dlp-downloader`\n  - Alternative: use `yt-dlp` directly if already available on the system\n  - If no download tool is available, prompt the user to download the video locally first\n- **ffmpeg\u002Fffprobe**: For video trimming (optional, only when --start or --end specified)\n- **curl**: Usually built-in\n\n## Processing Flow\n\nWhen the user executes the \u002Ffaceswap command, please follow these steps:\n\n### 0. Check Dependencies\n\n- If user provides a remote video URL, check if `yt-dlp` is available: `which yt-dlp`\n- For local videos without trimming, no additional tools needed\n\n### 1. Parse Arguments\n- Parse --video and --face parameters\n- If remote URL, need to download to local\n- Parse time range --start and --end\n\n### 2. Download Remote Resources\n- If user provides a remote video URL (YouTube, Bilibili, etc.):\n  - Try `yt-dlp \"URL\" -o \u002Ftmp\u002Fverging-faceswap\u002Fvideo.mp4`\n  - If yt-dlp is not available, suggest installing the yt-dlp skill: `npx skills add lwmxiaobei\u002Fyt-dlp-skill --skill yt-dlp`\n  - If installation is not possible, ask the user to download the video locally first\n- For images: use curl to download\n- Temp directory: \u002Ftmp\u002Fverging-faceswap\u002F\n\n### 3. Get Video Duration\n- Use ffprobe: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 \"video.mp4\"\n\n### 4. Trim Video (if --start or --end specified)\n- If user specifies --start or --end parameters, first trim the video\n- Use ffmpeg to trim specified time range:\n  ```\n  ffmpeg -i input.mp4 -ss \u003Cstart> -to \u003Cend> -c copy output.mp4\n  ```\n- Or re-encode for accurate frames:\n  ```\n  ffmpeg -i input.mp4 -ss \u003Cstart> -to \u003Cend> -c:v libx264 -c:a aac output.mp4\n  ```\n- Use trimmed video as the file to upload\n\n### 5. Check User Credits\n- Call \u002Fapi\u002Fv1\u002Fauth\u002Fme to get user info\n- Calculate required credits: Normal mode 1 credit\u002Fsec, HD mode 3 credits\u002Fsec\n- If insufficient credits, prompt user to recharge\n\n### 6. Upload Video to R2\n- Call `\u002Fapi\u002Fv1\u002Fupload-video` with Form Data (`video_file_name`, `job_type`)\n- Get presigned upload URL from response\n- Upload video file to presigned URL using PUT method\n- Save the `public_url` from response for next step\n\n### 7. Upload Face Image to R2\n- Same as step 6, but use the face image file\n- Save the `public_url`\n\n### 8. Create Job\n- Call `\u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job` with Form Data:\n  - `swap_image`: Face image file (will be re-uploaded to R2)\n  - `file_name`: Original file name\n  - `target_video_url`: The video public URL from step 6\n  - `user_video_duration`: Video duration in seconds\n  - `is_hd`: true\u002Ffalse\n\n### 8. Poll Job Status\n- Every 5 seconds call \u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs?job_ids=xxx to query status\n- Status: PENDING → PROCESSING → COMPLETED\u002FFAILED\n- Show progress percentage\n\n### 9. Return Result\n- After completion, return result_url\n- If user specified --download or --output, use curl to download result\n\n## Credit Consumption\n\n| Mode | Credits\u002Fsec |\n|------|-------------|\n| Normal | 1 credit\u002Fsec |\n| HD | 3 credits\u002Fsec |\n\n## Example Conversation\n\nUser: \u002Ffaceswap -v .\u002Finput.mp4 -f .\u002Fmy-face.jpg --start 5 --end 15\n\nYou:\n1. Parse arguments\n2. Check if video needs trimming (--start\u002F--end specified)\n3. Get video duration\n4. Check credits sufficient (10 seconds = 10 credits)\n5. Upload video and face image to R2\n6. Create face swap job\n7. Poll for completion\n8. Return result URL\n\nUser: \u002Ffaceswap -v .\u002Finput.mp4 -f .\u002Fmy-face.jpg\n\nYou:\n1. Parse arguments - local video, no trimming needed\n2. Get video duration\n3. Call API to get user info\n4. Check credits sufficient\n5. Upload video and face image to R2\n6. Create face swap job\n7. Poll for completion\n8. Return result URL\n\n## Notes\n\n- This skill uses yt-dlp for remote video downloads (YouTube, Bilibili, etc.)\n- For local videos without trimming, no additional tools needed\n- API Key can be passed via --api-key parameter or read from environment variable VERGING_API_KEY\n- **If user doesn't provide API Key**: Prompt user to get one at https:\u002F\u002Fverging.ai (Login → Click user avatar → API Keys), and guide them to set the environment variable\n- Video duration max 30 seconds\n- Support downloading videos from YouTube, Bilibili, etc. using yt-dlp\n- Show progress during processing\n- **If --start or --end is specified, video will be trimmed locally before upload, saving upload time and processing cost**\n\n## Privacy and Security\n\n### API Key\n\nThis skill requires a **verging.ai API Key**. Get it from:\n1. Visit https:\u002F\u002Fverging.ai\n2. Login → Click user avatar (top right) → Select \"API Keys\"\n3. Create a new API key\n\n**Security recommendations:**\n- Use a dedicated API key with minimal permissions\n- Never expose your API key in public repositories\n- Set it via environment variable: `export VERGING_API_KEY=\"your_key\"`\n\n### Data Handling\n\n- **Video uploads:** Videos are uploaded to verging.ai's R2 storage for processing\n- **Temporary files:** Local temporary files are stored in `\u002Ftmp\u002Fverging-faceswap\u002F` and cleaned up after processing\n- **Result videos:** Processed videos are returned via a public URL\n- **No data retention:** This skill does not store any user data beyond the session\n\n### Legal Notice\n\n- Only process media you have rights to\n- Be aware of local laws regarding deepfake technology\n- Use responsibly and ethically\n","# faceswap - AI Face Swap Service\n\nYou are a CLI assistant for AI face swap. Users can use you to call verging.ai's AI face swap functionality.\n\n## User Input Format\n\nUsers will provide commands like:\n```\n\u002Ffaceswap --video \u003Cvideo file or URL> --face \u003Cface image or URL> [options]\n```\n\n## Options\n\n| Option | Short | Description | Default |\n|--------|-------|-------------|---------|\n| --video | -v | Target video file path or URL | Required |\n| --face | -f | Face image file path or URL | Required |\n| --start | -s | Video start time in seconds | 0 |\n| --end | -e | Video end time in seconds | Video duration |\n| --hd | -h | HD mode (3 credits\u002Fsec vs 1 credit\u002Fsec) | false |\n| --api-key | -k | Your API Key | VERGING_API_KEY env |\n| --output | -o | Result save path | Current directory |\n| --download | -d | Auto download result to local | false |\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| VERGING_API_KEY | Your API Key |\n| VERGING_API_URL | API base URL (default: https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1) |\n\n## API Endpoints\n\n| Endpoint | Method | Format | Purpose |\n|----------|--------|--------|---------|\n| \u002Fapi\u002Fv1\u002Fauth\u002Fme | GET | - | Get user info (including credits) |\n| \u002Fapi\u002Fv1\u002Fupload-video | POST | Form Data | Get R2 presigned upload URL |\n| \u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job | POST | Form Data | Create face swap job |\n| \u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs | GET | - | Query job status |\n\n## Authentication\n\nAll API requests require authentication via the `Authorization` header:\n\n```bash\nAuthorization: ApiKey \u003Cyour_api_key>\n```\n\n**⚠️ Important: There is a space between \"ApiKey\" and your key!**\n\nExample:\n```bash\n# ✅ Correct\nAuthorization: ApiKey vrg_sk_123456...\n\n# ❌ Wrong (missing space)\nAuthorization: ApiKeyvrg_sk_123456...\n```\n\nYou can get your API key from https:\u002F\u002Fverging.ai (Login → Click avatar → API Keys).\n\n### Authentication Examples\n\n```bash\n# Check user info\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fauth\u002Fme\n\n# Step 1: Get presigned upload URL for video\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"video_file_name=video.mp4\" \\\n  -F \"job_type=face-swap\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fupload-video\n\n# The response contains:\n# {\n#   \"result\": {\n#     \"url\": \"https:\u002F\u002F...r2.cloudflarestorage.com\u002F...mp4?X-Amz-...\",\n#     \"public_url\": \"https:\u002F\u002Fimg.panpan8.com\u002Fface-swap\u002F2026-03-11\u002Fxxx.mp4\"\n#   }\n# }\n\n# Step 2: Upload video file to the presigned URL\ncurl -X PUT -T \u002Fpath\u002Fto\u002Fvideo.mp4 \\\n  \"https:\u002F\u002F...presigned-url-from-step-1...\"\n\n# Step 3: Get presigned upload URL for face image (same method)\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"video_file_name=face.jpg\" \\\n  -F \"job_type=face-swap\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Fupload-video\n\n# Step 4: Upload face image to presigned URL\ncurl -X PUT -T \u002Fpath\u002Fto\u002Fface.jpg \\\n  \"https:\u002F\u002F...presigned-url...\"\n\n# Step 5: Create face swap job\n# Use the public_url from Step 2 and Step 4\ncurl -X POST -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  -F \"swap_image=@\u002Fpath\u002Fto\u002Fface.jpg\" \\\n  -F \"file_name=face.jpg\" \\\n  -F \"target_video_url=https:\u002F\u002Fimg.panpan8.com\u002Fface-swap\u002F2026-03-11\u002Fxxx.mp4\" \\\n  -F \"user_video_duration=10\" \\\n  -F \"is_hd=false\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job\n\n# Query job status\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  \"https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs?job_ids=123\"\n\n# List all jobs\ncurl -H \"Authorization: ApiKey $VERGING_API_KEY\" \\\n  https:\u002F\u002Fverging.ai\u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs\n```\n\n**Important:** \n- Replace `$VERGING_API_KEY` with your actual API key or set it as an environment variable\n- The `Authorization` header uses format: `ApiKey \u003Ckey>` (not `Bearer \u003Ckey>`)\n\n## Dependencies\n\nThis skill requires:\n- **Remote video download capability** (only when user provides a URL like YouTube, Bilibili, etc.):\n  - Preferred: install yt-dlp skill first: `npx skills add lwmxiaobei\u002Fyt-dlp-skill --skill yt-dlp`\n  - Alternative: `npx skills add mapleshaw\u002Fyt-dlp-downloader-skill --skill yt-dlp-downloader`\n  - Alternative: use `yt-dlp` directly if already available on the system\n  - If no download tool is available, prompt the user to download the video locally first\n- **ffmpeg\u002Fffprobe**: For video trimming (optional, only when --start or --end specified)\n- **curl**: Usually built-in\n\n## Processing Flow\n\nWhen the user executes the \u002Ffaceswap command, please follow these steps:\n\n### 0. Check Dependencies\n\n- If user provides a remote video URL, check if `yt-dlp` is available: `which yt-dlp`\n- For local videos without trimming, no additional tools needed\n\n### 1. Parse Arguments\n- Parse --video and --face parameters\n- If remote URL, need to download to local\n- Parse time range --start and --end\n\n### 2. Download Remote Resources\n- If user provides a remote video URL (YouTube, Bilibili, etc.):\n  - Try `yt-dlp \"URL\" -o \u002Ftmp\u002Fverging-faceswap\u002Fvideo.mp4`\n  - If yt-dlp is not available, suggest installing the yt-dlp skill: `npx skills add lwmxiaobei\u002Fyt-dlp-skill --skill yt-dlp`\n  - If installation is not possible, ask the user to download the video locally first\n- For images: use curl to download\n- Temp directory: \u002Ftmp\u002Fverging-faceswap\u002F\n\n### 3. Get Video Duration\n- Use ffprobe: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 \"video.mp4\"\n\n### 4. Trim Video (if --start or --end specified)\n- If user specifies --start or --end parameters, first trim the video\n- Use ffmpeg to trim specified time range:\n  ```\n  ffmpeg -i input.mp4 -ss \u003Cstart> -to \u003Cend> -c copy output.mp4\n  ```\n- Or re-encode for accurate frames:\n  ```\n  ffmpeg -i input.mp4 -ss \u003Cstart> -to \u003Cend> -c:v libx264 -c:a aac output.mp4\n  ```\n- Use trimmed video as the file to upload\n\n### 5. Check User Credits\n- Call \u002Fapi\u002Fv1\u002Fauth\u002Fme to get user info\n- Calculate required credits: Normal mode 1 credit\u002Fsec, HD mode 3 credits\u002Fsec\n- If insufficient credits, prompt user to recharge\n\n### 6. Upload Video to R2\n- Call `\u002Fapi\u002Fv1\u002Fupload-video` with Form Data (`video_file_name`, `job_type`)\n- Get presigned upload URL from response\n- Upload video file to presigned URL using PUT method\n- Save the `public_url` from response for next step\n\n### 7. Upload Face Image to R2\n- Same as step 6, but use the face image file\n- Save the `public_url`\n\n### 8. Create Job\n- Call `\u002Fapi\u002Fv1\u002Ffaceswap\u002Fcreate-job` with Form Data:\n  - `swap_image`: Face image file (will be re-uploaded to R2)\n  - `file_name`: Original file name\n  - `target_video_url`: The video public URL from step 6\n  - `user_video_duration`: Video duration in seconds\n  - `is_hd`: true\u002Ffalse\n\n### 8. Poll Job Status\n- Every 5 seconds call \u002Fapi\u002Fv1\u002Ffaceswap\u002Fjobs?job_ids=xxx to query status\n- Status: PENDING → PROCESSING → COMPLETED\u002FFAILED\n- Show progress percentage\n\n### 9. Return Result\n- After completion, return result_url\n- If user specified --download or --output, use curl to download result\n\n## Credit Consumption\n\n| Mode | Credits\u002Fsec |\n|------|-------------|\n| Normal | 1 credit\u002Fsec |\n| HD | 3 credits\u002Fsec |\n\n## Example Conversation\n\nUser: \u002Ffaceswap -v .\u002Finput.mp4 -f .\u002Fmy-face.jpg --start 5 --end 15\n\nYou:\n1. Parse arguments\n2. Check if video needs trimming (--start\u002F--end specified)\n3. Get video duration\n4. Check credits sufficient (10 seconds = 10 credits)\n5. Upload video and face image to R2\n6. Create face swap job\n7. Poll for completion\n8. Return result URL\n\nUser: \u002Ffaceswap -v .\u002Finput.mp4 -f .\u002Fmy-face.jpg\n\nYou:\n1. Parse arguments - local video, no trimming needed\n2. Get video duration\n3. Call API to get user info\n4. Check credits sufficient\n5. Upload video and face image to R2\n6. Create face swap job\n7. Poll for completion\n8. Return result URL\n\n## Notes\n\n- This skill uses yt-dlp for remote video downloads (YouTube, Bilibili, etc.)\n- For local videos without trimming, no additional tools needed\n- API Key can be passed via --api-key parameter or read from environment variable VERGING_API_KEY\n- **If user doesn't provide API Key**: Prompt user to get one at https:\u002F\u002Fverging.ai (Login → Click user avatar → API Keys), and guide them to set the environment variable\n- Video duration max 30 seconds\n- Support downloading videos from YouTube, Bilibili, etc. using yt-dlp\n- Show progress during processing\n- **If --start or --end is specified, video will be trimmed locally before upload, saving upload time and processing cost**\n\n## Privacy and Security\n\n### API Key\n\nThis skill requires a **verging.ai API Key**. Get it from:\n1. Visit https:\u002F\u002Fverging.ai\n2. Login → Click user avatar (top right) → Select \"API Keys\"\n3. Create a new API key\n\n**Security recommendations:**\n- Use a dedicated API key with minimal permissions\n- Never expose your API key in public repositories\n- Set it via environment variable: `export VERGING_API_KEY=\"your_key\"`\n\n### Data Handling\n\n- **Video uploads:** Videos are uploaded to verging.ai's R2 storage for processing\n- **Temporary files:** Local temporary files are stored in `\u002Ftmp\u002Fverging-faceswap\u002F` and cleaned up after processing\n- **Result videos:** Processed videos are returned via a public URL\n- **No data retention:** This skill does not store any user data beyond the session\n\n### Legal Notice\n\n- Only process media you have rights to\n- Be aware of local laws regarding deepfake technology\n- Use responsibly and ethically\n",{"name":5,"author":53,"version":54,"category":55,"metadata":56,"description":7,"user-invocable":63},"verging.ai","1.0.5","media",{"openclaw":57},{"requires":58,"primaryEnv":60},{"env":59,"bins":61},[60],"VERGING_API_KEY",[36,32,62,42],"ffprobe",true,"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":74,"prompt":84,"zipAvailable":63},[75,78,81],{"tool":76,"command":77},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill faceswap",{"tool":79,"command":80},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill faceswap",{"tool":82,"command":83},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill faceswap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002FSKILL.md",[86,92,96,100],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"_meta.json","REFERENCE","参考文档",128,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002F_meta.json",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"openclaw.json",917,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002Fopenclaw.json",{"path":97,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":98,"sourceHtmlUrl":99},"README.md",665,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002FREADME.md",{"path":101,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":102,"sourceHtmlUrl":103},"skill-report.json",17019,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fverging-ai\u002Ffaceswap\u002Fskill-report.json",[105,117,127,136,142,149],{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":113,"publishedAt":48},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[110],{"categoryNo":111,"categoryName":112,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[114,115,116],"model","model hierarchy","model hierarchy skill",{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":123,"publishedAt":48},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[122],{"categoryNo":111,"categoryName":112,"taxonomyType":21,"taxonomyTypeDesc":22},[124,125,126],"MCP","zoom","zoom mcp",{"skillNo":128,"name":129,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":48},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[133,134,135,125],"sdk","zoom apps sdk","apps",{"skillNo":137,"name":138,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":48},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[138],{"skillNo":143,"name":144,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":148,"publishedAt":48},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[147],{"categoryNo":111,"categoryName":112,"taxonomyType":21,"taxonomyTypeDesc":22},[144],{"skillNo":150,"name":151,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":48},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[151]]