agentleFS
JCodesMoreJCodesMore/youtube-for-ai-agents/skills/youtube/SKILL.md

youtube

Skill75 starsChanged 6 days agoApache-2.0View on GitHub

YouTube for any task that touches it: finding videos, watching or summarising one (including a pasted link), quoting or fact-checking what was said, seeing what's on screen, reading comments, exploring a channel or playlist, downloading, clipping, or making a highlight reel.

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tiktok, douyin and 5 more.

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.
  • 0-shivSkill

    tiktok

    TikTok Ads management skill -- audits campaigns, scores creatives, optimizes Spark Ads, Shop campaigns, targeting, bidding, pixel tracking, and generates reports. CPM 50-70% cheaper than Meta.

    Also in 6 projects that use this

  • ballbasecn-starSkill

    douyin

    抖音视频解析、博主视频抓取/转录/运营分析/写入飞书。 触发词:解析抖音、抖音视频、抓取视频、博主视频、创作者视频、douyin、抖音解析、飞书多维表格 子命令: douyin:fetch - 抓取博主最新视频 → 本地转录 → AI运营分析 → 直写飞书多维表格 douyin:parse - 解析单个抖音短视频(链接/分享文本 → 元数据 + 转录)

    Also in 3 projects that use this

  • KamalikaPoddarSkill

    competitor-intel

    Invoke this skill when the user wants to run competitor analysis, monitor competitor signals, generate a weekly intel brief, understand what users are saying about competitors, decode competitor job postings or strategic moves, or build a competitor intelligence system. Triggers on: 'competitor analysis', 'what are [competitor] users saying', 'weekly intel brief', 'what signals should I watch', 'what is [competitor] doing', 'analyse these reviews/tweets/job posts', 'what should we do about [competitor move]', or any request to understand and act on competitive landscape signals. Works across any industry — fintech, gaming, streaming, SaaS, e-commerce. Uses five specialist subagents (industry context, user psychology, signal collector, pattern detector, action recommender) routed by an orchestrator.

    Also in 3 projects that use this

  • jopaaa07Skill

    linkedin

    LinkedIn viral post generator with proven frameworks (121K+ impressions). Produces posts optimized for the LinkedIn algorithm using 12 post types, 50+ hooks, engagement psychology, and brand voice integration. Use when the user wants to write LinkedIn posts, build thought leadership, grow their personal brand on LinkedIn, or create viral content. Triggers on: LinkedIn, LinkedIn post, viral post, hook, engagement, thought leadership, personal brand, LinkedIn algorithm, LinkedIn content, post ideas, LinkedIn strategy.

    Also in 4 projects that use this

  • OpenAISkill

    email

    Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every tool takes a full YouTube URL or a bare ID, so pass along whatever the user gave you.

    line 10
  2. Very specific:

    When what's on screen matters (slides, code, charts, a product, a recipe card), call youtube_get_frames at the relevant timestamps and look.

    line 16
  3. Distinctive:

    Read highlight-reels.md before building a reel: it covers picking self-contained moments, ordering them, and previewing the reel as text …

    line 40

“Common” is measured: kept by at least 6 in 10 of the 32 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

YouTube

You can search YouTube, watch videos (through their transcripts), see them (through frames), read the comments, browse channels and playlists, and download or clip them. Talk like a colleague who watched it for them: "I watched it, and the key point is…", not "transcript fetched".

Every tool takes a full YouTube URL or a bare ID, so pass along whatever the user gave you.

Watching a video

  1. Call youtube_get_transcript. It returns [m:ss] timestamped lines in the language the video is spoken in. Pass language only when the user wants another language; YouTube translates if needed. A link with a timestamp (?t=750) starts the transcript there, and share links often carry one by accident: for a summary of the whole video pass startTime: 0; for a question about that moment, read a window around it.
  2. Long videos come back in parts. When the header says truncated, call again with startTime: nextStartTime until you have what the task needs. For a targeted question, read the chapters from youtube_get_video_info (detail: "full") and fetch only that range with startTime/endTime.
  3. When what's on screen matters (slides, code, charts, a product, a recipe card), call youtube_get_frames at the relevant timestamps and look.
  4. For audience reaction, corrections, or a recipe or link people shared, read youtube_get_comments.
  5. Lead with the takeaway, then the detail. Cite moments as [12:34](https://youtu.be/ID?t=754) so the user can jump there.

For several videos at once, or a focused write-up, hand each video to the video-watcher agent with your instructions. If it reports no tool calls, it didn't watch: do it yourself.

Searching

youtube_search with type video, channel or playlist, and the filters uploadDate, duration and sortBy. Leave uploadDate unset unless the user names a time window: "best videos about 2026" is a topic, not a filter, and a wider search you trim afterwards beats a narrow one that misses the best video. Raise limit when you expect to discard results. Present results as a short numbered list (bold title, channel, views, age, length), name your top pick and why, and offer to watch it.

Channels and playlists

youtube_get_channel_info and youtube_get_channel_videos take an @handle, a channel URL or an ID; sort videos by newest, popular or oldest. Channel videos lists one tab per call: videos (long-form, the default), shorts or live. For "what has X posted lately", check shorts too, since many creators post mostly Shorts. youtube_get_playlist takes a playlist URL or ID, Mix links (list=RD…) included. Both page with offset while the result says hasMore.

For what commenters argue about or the creator's answers, pass replies to youtube_get_comments.

Downloads, clips and reels

  • youtube_download saves a video (720p MP4 by default) or audio only (type: "audio", M4A). Keep the default quality unless asked. outputPath can be a file or a folder. resolution is what was saved: when it's below what was asked, say the video isn't available sharper.
  • youtube_clip cuts moments by timestamp, downloading only those ranges. For a reel of 2+ clips from one video, pass highlightReel: true. An end past the video's end is clipped to the end, and notes say so. Pick the moments from the transcript first.
  • youtube_highlight_reel joins clip files from several videos, in the order given, framed vertical when most clips are.
  • Files go to the current folder unless the user names one. Report each file's path, measured duration and size.
  • The first media call downloads yt-dlp and ffmpeg automatically (about a minute); say so if it's slow.

Read highlight-reels.md before building a reel: it covers picking self-contained moments, ordering them, and previewing the reel as text before cutting.

When something fails

Tool errors are JSON with kind, retryable and hint. Relay the hint in plain words and adapt:

  • rate_limited or bot_check: YouTube is limiting this network for a while. Tell the user, carry on with what doesn't need a transcript (search, details, comments), and suggest signing in with /youtube:setup.
  • no_captions: the video has no transcript. Use its description and chapters, frames, or comments instead. A search result marked live won't have one until the stream ends.
  • not_found: the link, ID or handle points at nothing. Check it for typos, or search for the right one.
  • comments_disabled: the creator turned comments off.
  • private, unavailable, age_restricted, paywalled: say so; signing in helps with age restriction, and with a paid video or members-only content only if the account has access. youtube_get_video_info flags ageRestricted and paywalled up front, so check it before spending transcript and frame calls.

If no youtube_* tools exist in this session, the server didn't start. Run node --version: the plugin needs Node.js 20 or newer (22+ recommended) from https://nodejs.org. Then run node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" doctor and show the user what it says. After installing Node, they restart Claude Code. YouTube pages can't be read with web fetch, so fixing the server is the way forward.

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.