ソース情報
- リポジトリ
- lefant/agent-skills
- ソースの最終更新活動
- 2026年2月4日 10:28
- 検出された SKILL.md の言語
- 英語
- スター
- 1
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/lefant/agent-skills --skill youtube-transcriptコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
| name | youtube-transcript |
| description | Fetch YouTube video transcripts using uvx and youtube-transcript-api |
| invocationPattern | when user provides a YouTube URL or asks to get/fetch a YouTube transcript |
Fetch transcripts from YouTube videos for analysis, note-taking, research, or content extraction. Uses uvx to run youtube-transcript-api without requiring installation.
Call this skill when:
https://www.youtube.com/watch?v=VIDEO_ID)Basic usage:
# From full URL
uvx --from youtube-transcript-api youtube_transcript_api VIDEO_ID --format text
# Extract video ID from URL
# https://www.youtube.com/watch?v=LvLdNkgO-N0 → LvLdNkgO-N0
Output formats:
--format text - Plain text (recommended for reading/analysis)--format json - JSON with timestamps--format srt - SubRip subtitle format--format vtt - WebVTT subtitle formatLanguage selection:
# Specific language
uvx --from youtube-transcript-api youtube_transcript_api VIDEO_ID --languages en --format text
# Multiple language preferences
uvx --from youtube-transcript-api youtube_transcript_api VIDEO_ID --languages en,es,fr --format text
YouTube URLs come in various formats:
| Format | Example | Video ID |
|---|---|---|
| Standard | https://www.youtube.com/watch?v=LvLdNkgO-N0 | LvLdNkgO-N0 |
| Short | https://youtu.be/LvLdNkgO-N0 | LvLdNkgO-N0 |
| Embed | https://www.youtube.com/embed/LvLdNkgO-N0 | LvLdNkgO-N0 |
| Mobile | https://m.youtube.com/watch?v=LvLdNkgO-N0 | LvLdNkgO-N0 |
Extract video ID with bash:
# From standard URL
echo "https://www.youtube.com/watch?v=LvLdNkgO-N0" | grep -oP '(?<=v=)[^&]*'
# From short URL
echo "https://youtu.be/LvLdNkgO-N0" | grep -oP '(?<=youtu.be/)[^?]*'
# Universal (works for most formats)
echo "URL" | sed -E 's/.*[?&v=|youtu.be\/]([a-zA-Z0-9_-]{11}).*/\1/'
Transcripts can be saved to appropriate vault locations based on use case:
| Use Case | Location | Example |
|---|---|---|
| Research material | 3-resources/transcripts/ | 3-resources/transcripts/youtube-VIDEOID-title.md |
| Project reference | 1-projects/PROJECT/references/ | 1-projects/my-project/references/video-transcript.md |
| Area knowledge | 2-areas/AREA/references/ | 2-areas/development/references/claude-code-tutorial.md |
| Archived content | 4-archives/transcripts/ | 4-archives/transcripts/2026-01-old-tutorial.md |
Naming convention:
youtube-[video-id]-brief-description.md
Examples:
youtube-LvLdNkgO-N0-claude-code-advanced-techniques.mdyoutube-dQw4w9WgXcQ-rickroll.mdWhen invoked:
Parse the provided URL to extract the 11-character video ID:
VIDEO_ID=$(echo "$URL" | sed -E 's/.*[?&v=|youtu.be\/]([a-zA-Z0-9_-]{11}).*/\1/')
Use uvx to fetch the transcript without installation:
uvx --from youtube-transcript-api youtube_transcript_api "$VIDEO_ID" --format text
The output may be large (>50KB). Common approaches:
Option A: Display excerpt Show first ~2000 characters and ask if user wants it saved
Option B: Save directly If user asked to "save" or "create note", save to appropriate location
Option C: Summarize If user asked for summary, use the transcript as context for analysis
# Save with proper naming
OUTPUT_FILE="3-resources/transcripts/youtube-${VIDEO_ID}-${BRIEF_TITLE}.md"
# Add frontmatter
cat > "$OUTPUT_FILE" <<EOF
---
source: https://www.youtube.com/watch?v=${VIDEO_ID}
fetched: $(date +%Y-%m-%d)
type: youtube-transcript
---
# ${VIDEO_TITLE}
${TRANSCRIPT_CONTENT}
EOF
Common errors and solutions:
| Error | Cause | Solution |
|---|---|---|
| "Subtitles are disabled" | Video has no transcript | Inform user, suggest alternatives |
| "Video unavailable" | Invalid ID or region lock | Verify URL/ID |
| "Could not retrieve transcript" | Language mismatch | Try --languages en,auto |
# 1. User provides URL
URL="https://www.youtube.com/watch?v=LvLdNkgO-N0"
# 2. Extract video ID
VIDEO_ID=$(echo "$URL" | sed -E 's/.*[?&v=|youtu.be\/]([a-zA-Z0-9_-]{11}).*/\1/')
# 3. Fetch transcript
TRANSCRIPT=$(uvx --from youtube-transcript-api youtube_transcript_api "$VIDEO_ID" --format text)
# 4. Save to vault
cat > "3-resources/transcripts/youtube-${VIDEO_ID}-how-i-ai-claude-code.md" <<EOF
---
source: https://www.youtube.com/watch?v=${VIDEO_ID}
fetched: $(date +%Y-%m-%d)
type: youtube-transcript
title: "How I AI - Advanced Claude Code Techniques"
---
# How I AI - Advanced Claude Code Techniques with John Lindquist
${TRANSCRIPT}
EOF
Use JSON format to preserve timestamps for detailed analysis:
uvx --from youtube-transcript-api youtube_transcript_api VIDEO_ID --format json | jq -r '.[] | "[\(.start | floor)]s: \(.text)"'
Process multiple videos:
for video_id in VIDEO_ID1 VIDEO_ID2 VIDEO_ID3; do
uvx --from youtube-transcript-api youtube_transcript_api "$video_id" --format text > "transcript-${video_id}.txt"
done
List available languages:
uvx --from youtube-transcript-api youtube_transcript_api VIDEO_ID --list-transcripts
uvx yt-dlp)This skill complements other research and documentation workflows:
This skill activates when:
Rewrite prose (docs, READMEs, PR descriptions, error messages, release notes, comments, tool descriptions, system prompts — never code) into ASD-STE100 Simplified Technical English to remove "AI slop". Use when asked to make writing not sound like AI, make docs clear or plain, enforce a controlled writing style, review text for STE violations, or write technical documentation that reads human. Two modes — strict (procedures/safety) and STE-flavored (general prose).
Access GitHub repositories programmatically using the exe.dev GitHub integration, gh CLI, or REST API. Use when interacting with GitHub repositories, issues, pull requests, workflows, discussions, or actions. On exe.dev VMs, prefer the tokenless GitHub integration before falling back to local gh authentication or GH_TOKEN.
Use when browser automation needs a human checkpoint: the user wants to demonstrate a workflow once, watch and verify an agent-driven browser result before proceeding, log in or complete MFA/credential-sensitive steps manually, connect through VNC, or use agent-browser with human-in-the-loop browser control. This skill sets up and operates the bundled Browser Debug Hub runtime with safe loopback VNC/CDP defaults.
SOC 職業分類に基づく