Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

tldwtldw 视频

Agent Skill

tldw 用于辅助视频、动画、脚本化剪辑和多媒体生成流程,适合在 OpenClaw 中需要整理视频素材、生成脚本或维护合成项目时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

52,703

周安装

2,132

GitHub Stars

公开资料未说明

下载量

16,544
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tldw(tldw 视频)
来源仓库:https://github.com/vovavvk/tldw
安装命令:
openclaw skills install tldw
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tldw

简介

提取 YouTube 视频文字记录并提供简洁的摘要,突出显示要点、论点和结论,而无需观看完整视频。

SKILL.md

tldw - YouTube Video Summarizer

too long; didn't watch

Extract and summarize YouTube video transcripts quickly and efficiently.

Overview

The tldw skill takes a YouTube URL, extracts the video transcript, and provides a comprehensive summary of the content. This allows you to quickly understand video content without watching the entire video.

Purpose

This skill solves the problem of information overload from video content. Instead of spending 10-60 minutes watching a video, you can get the key points, main arguments, and conclusions in a concise summary within seconds.

When to Use

Use this skill when:

  • A user provides a YouTube video URL and asks for a summary
  • You need to quickly understand video content without watching it
  • You want to analyze or reference specific video content
  • You need to extract information from educational, news, or documentary videos

How It Works

  1. Extraction: Uses yt-dlp to download video transcripts (captions/subtitles)
  2. Cleaning: Applies deduplication to remove artifacts from auto-generated captions
  3. Processing: Analyzes the cleaned transcript directly in the main agent session
  4. Summary: Returns a structured summary with main points, key arguments, and conclusions

Key Features

  • Caching: Downloaded transcripts are cached locally to avoid re-downloading
  • Deduplication: Removes duplicate lines common in auto-generated captions
  • Multi-format support: Works with VTT, SRT, and JSON caption formats
  • Cookie support: Can access age-restricted content with a cookie file
  • Comprehensive summaries: Provides thesis, key examples, comparisons, and conclusions
  • Fast processing: Typical videos summarized in seconds

Attribution

This skill is based on the tldw project by stong. Full attribution and licensing details are available in ATTRIBUTION.md.


Requirements

System Requirements

  • Python: 3.8 or higher
  • Disk space: ~60MB for virtual environment and dependencies, plus additional space for transcript cache

Required Dependencies

The skill uses a Python virtual environment with the following dependencies:

  • yt-dlp: Video transcript downloader (installed via pip)
  • Python standard library: json, re, argparse (built-in)

All dependencies are installed in the local virtual environment at venv/.

Optional Dependencies

  • Cookie file: For accessing age-restricted or members-only content

- Format: Netscape cookie format (can be exported from browser) - Place in skill directory and reference with --cookies flag

Directory Structure

tldw/
├── SKILL.md              # This documentation
├── ATTRIBUTION.md        # Credit to original project
├── LICENSE               # AGPL-3.0 license
├── scripts/
│   └── extract_transcript.py   # Main extraction script
├── cache/                # Cached transcripts (auto-created)
└── venv/                 # Python virtual environment
    ├── bin/
    │   └── yt-dlp        # Video transcript downloader
    └── lib/              # Python packages

Setup

Follow these steps to set up the tldw skill:

  1. Navigate to the skill directory:
   cd tldw/
  1. Create a Python virtual environment:
   python3 -m venv venv
  1. Install dependencies:
   venv/bin/pip install yt-dlp webvtt-py
  1. Verify installation:
   venv/bin/yt-dlp --version
  1. The cache directory will be created automatically on first use

The skill is now ready to use!


Usage Instructions

Basic Usage

When a user provides a YouTube URL and requests a summary, use the following workflow:

  1. Extract the transcript using the extraction script
  2. Parse the JSON output to get the cleaned transcript
  3. Summarize the transcript directly (do not use sub-agents for large transcripts)
  4. Return a structured summary to the user

Command Syntax

cd tldw/ && \
venv/bin/python scripts/extract_transcript.py \
  --json --cache-dir cache "YOUTUBE_URL"

Processing the Output

The script returns JSON with the following structure:

{
  "transcript": "Full cleaned transcript text...",
  "video_id": "video_id_here",
  "title": "Video Title",
  "description": "Video description...",
  "duration": 1234,
  "uploader": "Channel Name",
  "upload_date": "20260101",
  "view_count": 12345,
  "webpage_url": "https://www.youtube.com/watch?v=..."
}

Extract the transcript field and process it directly to create a comprehensive summary.

