agentleFS
eisen0419eisen0419/revolve/skills/yt-search/SKILL.md

yt-search

Skill9 starsChanged 7 months agoMITView on GitHub

This skill should be used when the user asks to 'search YouTube', 'find YouTube videos', 'yt-search', or 'find video transcripts'. Searches YouTube videos via yt-dlp and extracts transcripts for research purposes.

  • Installs packages

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cold-outreach.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search YouTube videos and extract transcripts for research purposes.

    line 9
  2. Distinctive:

    Verify yt-dlp is available:

    line 19
  3. Very specific:

    If missing: inform the user "yt-dlp is required.

    line 25
  4. Very specific:

    Read config.md in the plugin root to get output_dir.

    line 30
  5. Very specific:

    If config.md is missing: inform the user "Run /revolve-setup first to configure Revolve."

    line 32
  6. Very specific:

    Default output_dir fallback: ~/Downloads/revolve-research

    line 33
  7. Distinctive:

    Use yt-dlp to search YouTube for the query and parse results:

    line 39
  8. Distinctive:

    Ask user to select a video number from the results, or enter a YouTube URL directly.

    line 66
  9. Distinctive:

    If no English subtitles are available, try other available languages:

    line 77
  10. Very specific:

    Search results come from yt-dlp's ytsearch prefix.

    line 105
  11. Distinctive:

    Only downloads subtitles, never full video files

    line 107

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/yt-search

Search YouTube videos and extract transcripts for research purposes.

Trigger

User runs /yt-search <query> or asks to search YouTube / find video transcripts.

Instructions

Step 0: Dependency Check

Verify yt-dlp is available:

which yt-dlp
  • If missing: inform the user "yt-dlp is required. Install via pip install yt-dlp or brew install yt-dlp"
  • Abort if dependency is missing — do not proceed.

Step 1: Read Config

Read config.md in the plugin root to get output_dir.

  • If config.md is missing: inform the user "Run /revolve-setup first to configure Revolve."
  • Default output_dir fallback: ~/Downloads/revolve-research

Extract the output_dir value from the YAML frontmatter in config.md.

Step 2: Search YouTube

Use yt-dlp to search YouTube for the query and parse results:

yt-dlp "ytsearch5:<query>" --flat-playlist --dump-json 2>/dev/null | python3 -c "
import json, sys
results = []
for line in sys.stdin:
    d = json.loads(line)
    results.append({
        'title': d.get('title', ''),
        'url': d.get('url', ''),
        'duration': d.get('duration_string', ''),
        'views': d.get('view_count', 0),
        'date': d.get('upload_date', ''),
        'channel': d.get('channel', '')
    })
print('| # | Title | Channel | Duration | Views | URL |')
print('|---|-------|---------|----------|-------|-----|')
for i, r in enumerate(results, 1):
    print(f\"| {i} | {r['title'][:50]} | {r['channel'][:20]} | {r['duration']} | {r['views']:,} | {r['url']} |\")
"

Present results as a numbered table with title, channel, duration, and URL.

Step 3: Select Video

Ask user to select a video number from the results, or enter a YouTube URL directly.

Step 4: Extract Transcript

Extract transcript/subtitles using yt-dlp with the output_dir from config:

yt-dlp --write-auto-sub --sub-lang en --skip-download \
  --output "<output_dir>/%(title)s.%(ext)s" <url>

If no English subtitles are available, try other available languages:

yt-dlp --write-auto-sub --skip-download \
  --output "<output_dir>/%(title)s.%(ext)s" <url>

Step 5: Format and Save

Parse the subtitle file (vtt/srt) and format as clean text, stripping timestamps and duplicate lines.

Save to <output_dir>/yt-<video-id>-transcript.md with frontmatter:

---
source: youtube
url: <video_url>
title: <video_title>
date: <today>
---

<transcript text>

Report the saved file path to the user.

Notes

  • Search results come from yt-dlp's ytsearch prefix; adjust N in ytsearchN for more results
  • Can be used with /research-pipeline — pass the saved transcript file path for further analysis
  • Only downloads subtitles, never full video files

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.