١.٠k
★ نجوم
٣٠
↓ تنزيلات
١٣٥
◉ مشاهدات
// تثبيت المهارة
تثبيت المهارة
المهارات هي كود تابع لأطراف ثالثة من مستودعات GitHub العامة. يفحص SkillHub الأنماط الخبيثة المعروفة، لكنه لا يستطيع ضمان السلامة. راجع الكود المصدري قبل التثبيت.
تثبيت عام (على مستوى المستخدم):
npx skillhub install openclaw/skills/universal-video-downloaderتثبيت في المشروع الحالي:
npx skillhub install openclaw/skills/universal-video-downloader --projectskill.install.customTargetHelp
npx skillhub install openclaw/skills/universal-video-downloader --target-dir /path/to/skillsالمسار المقترح: ~/.claude/skills/universal-video-downloader/
محتوى SKILL.md
---
name: universal-video-downloader
description: Download videos from YouTube, Instagram, TikTok, Twitter/X, and 1000+ other sites using yt-dlp. Supports quality selection and automatic cleanup. Use when a user provides a video link from any platform and wants to download it.
metadata: {"openclaw":{"emoji":"🎥","requires":{"bins":["yt-dlp","ffmpeg"]}}}
---
# Universal Video Downloader
Download videos from almost any platform using the powerful `yt-dlp` tool.
## Features
- **Platform Support:** YouTube, Instagram, TikTok, Twitter/X, Facebook, and many more.
- **Quality Selection:** Choose from 144p up to 4K/8K resolutions.
- **Automatic Cleanup:** Files are deleted from the server immediately after successful upload to the chat.
- **Smart Merging:** Automatically merges high-quality video and audio streams into a single MP4 file.
## Workflow
1. **Trigger:** User sends a video link (e.g., YouTube, Instagram).
2. **Information Gathering:** The agent uses `scripts/download.py info` to fetch available qualities and the video title.
3. **User Choice:** The agent presents resolutions to the user and asks which one they prefer.
4. **Download:** Once selected, the agent runs `scripts/download.py download` with the specific Format ID.
5. **Delivery:** The agent sends the resulting file using the `message` tool with `filePath`.
6. **Cleanup:** The agent **must** delete the file from disk using `rm` immediately after the message is successfully sent to save disk space.
## Usage for Agents
### 1. Fetch Video Info
```bash
python3 scripts/download.py info "URL"
```
### 2. Download Specific Format
```bash
python3 scripts/download.py download "URL" "FORMAT_ID"
```
## Safety & Storage
- This skill is intended for temporary processing.
- **CRITICAL:** Always delete the downloaded file after the user receives it to maintain disk space.
الترخيص
الترخيص المُعلن: MIT
MIT License
Copyright (c) 2026 openclaw
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.عرض الترخيص في المستودع المصدري — النسخة المنشورة هناك هي المرجع.
// تثبيت المهارة
تثبيت المهارة
المهارات هي كود تابع لأطراف ثالثة من مستودعات GitHub العامة. يفحص SkillHub الأنماط الخبيثة المعروفة، لكنه لا يستطيع ضمان السلامة. راجع الكود المصدري قبل التثبيت.
تثبيت عام (على مستوى المستخدم):
npx skillhub install openclaw/skills/universal-video-downloaderتثبيت في المشروع الحالي:
npx skillhub install openclaw/skills/universal-video-downloader --projectskill.install.customTargetHelp
npx skillhub install openclaw/skills/universal-video-downloader --target-dir /path/to/skillsالمسار المقترح: ~/.claude/skills/universal-video-downloader/