Command Options

  • --json: Output in JSON format (recommended for parsing)
  • --cache-dir <path>: Specify cache directory (default: cache/)
  • --cookies <file>: Path to Netscape-format cookie file for age-restricted content

Example Workflow

# 1. Extract transcript
cd tldw/ && \
venv/bin/python scripts/extract_transcript.py \
  --json --cache-dir cache "https://www.youtube.com/watch?v=VIDEO_ID"

# 2. Parse the JSON output and extract the transcript field

# 3. Summarize the transcript directly (include main points, key arguments, conclusions)

# 4. Return formatted summary to user

Accessing Age-Restricted Content

For age-restricted or members-only videos, export cookies from your browser:

  1. Install a browser extension like "Get cookies.txt LOCALLY"
  2. Navigate to YouTube while logged in
  3. Export cookies in Netscape format
  4. Save to the tldw directory (e.g., youtube_cookies.txt)
  5. Use with: --cookies youtube_cookies.txt

Error Handling

No Captions Available

Error message: "No subtitles/captions found"

What it means: The video has no auto-generated or manual captions available.

Solution: Inform the user that the video cannot be transcribed because it lacks captions.

Invalid URL

Error message: "ERROR: unable to download video data"

What it means: The URL is malformed, the video doesn't exist, or it's private/deleted.

Solution: Verify the URL is correct and check if the video is publicly accessible.

Age-Restricted Content

Error message: "Sign in to confirm your age" or similar authentication errors

What it means: The video requires age verification or YouTube login.

Solution: Use the --cookies flag with exported browser cookies (see "Accessing Age-Restricted Content" above).

Network/Connection Errors

Error messages: "Unable to download", "Connection timeout", extraction failures

What it means: Network issues, YouTube blocking the request, or outdated yt-dlp that's incompatible with current YouTube.

Solution:

  1. First, update yt-dlp:
   cd tldw/ && \
   venv/bin/pip install --upgrade yt-dlp
  1. Retry the extraction
  2. If still failing: check internet connection or wait and try later

YouTube frequently changes their API, so keeping yt-dlp updated is essential.

Cache Issues

Symptoms: Permission errors, disk full errors

What it means: The cache directory has permission problems or insufficient disk space.

Solution: Check available disk space with df -h and verify write permissions on the cache/ directory.

Large Transcript Handling

Note: Transcripts over 50,000 characters may take longer to process.

Best practice: Process large transcripts directly in the main agent session. Do not delegate to sub-agents, as they have been found unreliable with large payloads.

Debugging

To see full error output (not just the last 100 lines):

cd tldw/ && \
venv/bin/python scripts/extract_transcript.py \
  --json --cache-dir cache "YOUTUBE_URL"

To inspect cached transcripts:

ls -lh tldw/cache/

Limitations

Caption Dependency

  • The skill only works with videos that have captions/subtitles available
  • Cannot transcribe videos with only audio (no built-in speech-to-text capability)
  • Auto-generated captions may contain errors, typos, or timing artifacts
  • Deduplication helps clean up auto-generated caption issues but isn't perfect

Language Support

  • Depends on available caption languages provided by YouTube
  • The script extracts whatever captions are available (auto-generated or manual)
  • Non-English captions work, but summarization quality depends on the language model's capabilities
  • English captions typically provide the best results

Video Length

  • Very long videos (2+ hours) may produce extremely large transcripts (100k+ characters)
  • Processing time increases proportionally with transcript length
  • No hard limit, but practical considerations for context window and processing time apply

YouTube-Only

  • Currently only supports YouTube URLs
  • Does not work with other video platforms (Vimeo, Dailymotion, TikTok, etc.)
  • While yt-dlp supports many platforms, this script is optimized specifically for YouTube

Private/Restricted Content

  • Cannot access truly private videos (not shared publicly)
  • Members-only or channel membership content requires cookies from an authenticated session
  • Live streams may not have captions available until after the stream has ended
  • Some geographic restrictions cannot be bypassed even with cookies

Deduplication Limitations

  • The deduplication logic removes consecutive duplicate lines
  • May occasionally remove legitimate repeated phrases or refrains
  • Designed primarily for auto-generated caption artifacts, not all repetition scenarios
  • Manual captions typically don't need deduplication

No Audio Extraction

  • This skill extracts text transcripts only, not audio files
  • For audio extraction or processing, other tools (like yt-dlp directly with audio flags) would be needed
  • Focus is on text-based content analysis, not media files

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.89%
按下载量换算11,893

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills