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

/yt-shorts

@e0ac1e7
Run it yourself

Find the moments in a long video that work as Shorts on their own, and write each one a new opening. Use for "cut this into shorts", "clip this", "repurpose this video", "what should I clip".

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈51 tokens for metadata: the name and description. ≈635 when used: this file.

Description uses 2.5% 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 ≈203 characters, or 2.5%.

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-shorts

A good Short from a long video is not its best moment. It is a moment that makes sense with nothing around it, and those are rarer.

python3 ${CLAUDE_SKILL_DIR}/shorts.py transcript.srt              # top 5, 20-55s each
python3 ${CLAUDE_SKILL_DIR}/shorts.py transcript.srt --top 8 --max 90 --json

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 uses ../yt-edit/deadair.py and ../yt-script/hookscore.py, so install all three together.

To fetch a video's own captions:

yt-dlp --skip-download --write-auto-subs --sub-langs en --sub-format vtt -o transcript "<video url>"

Auto-captions have no punctuation, so sentence ends are guesses; the tool says when that is the case. A whisper transcript gives cleaner cuts.

Before you start

Read ~/.claude/youtube/voice.md if it exists. The new opening line is spoken or captioned in the creator's voice, and the "will not claim" list still applies.

Picking

Run shorts.py and work from its shortlist. Each Short needs all three:

  1. It starts on a fresh thought. If the first sentence needs the minute before it, it is not a Short.
  2. Something turns - a claim, then what complicates or proves it.
  3. It ends on a line, not a trailing thought.

The tool checks the first and the third and scores the opening line. Only you can check the turn: read each candidate, drop those without one, and show the best five with their timecodes and first lines so the creator can reject one at a glance.

Length: Shorts can run to three minutes. 20-55 seconds is a choice: short spans finish and loop better. Use --max for longer only when the turn needs the room. Past 60 seconds, any Content ID claim blocks the Short everywhere, so a long span over someone else's music is not an option.

Writing each one

  • A new first line. The long video's line leans on context this viewer never saw. Write the replacement and score it with ${CLAUDE_SKILL_DIR}/../yt-script/hookscore.py.
  • On-screen text for the first two seconds, in different words from the spoken line.
  • A loop: what the last line sets up so the first line answers it.
  • A vertical note: what the 9:16 crop loses from a 16:9 frame, and whether it matters.

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.

1 warning6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    This skill provides a mechanism to identify and extract potential 'Shorts' from longer YouTube videos by analyzing transcripts for logical start and end points. It utilizes local Python scripts for scoring hooks and detecting dead air.

  • 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}/shorts.py *) Bash(python3 ${CLAUDE_SKILL_DIR}/../yt-script/hookscore.py *)

README badge

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