# Send Video Download FaaS to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "video-download-faas",
    "name": "Video Download FaaS",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/LAsurvivor/video-download-faas",
    "canonicalUrl": "https://clawhub.ai/LAsurvivor/video-download-faas",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/video-download-faas",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=video-download-faas",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/check-status.sh",
      "scripts/download.sh",
      "scripts/kill-download.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/video-download-faas"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/video-download-faas",
    "downloadUrl": "https://openagent3.xyz/downloads/video-download-faas",
    "agentUrl": "https://openagent3.xyz/skills/video-download-faas/agent",
    "manifestUrl": "https://openagent3.xyz/skills/video-download-faas/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/video-download-faas/agent.md"
  }
}
```
## Documentation

### Video Download FaaS

Download videos asynchronously using yt-dlp in isolated background processes. All downloads are saved as MP4 files.

### Overview

This skill manages video downloads as background tasks that:

Start immediately and return control to the user
Continue running even if the session disconnects
Can be monitored for progress
Can be terminated when needed

### When to Use

Use this skill when:

Downloading large videos that take time
Processing multiple videos concurrently
Running downloads on remote/headless systems
Need to continue working while downloading

### Start a Download

scripts/download.sh "https://youtube.com/watch?v=..."

Returns immediately with:

Session ID
Process ID (PID)
Log file location

### Check Status

# List all active downloads
scripts/check-status.sh

# Check specific download
scripts/check-status.sh video_dl_1234567890_12345

### Kill Download

# Graceful stop
scripts/kill-download.sh video_dl_1234567890_12345

# Force kill
scripts/kill-download.sh video_dl_1234567890_12345 --force

### download.sh

Start a video download in background with MP4 output format.

Usage:

download.sh <URL> [output_directory]

Parameters:

URL - Video URL to download (required)
output_directory - Where to save video (optional, default: ~/Downloads)

Output Format:

Downloads are automatically converted to MP4 format
Uses best available MP4 video + M4A audio, merged into MP4
If source isn't MP4, it will be re-encoded to MP4

Returns:

Session ID for tracking
PID for process management
Paths to log and session files

Example:

scripts/download.sh "https://www.youtube.com/watch?v=dQw4w9WgXcQ" /tmp/videos

### check-status.sh

Check download progress and status.

Usage:

# List all sessions
check-status.sh

# Check specific session
check-status.sh <session_id>

Returns:

Process status (running/completed)
Download progress (if running)
Downloaded files (if completed)
Error information (if failed)

### kill-download.sh

Terminate a running download.

Usage:

kill-download.sh <session_id> [--force]

Parameters:

session_id - The session ID from download.sh
--force - Use SIGKILL instead of SIGTERM

### Session Management

Session files are stored in /tmp/ with format:

video_dl_{timestamp}_{pid}.session - Session metadata
video_dl_{timestamp}_{pid}.pid - Process ID
video_dl_{timestamp}_{pid}.log - Download log

Sessions are automatically cleaned up when:

Download completes successfully
Process is killed via kill-download.sh

### FaaS Integration

For containerized/Firecracker execution:

# Run download in isolated container
./run-in-container.sh scripts/download.sh "URL"

# Check from host
scripts/check-status.sh

### Troubleshooting

Download not starting:

Check yt-dlp is installed: yt-dlp --version
Verify URL is accessible: curl -I "URL"

Process not found:

Session may have completed and auto-cleaned
Check ~/Downloads for finished files

Permission denied:

Ensure scripts are executable: chmod +x scripts/*.sh

### Requirements

yt-dlp installed and in PATH
Bash 4.0+
Write access to /tmp and output directory
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: LAsurvivor
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/video-download-faas)
- [Send to Agent page](https://openagent3.xyz/skills/video-download-faas/agent)
- [JSON manifest](https://openagent3.xyz/skills/video-download-faas/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/video-download-faas/agent.md)
- [Download page](https://openagent3.xyz/downloads/video-download-faas)