🎭

faceswap

مخاطر متوسطة ⚙️ الأوامر الخارجية🌐 الوصول إلى الشبكة🔑 متغيرات البيئة📁 الوصول إلى نظام الملفات

تبديل الوجوه في مقاطع الفيديو باستخدام الذكاء الاصطناعي

يعد تبديل الوجوه في مقاطع الفيديو يدويًا عملية بطيئة تتطلب برامج متخصصة. تعمل هذه المهارة على أتمتة سير العمل بالكامل باستخدام واجهة برمجة تطبيقات verging.ai، حيث تقبل الملفات المحلية أو روابط YouTube/Bilibili كمدخلات وتقدم النتيجة مباشرة.

يدعم: Claude Codex Code(CC)
⚠️ 61 ضعيف
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "faceswap". Run /faceswap with video ./video.mp4 and face ./face.jpg

النتيجة المتوقعة:

  • Checking video duration: 22 seconds
  • Credits needed: 22 (normal mode)
  • Uploading video to cloud storage...
  • Job created: job_id=295
  • Progress: 25%... 50%... 75%... 100%
  • Result: https://img.panpan8.com/face-swap/2026-05-31/result.mp4

استخدام "faceswap". Swap the face in a YouTube clip from 10-25 seconds in HD mode

النتيجة المتوقعة:

  • Downloading video from YouTube...
  • Trimming to 10-25 seconds...
  • Uploading trimmed video (15 seconds, HD = 45 credits)...
  • Job created: job_id=296
  • Status: COMPLETED after 45 seconds
  • Result downloaded to: ./result_hd.mp4

التدقيق الأمني

مخاطر متوسطة
v3 • 6/8/2026

The skill is a documentation/instruction file (no executable code) that guides an AI assistant to run shell commands (yt-dlp, ffmpeg, curl) and make API calls to verging.ai. All 82 static findings are false positives in context: backtick patterns are markdown code examples, URLs are legitimate API endpoints, API key references are standard authentication documentation, and temp directory access is standard media processing. The combination of network + credentials + external commands is expected for this use case. No malicious intent detected. Risk level is medium due to the breadth of system access required.

