# Send Youtube Summary 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "yt-summary",
    "name": "Youtube Summary",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/chapati23/yt-summary",
    "canonicalUrl": "https://clawhub.ai/chapati23/yt-summary",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/yt-summary",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=yt-summary",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "requirements.txt",
      "scripts/extract.py",
      "scripts/prompts.py",
      "scripts/utils.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "yt-summary",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T21:26:02.093Z",
      "expiresAt": "2026-05-08T21:26:02.093Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=yt-summary",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=yt-summary",
        "contentDisposition": "attachment; filename=\"yt-summary-1.3.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "yt-summary"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/yt-summary"
    },
    "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/yt-summary",
    "downloadUrl": "https://openagent3.xyz/downloads/yt-summary",
    "agentUrl": "https://openagent3.xyz/skills/yt-summary/agent",
    "manifestUrl": "https://openagent3.xyz/skills/yt-summary/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/yt-summary/agent.md"
  }
}
```
## Documentation

### YouTube Summary Skill

Summarize YouTube videos by extracting transcripts via TranscriptAPI.com and generating structured summaries.

### Prerequisites

Python 3.10+
A TranscriptAPI.com account ($5/mo for 1,000 transcripts)
Optional: pass (Unix password manager) for secure key storage

### Installation

Sign up at transcriptapi.com and get your API key
Provide the API key via one of these methods:

Environment variable (simplest): export TRANSCRIPT_API_KEY="your-key-here"
pass password store (most secure): pass insert transcriptapi/api-key


Install Python dependencies:
pip install -r skills/youtube-summary/requirements.txt

### Detection

Trigger on messages containing YouTube URLs matching any of:

youtube.com/watch?v=ID
youtu.be/ID
youtube.com/shorts/ID
m.youtube.com/watch?v=ID
youtube.com/live/ID

### ⚠️ Critical Rules

NEVER use web_search as a fallback. If transcript extraction fails, report the error and stop.
NEVER fabricate transcript content. Only summarize what the extraction script returns.
Always run the extraction script. Do not skip it, even for well-known videos.

### Step 1: Extract transcript

If using pass:

_yt_key_file=$(mktemp) && pass transcriptapi/api-key > "$_yt_key_file" && python3 skills/youtube-summary/scripts/extract.py "YOUTUBE_URL_OR_ID" --api-key-file "$_yt_key_file"; rm -f "$_yt_key_file"

If using env var:

python3 skills/youtube-summary/scripts/extract.py "YOUTUBE_URL_OR_ID"

(Reads TRANSCRIPT_API_KEY from the environment automatically.)

Security note: The pass + temp file approach avoids exposing the key in ps output or shell history. The env var approach is simpler but the key is visible in the process environment.

Parse stdout:

PROGRESS: lines → relay to user as status updates (optional)
ERROR: lines → relay error to user, stop
RESULT: line → parse the JSON after RESULT:  — contains: header, transcript, language, tokens, title, channel, duration_str

### Step 2: Summarize the transcript

Use the extracted transcript to generate a summary. The summary language must match the transcript language (from the language field).

If tokens < 50000 — single-pass: summarize the full transcript in one request.

If tokens ≥ 50000 — tell the user it's a long video and summarize the first ~40K tokens with a note that it was truncated.

Default summary format (use when no custom prompt given):

{header}

**TL;DR:** 2-3 sentence summary.

**Key Points:**
• Point one
• Point two
• (3-7 total)

**Notable Quotes:** (only if genuinely quotable lines exist)
> "Quote here"

Custom prompt — if the user included text alongside the URL, append it as additional instructions for the summary.

### Step 3: Reply

Keep output under 4000 characters for Telegram
If the summary would exceed 4000 chars, send the TL;DR first, then the rest as a follow-up
Always include the header line from the extraction result

### Error Handling

ERROR: API_ERROR: Invalid API key → "TranscriptAPI key is invalid. Check pass transcriptapi/api-key."
ERROR: No transcript available → "This video doesn't have captions available."
ERROR: Video not found → "Couldn't find that video — double-check the URL."
Any other ERROR: → relay the message as-is. Do NOT fall back to web_search.

### Why TranscriptAPI?

YouTube aggressively blocks datacenter/IPv6 ranges from accessing transcripts. Most cloud VPS (Hetzner, DigitalOcean, AWS, etc.) are blocked — direct transcript fetching fails for most videos when running from a server.

TranscriptAPI.com proxies requests through residential IPs, bypassing these blocks reliably. The $5/mo plan covers 1,000 transcript fetches.

💡 Tip: Add instructions after the URL to customize the summary (e.g. "focus on the technical details").
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: chapati23
- Version: 1.3.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T21:26:02.093Z
- Expires at: 2026-05-08T21:26:02.093Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/yt-summary)
- [Send to Agent page](https://openagent3.xyz/skills/yt-summary/agent)
- [JSON manifest](https://openagent3.xyz/skills/yt-summary/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/yt-summary/agent.md)
- [Download page](https://openagent3.xyz/downloads/yt-summary)