hook-machine
Build and use a data-backed hook rubric - extract real hooks from winning videos (your channel or a competitor's), turn their patterns into 15-20 rules, then write new hooks for a topic or grade the creator's own hook and offer better versions. Use when the creator asks for hooks, an opening line, "is this hook good", or "make my intro stronger".
How do I install this agent skill?
npx skills add https://github.com/mohcen56/ytb-research-skills --skill hook-machineIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill can execute local scripts to analyze YouTube content and generate video hooks. It processes external video transcripts, which presents a surface for indirect prompt injection.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Hook machine
1. Build or refresh the rubric (brand/hook_rubric.md)
- Source channels: the creator's own winners first; if there are few, one or two competitors from
brand/about_me/competitors.mdor a channel they name. - Pick winners (outlier ≥ 2×) with
python tools/yt.py channel <channel> --days 180 --json(API key intools/.env); reuseresearch/*notes if a channel analysis already exists. - For each winner,
python tools/yt.py transcript <url>(no key needed): copy the exact first ~15-20 s, the title and the thumbnail text (read frames 0001-0003 frompython tools/yt.py watch <url>for the on-screen hook). Aim for 15-30 hooks. - Cluster them: what pattern opens each one (then-vs-now, bold claim against common belief, personal confession, question, number or result first, story in motion), what the visual does, how fast the tension rises, when the "why stay" promise lands.
- Merge with the fixed principles below and with the
scriptskill. Write 15-20 numbered rules, each with one real example and its source video. - If the API key is missing, ask for winner URLs directly (transcripts work without a key), build from what you have and mark it "partial".
Fixed principles (always in the rubric):
- The first line names a tension the viewer already feels. No greeting, no "in this video".
- Don't give away the answer in the hook.
- Say it the way the creator talks (
brand/about_me/voice.md): honest, plain words, no hype. - Title, thumbnail and hook each add something; they never repeat each other word for word.
- A visual change within the first 2 s; the hook is readable as on-screen text.
- Under ~15 s / ~40 words to the open question.
2. Use it
- New topic: write 8-10 hooks across different rule patterns, grade each 1-10 against the rubric (show which rules it hits or misses), and recommend the top 2.
- Grade the creator's hook: score it, say which rules it misses in plain words, then give 3 better versions that keep their own words and idea where possible. Their line stays the baseline: never silently replace it.
- Check every hook against the title and thumbnail planned for that video.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/mohcen56/ytb-research-skills/hook-machine">View hook-machine on skillZs</a>