yt-script skill
scriptsTurn a video idea into a script meant to be spoken: five hooks scored against 21 formulas, the best opening kept, then the narration paragraph by paragraph with what is on screen, checked before anyone records. Use for "write my script", "write my next video", "I need a hook", "how should I open this", "what do I say", or any time someone is about to record without a first line.
- GitHub stars
- 17
- Files
- 4
- Last commit
- Oct 29, 2026
- License
- MIT
- Allowed tools
- 6
What does the yt-script skill do?
yt-script turns a video idea into a script meant to be spoken: five hooks scored against 21 formulas, the best opening kept, then the narration paragraph by paragraph with what is on screen, checked before anyone records. Use for "write my script", "write my next video", "I need a hook", "how should I open this", "what do I say", or any time someone is about to record without a first line.
How to install the yt-script skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the yt-script skill in Plugin
/plugin marketplace add utillayer/youtube-agent-skill /plugin install youtube-agent-skill@utillayer
Install the yt-script skill in Claude Code
~/.claude/skills/yt-script/SKILL.md
$ npx degit utillayer/youtube-agent-skill/skills/yt-script ~/.claude/skills/yt-scriptInstall the yt-script skill in Claude Code (project)
.claude/skills/yt-script/SKILL.md
$ npx degit utillayer/youtube-agent-skill/skills/yt-script .claude/skills/yt-scriptInstall the yt-script skill in Codex
~/.agents/skills/yt-script/SKILL.md
$ npx degit utillayer/youtube-agent-skill/skills/yt-script ~/.agents/skills/yt-scriptInstall the yt-script skill in Gemini CLI
~/.gemini/skills/yt-script/SKILL.md
$ npx degit utillayer/youtube-agent-skill/skills/yt-script ~/.gemini/skills/yt-scriptInstall the yt-script skill in Claude.ai
npx degit utillayer/youtube-agent-skill/skills/yt-script yt-script && zip -r yt-script.zip yt-script # claude.ai → Customize → Skills → + → Create skill → Upload a skill → yt-script.zip
SKILL.md
View on GitHubyt-script
The script is the video. Everything after it - voice, edit, thumbnail - can only lose what the words did not earn. Two tools here keep the writing honest:
python3 ${CLAUDE_SKILL_DIR}/hookscore.py hooks.txt # score and rank opening lines
python3 ${CLAUDE_SKILL_DIR}/scriptcheck.py script.json # is it ready to be spoken?
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.
Before you start
- Read
~/.claude/youtube/voice.mdif it exists: who the viewer is, how the creator talks, the words they never use, the claims they will not make. If it is missing, ask for three of their videos, work out the voice, and write the file. Words in someone else's voice cannot be read aloud convincingly. - If the video retells a book, a record or history, run
/yt-researchfirst and write from its brief. Nothing goes in the script that is not in the brief. - Never make up a number, a result or a quote. If a line needs a figure you do not have, ask for it or cut the figure.
The opening
The first fifteen seconds decide the video. They must keep the title's promise, open a question the viewer cannot answer yet, and show the answer is coming.
Write five openings against the 21 formulas, score them with hookscore.py, and
show the best two with their scores. Pick the more accurate one if they are close: a hook the video
does not deliver is worse than a weaker one it does. No channel intro, no "before we start", no
subscribe request - those are where the early drop comes from.
The body
- One idea per paragraph, 30-75 words: one breath for a person, one take for a voice model.
- Written for the ear. Short sentences. Numbers as words. No dashes, brackets, semicolons or double quotes - they trip narrators and break captions.
- Write pictures. Every paragraph gives the screen something to show: a place, an action, a
face. Mark it:
[ON SCREEN: ...]. A paragraph that is only an idea becomes a slideshow. - Turn at the middle. Around 45% in, a question or a reversal that resets attention. Retention graphs sag there; give them a reason not to.
- Pay off the opening, explicitly, and say you are doing it.
- Close with one line. One ask at most.
The check
Put the narration in script.json - {"title", "names", "text", "sources"}, paragraphs separated by
blank lines, every proper name in names - and run scriptcheck.py. Fix every error before
recording; read every warning. For a sourced video, the independent fact check in /yt-research
comes next.
What to hand back
- the two best openings with their scores, and which formula each uses
- the script, paragraph by paragraph, with
[ON SCREEN: ...] - the
scriptcheck.pyresult - the runtime at about 150 words a minute
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?
Files in this skill
4yt-script skill questions
How do I install the yt-script skill in Claude Code?
Run npx degit utillayer/youtube-agent-skill/skills/yt-script ~/.claude/skills/yt-script. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the yt-script skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.