2
الملفات التي تم فحصها
225
الأسطر التي تم تحليلها
9
النتائج
3
إجمالي عمليات التدقيق
مشكلات متوسطة المخاطر (1)
Broad system access required
The skill requires yt-dlp, ffmpeg, ffprobe, and curl binaries plus the VERGING_API_KEY environment variable. While all usages are documented and legitimate for face-swap workflows, the combination of network access, external command execution, credential handling, and filesystem write access represents a significant attack surface if the skill were modified maliciously. This is a known characteristic of media-processing skills, not a current vulnerability.
مشكلات منخفضة المخاطر (4)
Temp directory usage in /tmp
The skill uses /tmp/verging-faceswap/ for intermediate video and image files. This is standard practice for media processing but files may persist if not cleaned up. The documentation recommends cleanup. Low risk.
Static analyzer false positives: backtick patterns
The static scanner flagged 44 instances of 'Ruby/shell backtick execution' in markdown files. These are all code-block examples in documentation showing curl, ffmpeg, and yt-dlp commands. They are not executable code in the skill itself. False positive.
Static analyzer false positives: hardcoded URLs
17 URL references flagged as suspicious are all legitimate API endpoints (verging.ai/api/v1/*) and documentation links. False positive.
Static analyzer false positives: weak cryptography
The 'weak cryptographic algorithm' findings at SKILL.md:3 and SKILL.md:33 are likely false positives triggered by the term 'key' in API key context or video codec references (libx264). No actual cryptographic operations are performed by the skill.

عوامل الخطر

⚙️ الأوامر الخارجية (5)
🌐 الوصول إلى الشبكة (5)
🔑 متغيرات البيئة (3)
📁 الوصول إلى نظام الملفات (3)
تم تدقيقه بواسطة: claude عرض سجل التدقيق →

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
22
المجتمع
52
الأمان
91
الامتثال للمواصفات

ماذا يمكنك بناءه

تعديلات سريعة لصناع المحتوى

قم بتبديل وجه في مقطع قصير لمحتوى وسائل التواصل الاجتماعي دون فتح محرر فيديو.

استبدال الوجه في مقاطع YouTube

قدم رابط YouTube وصورة وجه، واحصل على النتيجة المبدلة التي يتم تنزيلها تلقائيًا.

أتمتة تبديل الوجوه على دفعات

استخدم أمر CLI بشكل متكرر بمدخلات مختلفة لمعالجة مقاطع فيديو متعددة بالتسلسل.

جرّب هذه الموجهات

تبديل أساسي لملف محلي
Run /faceswap with video ./video.mp4 and face image ./face.jpg to swap the face.
رابط YouTube مع التقليص
Run /faceswap with video https://youtube.com/watch?v=xxx, face https://example.com/face.jpg, trimming from 10 to 25 seconds in HD mode and auto-downloading the result.
صورة وجه بعيدة مع إخراج مخصص
Run /faceswap with video ./input.mp4, a remote face image URL, and save the output to /tmp/result.mp4.
سير عمل كامل مع فحص الرصيد
First check my verging.ai credit balance, then run /faceswap with the provided video and face URL, trim to 15 seconds, use HD mode, and download the result.

أفضل الممارسات

  • قم بتعيين متغير البيئة VERGING_API_KEY قبل تشغيل المهارة لتجنب تمرير المفتاح في الأوامر
  • قم بتقليص مقاطع الفيديو إلى أقصر مقطع مطلوب لتقليل استهلاك الرصيد
  • استخدم الوضع العادي للمعاينات ووضع HD للإخراج النهائي فقط لتوفير الرصيد
  • قم بتنظيف /tmp/verging-faceswap/ بعد المعالجة لتجنب ترك ملفات الوسائط على القرص

تجنب

  • لا تمرر مفتاح واجهة برمجة التطبيقات مباشرة في سطر الأوامر حيث قد يظهر في سجل shell أو قوائم العمليات
  • لا تستخدم جسم JSON (-d) لنقطة نهاية upload-video؛ فهي تتطلب بيانات النموذج متعدد الأجزاء (-F)
  • لا تحاول رفع صورة الوجه بشكل منفصل عبر /upload-video؛ تقبل نقطة نهاية create-job صورة الوجه مباشرة كـ swap_image=@path

الأسئلة المتكررة

ما هو الحد الأقصى لطول الفيديو المدعوم؟
30 ثانية. يتم تقليص مقاطع الفيديو الأطول من 30 ثانية تلقائيًا.
كيف أحصل على مفتاح واجهة برمجة تطبيقات verging.ai؟
قم بزيارة verging.ai، وسجل الدخول، وانقر على صورتك في أعلى اليمين، وانتقل إلى API Keys لإنشاء مفتاح.
ما هي الأدوات الخارجية المطلوبة؟
yt-dlp لتنزيل مقاطع الفيديو، وffmpeg وffprobe للتقليص، وcurl لطلبات واجهة برمجة التطبيقات.
كم تكلفة تبديل الوجه؟
الوضع العادي يكلف رصيد واحد لكل ثانية. وضع HD يكلف 3 أرصدة لكل ثانية.
هل يمكنني استخدام روابط YouTube وBilibili؟
نعم، تدعم المهارة روابط فيديو YouTube وBilibili من خلال yt-dlp.
أين يتم تخزين الملفات المؤقتة؟
يتم تخزين الملفات الوسيطة في /tmp/verging-faceswap/ ويجب تنظيفها بعد الاستخدام.

تفاصيل المطور

المؤلف

verging.ai

الترخيص

MIT

مرجع

main

بنية الملفات

📄 README.md

📄 SKILL.md