# Send Youtube Transcribe Skill 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": "youtube-transcribe-skill",
    "name": "Youtube Transcribe Skill",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/feiskyer/youtube-transcribe-skill",
    "canonicalUrl": "https://clawhub.ai/feiskyer/youtube-transcribe-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/youtube-transcribe-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=youtube-transcribe-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/youtube-transcribe-skill"
    },
    "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/youtube-transcribe-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/youtube-transcribe-skill",
    "agentUrl": "https://openagent3.xyz/skills/youtube-transcribe-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/youtube-transcribe-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/youtube-transcribe-skill/agent.md"
  }
}
```
## Documentation

### YouTube Transcript Extraction

Extract subtitles/transcripts from a YouTube video URL and save them as a local file.

Input YouTube URL: $ARGUMENTS

### Step 1: Verify URL and Get Video Information

Verify URL Format: Confirm the input is a valid YouTube URL (supports youtube.com/watch?v= or youtu.be/ formats).


Get Video Information: Use WebFetch or firecrawl to fetch the page and extract the video title for subsequent file naming.

### Step 2: CLI Quick Extraction (Priority Attempt)

Use command-line tools to quickly extract subtitles.

Check Tool Availability:
Execute which yt-dlp.

If yt-dlp is found, proceed to subtitle download.
If yt-dlp is NOT found, skip immediately to Step 3.



Execute Subtitle Download (Only if yt-dlp is found):

Tip: Always add --cookies-from-browser to avoid sign-in restrictions. Default to chrome.
Retry Logic: If yt-dlp fails with a browser error (e.g., "Could not open Chrome"), ask the user to specify their available browser (e.g., firefox, safari, edge) and retry.

# Get the title first (try chrome first)
yt-dlp --cookies-from-browser=chrome --get-title "[VIDEO_URL]"

# Download subtitles
yt-dlp --cookies-from-browser=chrome --write-auto-sub --write-sub --sub-lang zh-Hans,zh-Hant,en --skip-download --output "<Video Title>.%(ext)s" "[VIDEO_URL]"



Verify Results:

Check the command exit code.
Exit code 0 (Success): Subtitles have been saved locally, task complete.
Exit code non-0 (Failure):

If error is related to browser/cookies, ask user for correct browser and retry Step 2.
If other errors (e.g., video unavailable), proceed to Step 3.

### Step 3: Browser Automation (Fallback)

When the CLI method fails or yt-dlp is missing, use browser UI automation to extract subtitles.

Check Tool Availability:

Check if chrome-devtools-mcp tools (specifically mcp__plugin_claude-code-settings_chrome__new_page) are available.
CRITICAL CHECK: If chrome-devtools-mcp is NOT available AND yt-dlp was NOT found in Step 2:

STOP execution.
Notify the User: "Unable to proceed. Please either install yt-dlp (for fast CLI extraction) OR configure chrome-devtools-mcp (for browser automation)."





Initialize Browser Session (If tools are available):
Call mcp__plugin_claude-code-settings_chrome__new_page to open the video URL.

### 3.2 Analyze Page State

Call mcp__plugin_claude-code-settings_chrome__take_snapshot to read the page accessibility tree.

### 3.3 Expand Video Description

Reason: The "Show transcript" button is usually hidden within the collapsed description area.

Search the snapshot for a button labeled "...more", "...更多", or "Show more" (usually located in the description block below the video title).
Call mcp__plugin_claude-code-settings_chrome__click to click that button.

### 3.4 Open Transcript Panel

Call mcp__plugin_claude-code-settings_chrome__take_snapshot to get the updated UI snapshot.
Search for a button labeled "Show transcript", "显示转录稿", or "内容转文字".
Call mcp__plugin_claude-code-settings_chrome__click to click that button.

### 3.5 Extract Content via DOM

Reason: Directly reading the accessibility tree for long lists is slow and consumes many tokens; DOM injection is more efficient.

Call mcp__plugin_claude-code-settings_chrome__evaluate_script to execute the following JavaScript:

() => {
  // Select all transcript segment containers
  const segments = document.querySelectorAll("ytd-transcript-segment-renderer");
  if (!segments.length) return "BUFFERING"; // Retry if empty

  // Iterate and format as "timestamp text"
  return Array.from(segments)
    .map((seg) => {
      const time = seg.querySelector(".segment-timestamp")?.innerText.trim();
      const text = seg.querySelector(".segment-text")?.innerText.trim();
      return \`${time} ${text}\`;
    })
    .join("\\n");
};

If it returns "BUFFERING", wait a few seconds and retry.

### 3.6 Save and Cleanup

Use the Write tool to save the extracted text as a local file (e.g., <Video Title>.txt).
Call mcp__plugin_claude-code-settings_chrome__close_page to release resources.

### Output Requirements

Save the subtitle file to the current working directory.
Filename format: <Video Title>.txt
File content format: Each line should be Timestamp Subtitle Text.
Report upon completion: File path, subtitle language, total number of lines.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: feiskyer
- Version: 0.1.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-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/youtube-transcribe-skill)
- [Send to Agent page](https://openagent3.xyz/skills/youtube-transcribe-skill/agent)
- [JSON manifest](https://openagent3.xyz/skills/youtube-transcribe-skill/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/youtube-transcribe-skill/agent.md)
- [Download page](https://openagent3.xyz/downloads/youtube-transcribe-skill)