Index of every page on this site: llms.txt
All skills
utillayer avatar

/yt-viral

@e0ac1e7
Run it yourself

Find what is working in a niche on YouTube by ranking each video against its own channel's normal views, then name the formula behind the title. Use for "what's working right now", "find outliers in my niche", "why did this blow up", competitor research, or building a swipe file.

Use this Skill: https://skilld.dev/gh/utillayer/youtube-agent-skill/yt-viral

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈73 tokens for metadata: the name and description. ≈543 when used: this file.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈291 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

yt-viral

Raw view counts measure channel size, not ideas. A video worth studying is one that beat its own channel's median by a wide margin. That is what this ranks.

python3 ${CLAUDE_SKILL_DIR}/swipe.py collected.json --min 2.0
yt-dlp --flat-playlist -J "https://www.youtube.com/@channel/videos" > a.json
python3 ${CLAUDE_SKILL_DIR}/swipe.py a.json b.json c.json        # yt-dlp output works as is

The tools live in this skill's folder. ${CLAUDE_SKILL_DIR} is that folder in Claude Code; anywhere it does not expand (claude.ai, Codex), use the folder this SKILL.md was loaded from. It reads the formulas from ../yt-script/, so install the two together.

Collecting

At least four videos per channel, or a median means nothing; the tool skips thinner channels and says so. Ten to thirty per channel is better. yt-dlp --flat-playlist -J on a channel's /videos page is quickest and its output goes straight in; a hand-made list works too:

[{"channel":"...","title":"...","views":412000,"url":"...","duration":613}]

Shorts and long videos are compared separately when durations are known, and a video with no view count is left out rather than counted as zero. If the tool left some out, mention it.

Public listings only. Never a logged-in session, never anyone's credentials.

Reading the result

The multiple is the signal. The formula label is a judgement about the title's words, matched against the 21 formulas - not a claim about why it worked. Say so.

What to hand back: the top five with their multiples and formulas, and the one thing they share. Then the harder part: which of them the creator could make this week, in their voice, with what they have.

A swipe file is for the shape, never the video. Remaking someone's outlier with the names swapped is the "mass-produced, repetitive" content YouTube's inauthentic-content policy demonetises. If asked for that, say so and offer the structure to fill with the creator's own material.

Before you hand it over

This skill drafts; you publish. End with the copy-ready block and one question: post it as is, or another pass?

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings6d3 checks · Risk MEDIUM
  • Gen Agent Trust Hub6d

    The skill processes untrusted YouTube video titles which could contain malicious instructions (indirect prompt injection) and dynamically loads code from a computed relative path.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: MEDIUM · 1 issue

Signed by skilld at e0ac1e7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago
What it can do
Runs commands
All 1 allowed tools
Bash(python3 ${CLAUDE_SKILL_DIR}/swipe.py *)

README badge

README badge for utillayer/youtube-agent-skill/yt-viral