Yt Hook Scripter: Install, Source and Security

Yt Hook Scripter

Published by sergebulaev in youtube-skills

No known issues34 installs

What this skill does

Script the spoken opening that decides retention: the first 30 seconds of a long-form YouTube video or the first 3 seconds of a YouTube Short. Uses 2026 patterns (restate-and-raise, cold-open payoff tease, question-and-contract, and the 3-second frame-one Shorts hook with a designed loop) to confirm the title's promise, open a loop, and earn the next 30 seconds with no intro. Use to write or fix a video opening. Not for the title (use yt-title-optimizer) or description (use yt-description-writer

Add Yt Hook Scripter to your agent

Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.

Install with a prompt

Paste this into a compatible coding agent:

add this skill "yt-hook-scripter" from https://github.com/sergebulaev/youtube-skills

Install with the CLI

Run this command in a controlled environment after reviewing the repository:

npx skills add https://github.com/sergebulaev/youtube-skills --skill yt-hook-scripter

Skill instructions

YouTube Hook Scripter

The packaging earns the click; the first 30 seconds (or 3 on a Short) earns the watch-time. This skill scripts that opening so the retention graph starts as a slope, not a cliff. It writes the words you say on camera, not the metadata.

Before you start

These files are part of this skill, not background. Read them before the first draft (paths are from this skill's folder; in a Claude Code plugin the bundle root is ${CLAUDE_PLUGIN_ROOT}):

  • ../../references/voice-rules.md: the voice rules every draft follows.
  • ../../references/operating-rules.md: the approval flow, how to run the bundle's code, known gotchas.
  • The author's Voice Profile: run python3 "${CLAUDE_SKILL_DIR}/../../scripts/memory.py" where --plugin-data "${CLAUDE_PLUGIN_DATA}" from the user's working folder (never cd into the bundle first: the lookup starts in the current folder) and read the (read) paths it prints. The folder on its memory: line also holds the author's rubric.md and gold/ (the root for lib.memory). Outside a Claude Code plugin use python3 <bundle root>/scripts/memory.py where. They live outside the bundle so an update cannot wipe them: ../../references/memory.md.

When to use

  • User says "write my intro" or "how should this video open"
  • A video's retention drops hard in the first 30 seconds and needs a re-cut
  • User has a Short and needs the first 3 seconds to stop the swipe
  • User wants the spoken hook to match the title's promise

Formulas this skill uses (opening-hook shapes)

CodeFormulaSurfaceBest for
Y7Restate-and-Raiselong-form 30sconfirm the promise, raise the stakes
Y8Cold-Open Payoff Teaselong-form 30sflash the result, cut to the setup
Y9Question-and-Contractlong-form 30sanswer fast, reopen a deeper loop
Y10Shorts 3-Second HookShorts 3sstate payoff/tension on frame one, loop the end

Full skeletons in ../../references/hook-formulas.md.

Steps

Author memory (all drafts). If the memory folder (see Before you start) holds an active rubric.md, open it and read every active rule before drafting. Those rules come before the bundle's voice rules: severe ones are hard rules, mild ones preferences. If gold/ holds approved posts, read the newest few and match them; they are the author's real voice, stronger evidence than any profile line. Neither exists yet: say once that yt-community-post-writer --mode rubric-setup can build the rubric, then continue. Rules: ../../references/memory.md.

Grounding (all drafts). Opinions, quotes and figures come from what the user gave you or from the author's memory only. A point that needs the author's position, when they have not stated one, gets [MY TAKE] (or [MY TAKE: on X]), never an invented view. Every quote is checked word for word against the source before the draft is shown. Rules and checks: ../../references/source-grounding.md.

Voice profile first (all drafts). If the author's Voice Profile (see Before you start) has filled: yes, open that file and read all of it before drafting, and match the user's voice fingerprint, hard rules, and CTA/link style throughout. If it is not filled, mention once that yt-community-post-writer --mode profile can learn their voice from a few posts, then proceed with the generic voice rules.

Never invent the specifics. The rules below ask for a concrete number, a date and a named entity, because that is what separates a real post from a generated one. Take them from what the user actually said in this conversation. Do not invent a figure, a date, a client name or a result, and do not soften a vague claim into a plausible-looking number. If the user has nothing concrete for a beat, ask them once, and if they still have nothing, drop the claim rather than decorate it. A published invented number is a retraction; a missing one is only a weaker post.

  1. Gather inputs. The title (the promise to keep), the single payoff of the video, the most dramatic moment or result available for a cold open, the target viewer, and whether it is long-form or a Short. If a URL is given, parse it with lib/url_parser.py; is_short decides the surface.
  2. Pick the surface.
    • Long-form: write the first 30 seconds, beat by beat, with rough timestamps.
    • Short: write the first 3 seconds (frame one), then the line that makes the ending loop back to the start.
  3. Pick the formula. Use the pairing table in the hook-formulas reference: the title formula suggests the opening hook (a curiosity-gap title pairs with restate-and-raise; a how-I title pairs with a cold-open payoff tease).
  4. Write the script. Spoken voice, one person to one person. For long-form:
    • Line 1 lands the title's promise in your own words (no greeting).
    • Line 2 raises the stakes or names the obstacle (opens the loop).
    • Line 3 makes the watch-contract ("by the end you will..").
    • Note where B-roll, a cold-open clip, or on-screen text goes. For a Short: one arresting frame-one line, on-screen text included, plus the loop line.
  5. Strip the intro. Cut any "welcome back", logo sting, or channel-trailer reflex. The hook is the first thing the viewer hears.
  6. Humanizer pass. Scrub 2026 AI vocabulary by density (one marker in a beat is a slip; three is a script, rewrite the beat), break stacked or hollow rule-of-three, strip reveal bridges ("Here's what nobody tells you") and sincerity openers ("not gonna lie", "let me be honest"); use .. for a spoken pause instead of a dash on the teleprompter. Make it sayable; never insert a punch line or a "No X. No Y. Just Z." beat for rhythm, and never add a hedge the creator did not write.
  7. Judge, then the approval card. If the author has a rubric or gold posts, first hand the draft to yt-community-post-writer --mode judge: a clean-context check against their rules, at most 3 revise-and-judge rounds, then the draft goes to the author with whatever is still open (contract: ../yt-community-post-writer/sub-skills/judge.md). No [MY TAKE] may remain on the card, and the card shows the judge result if one ran. Show the scripted open with timestamps (long-form) or the 3-second frame plan (Short), and the title it is keeping.
  8. On approval. This is a script the user performs; it is not published by itself. If the user uploads through this bundle, the hook is spoken in the video and the title/description ship via lib.publish(...).

After approval: keep the approved text. Save it as a gold post with lib.memory.add_gold(root, approved_text, source="approved", post_id=<postGroupId, if one came back>), root being the memory folder (if where said it does not exist yet, create it first, from the user's working folder: python3 "${CLAUDE_SKILL_DIR}/../../scripts/memory.py" init --plugin-data "${CLAUDE_PLUGIN_DATA}"). If the author edits it before or after it goes out, yt-community-post-writer --mode learn compares the two, saves the final and proposes rubric amendments, written only on their yes.

Hard rules

Global voice rules: ../../references/voice-rules.md. Additional skill-specific rules:

  • Never write the author's opinion for them. No position in what they gave you: [MY TAKE], resolved by the author before approval.
  • Quotes are copied word for word from the source, or not quoted at all.
  • No greeting, no intro animation, no logo sting before the hook. Ever.
  • Long-form: the promise from the title is restated in the first 1 to 2 spoken lines, then a loop is opened. Earn the next 30 seconds by the 30-second mark.
  • Short: the payoff or tension lands on frame one (second 0 to 1), with on-screen text so it works muted. Design the ending to loop back to the start.
  • The opening can never promise more than the video delivers. Honor the click.
  • Use .. for a spoken pause. A dash in a script is only a breath mark the reader sees, not a tell, but .. reads better on a teleprompter.

Anti-patterns (skill will refuse)

  • "Hey guys, welcome back to the channel" or any greeting in the open.
  • A 15-second intro animation before the first word of value.
  • A cold open that teases a moment not actually in the video.
  • "Make sure to like and subscribe" inside the first 30 seconds.
  • A "No X. No Y. Just Z." staccato stack or "The result?" reveal inserted for punch.
  • Announced candor ("let me be honest", "not gonna lie") with no specific fact behind it.
  • A Short that opens with a slow zoom or a logo instead of the payoff.

Resources

  • ../../references/hook-formulas.md - Y7-Y10 opening-hook skeletons and the title pairing
  • ../../references/algorithm-heuristics.md - the first-30-seconds and 3-second retention rules
  • references/retention-beats.md - the beat-by-beat opening structure for long-form and Shorts

Related skills

  • yt-title-optimizer - the promise the hook keeps
  • yt-thumbnail-brief - the emotion the open should match
  • yt-description-writer - the written hook (different surface from the spoken one)

Files included

  • references/retention-beats.md
  • SKILL.md

More skills