agentleFS
Birzha76Birzha76/youtube-producer-skill/skills/yt-retention/SKILL.md

yt-retention

Skill1 starsChanged 9 days agoMITView on GitHub

Read a YouTube Shorts audience retention curve: how many viewers left at 0-5 s, 5-15 s, in the middle and in the tail, the steepest cliffs with the second and the line from the transcript, and one fix for the main leak. Input is a YouTube Studio CSV or YouTube Analytics API JSON. Use for "where do viewers drop off", "why is my retention bad", "audience retention", a retention graph or CSV. Russian triggers ("где уходят зрители", "почему плохое удержание шортса", "разбери удержание", "на какой секунде уходят", "кривая удержания").

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ig-dm, ig-story 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.
  • JakeschincariolSkill

    ig-dm

    Write Instagram DMs that get replies - the keyword delivery, the first message to someone who engaged, the collab pitch, and the two follow-ups. Use when the user says "DM this person", "what do I send them", "outreach message", "how do I follow up", "pitch this brand", or is reaching out to someone specific.

    Also in 3 projects that use this

  • nicojunkSkill

    ig-story

    Plan and structure Instagram Story sequences. Selects the right story type, builds a slide sequence with text overlays and interactive elements, and delivers a ready-to-produce story brief.

    Also in 3 projects that use this

  • JakeschincariolSkill

    ig-human

    Strip the machine fingerprint out of any draft - em dashes, AI slop words, invisible watermark characters - and score it against a five-check detection panel before it goes out. Use whenever text needs to sound human, when the user says humanize, "does this sound like AI", "remove the em dashes", "de-slop this", "this sounds like ChatGPT", or before any caption, script, comment, reply or DM is shown to the user.

    Also in 3 projects that use this

  • nicojunkSkill

    ig-reel

    Complete Instagram Reel production. Generates hook variants with scoring, timed script (0-30s structure), caption (500+ chars with save CTA), thumbnail concept, and full 5-category Content Quality Score. Optimized for 2026 algorithm signals (watch time, DM-sends, saves). Covers simple tips (7-15s), technique explanations (15-30s), and mini-tutorials (30-60s). Use when user says "Reel", "Reel schreiben", "Reel skript", "neues Reel", "Reel erstellen", "video script", "reel topic".

    Also in 3 projects that use this

  • +3 more from nicojunk

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    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:

    All losses are in points from the start level = 100.

    line 42
  2. Very specific:

    If 5-15 s and the middle are below the channel median, retention is not the problem: look at the packaging (/yt-package).

    line 79

“Common” is measured: kept by at least 6 in 10 of the 5 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-retention (Shorts)

Language. Answer in the user's language. If the user writes in Russian, run the script with --lang ru; otherwise with --lang en.

python3 retention.py retention.csv --duration 66 --lang en              # Studio CSV, percent axis
python3 retention.py raw.json --id VIDEO_ID --lang en                   # API export with videos[]
python3 retention.py curve.json --transcript words.json --words-key my_video
python3 retention.py retention.csv --duration 66 --transcript t.srt --json

Python 3 standard library only. Transcript: .srt, .vtt, whisper .json, or a word list [word, start, end, ...]; a dict of such lists per video takes --words-key.

Getting the curve

  • YouTube Analytics API (the reliable path): reports.query, ids=channel==MINE, dimensions=elapsedVideoTimeRatio, metrics=audienceWatchRatio,relativeRetentionPerformance, filters=video==<id>, OAuth of the channel owner. 100 points, 1% of the length per step. The curve of new viewers from the feed is the same query with ;subscribedStatus==UNSUBSCRIBED;audienceType==ORGANIC in the filter. Save the response as a list of points or {"retention": [...], "duration_s": 66}; this report does not return the video length, so take it from the Data API (contentDetails.duration) or pass --duration.
  • Studio CSV: video analytics -> Advanced mode -> export. Whether Studio exports the retention graph itself for Shorts is not verified (check by hand on one Short). If the position axis is in percent, --duration is required.

What each window means

All losses are in points from the start level = 100. A Shorts curve starts above 100% (loop rewatches: 111% on the test video), so the script divides it by the maximum of the first 3% of the length. Without that, the video "loses" rewatches at the start that it never lost.

  • 0-5 s: swiped away at once, frame 0 and the first line. On Shorts few leave here: of those who started watching, almost all reach 5 s.
  • 5-15 s: the second and third line. On the source channel this is the main leak: the most viewers per second leave here, and retention at 10-30 s goes with whether the feed pushes the video (one channel, n = 25, ρ ≈ +0.6). What is said here, a continuation of the hook with a conflict or "let's install the library...", decides the video's fate (a hypothesis from the same analysis).
  • middle (15 s to 95% of length): the slow decline. Its loss in points grows with video length, so compare the rate (points per second), not the sum.
  • tail (last 5% of length): the end of the video and the loop. Not a cliff, printed separately.
  • cliffs: the top 3 steepest drops in 5-15 s and the middle (slope over a ~2 s window), with the second and the words said 3 s before and 1 s after.

References, not norms

The script sets no "healthy / leak" thresholds: nobody has tested them on Shorts. If norms.json sits next to the script, the median and quartiles over the videos of one channel are printed under each window (@isartem, n = 26, curve of all viewers, export of 2026-11-19): 0-5 s median 5.2 points, 5-15 s 34.5, middle 37.7, tail 6.4. That is the distribution of one channel, not a norm for anyone else's. Pass --norms - to hide it, or point --norms at a file built from your own channel.

What to give the user

One main leak and one fix for it, not a list of five. More only if asked.

  • Main leak in 5-15 s: rewrite the second line so it continues the hook's story (the mechanism, the first number, the conflict), not "let's install the library...". The fix is in the text, not the edit.
  • Main leak in the last line before the tail: that is the final call to action. On the source channel this happened in 8 of 26 videos; it is the steepest drop, but a short one. Fix: cut the ending to one sentence under 4 s. If the CTA is already short, name the next leak from the top 3: usually it is in 5-15 s and costs more reach.
  • A leak in the middle on one scene: shorten the scene or put a turn before it ("But...", "Here is the catch").
  • If 5-15 s and the middle are below the channel median, retention is not the problem: look at the packaging (/yt-package).

Caveats

  • The all-viewers curve mixes subscribers and the feed; new viewers from the feed decide the video's fate, so take their curve when you can.
  • Normalising by division is an approximation: rewatches add viewers to the whole curve rather than multiplying it. The shape is kept, absolute points are approximate.
  • The curve step is 1% of length (0.5-1.2 s on a Short), so the cliff second is accurate to ±1 s.
  • The line at a cliff comes from speech recognition, which drops and confuses words at joins. Listen to that moment before rewriting it.
  • Checked on 24 videos of one channel: the script's main leak matched a manual scene-by-scene analysis in 14 of 24. Of the 10 mismatches, 8 were the final CTA (the manual analysis left the ending out) and 2 were a cliff 1-2 s before the second line starts, at the join with the hook.

The gate

The script publishes and edits nothing. The last line of the answer is a question: publish as is, or fix it?

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.