Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add yfe404/AI-anything
Or install specific skill: npx add-skill https://github.com/yfe404/AI-anything
# Description
Transform a youtube video / youtube playlist in a SKILL.md file, allowing Claude Code to learn new skills/workflows from video content
# README.md
YouTube to Skill
Transform YouTube tutorials into AI agent skills that actually work.
The Problem
Video Knowledge is Trapped
YouTube contains millions of programming tutorials, but this knowledge is:
- Inaccessible to AI assistants β AI agents cannot watch videos
- Time-consuming to extract β A 10-minute video takes 10 minutes to watch
- Often outdated β APIs change, libraries deprecate, best practices evolve
- Not actionable β Narrative format ("so what we're gonna do...") β executable instructions
The Skill Quality Problem
AI agent skills extend an agent's capabilities. However, creating effective skills requires understanding:
- How agents discover skills (via description matching)
- The difference between narrative and imperative content
- Current state of mentioned technologies
Without this knowledge, generated skills are often:
- Never activated (poor descriptions)
- Unusable (incomplete instructions)
- Harmful (outdated information)
The Solution
This skill automates the transformation pipeline:
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
β EXTRACT ββββββΆβ IDENTIFY ββββββΆβ VERIFY ββββββΆβ TRANSFORM ββββββΆβ GENERATE β
β transcript β βtechnologies β β up-to-date β β content β β skill β
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
1. Extract
Pulls transcripts from YouTube using captions API (with Whisper fallback):
python scripts/extract_youtube.py "https://youtube.com/watch?v=..."
Output: JSON with metadata (title, channel, date) and full transcript.
2. Identify
Scans transcript for technologies:
- Languages and versions
- Frameworks and libraries
- APIs and services
- CLI tools
3. Verify
Videos get outdated. Skills must not.
Uses available tools to verify current state:
| Source | Tool | Use Case |
|---|---|---|
| Library docs | Context7 MCP[^2] | React, Node.js, Python packages |
| General search | WebSearch | Tools, services, APIs |
| Specific docs | WebFetch | Official documentation URLs |
When outdated content is detected, the user is asked how to proceed:
- Update to current version
- Keep original with warnings
- Skip the section
4. Transform
Converts narrative video content to actionable skill instructions:
| Video Content | Skill Content |
|---|---|
| "So basically what we're doing..." | (removed) |
| "You want to run this command..." | bash\ncommand\n |
| "The important thing here is..." | Prerequisites section |
| "If you get this error..." | Troubleshooting section |
5. Generate
Produces a SKILL.md following the standard skill format:
---
name: lowercase-with-hyphens
description: Action verb + what + when to use (max 1024 chars)
---
File Structure
.claude/skills/youtube-to-skill/
βββ SKILL.md # Main skill (174 lines)
β # - Workflow overview
β # - Tool integration (Context7, WebSearch)
β # - Quality checklist
β
βββ reference.md # Deep knowledge (289 lines)
β # - How agents discover skills
β # - Transformation patterns
β # - Common mistakes
β
βββ templates/
β βββ skill_template.md # Output template (94 lines)
β
βββ scripts/
β βββ extract_youtube.py # Transcript extractor (337 lines)
β βββ requirements.txt # Dependencies
β
βββ examples/
βββ good_vs_bad.md # Contrasting examples (354 lines)
Total: 1,250 lines of skill content
Installation
Option A: Project Skill
# Clone to your project
cp -r .claude/skills/youtube-to-skill /path/to/your/project/.claude/skills/
Available only in that project.
Option B: Personal Skill (Recommended)
# Symlink to personal skills
ln -sf /path/to/youtube-to-skill ~/.claude/skills/youtube-to-skill
# Install dependencies
pip install youtube-transcript-api yt-dlp
Available in all projects. Restart your AI agent to load.
Usage
Start a new session and request:
Create a skill from this YouTube video: https://youtube.com/watch?v=...
The agent will:
1. Extract the transcript
2. Identify technologies
3. Verify current state (ask about updates)
4. Ask about enrichment from official docs
5. Generate the skill
6. Ask where to save it
Dependencies
| Package | Purpose | Install |
|---|---|---|
| youtube-transcript-api | Caption extraction | pip install youtube-transcript-api |
| yt-dlp | Metadata + fallback | pip install yt-dlp |
| openai-whisper | Audio transcription (optional) | pip install openai-whisper |
Limitations
- Requires captions: Videos without captions need Whisper (slower, requires GPU for speed)
- English-focused: Translation available but may reduce accuracy
- Single video or playlist: Does not process channel-wide content
- Verification depends on tools: Context7 coverage varies by library
References
[^1]: AI Agent Skills β Packaged expertise that agents can discover and invoke based on description matching.
[^2]: Context7 MCP β Library documentation retrieval tool providing up-to-date API references and code examples.
License: MIT
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.