Reverse-engineer the hook from a viral X (Twitter) tweet or thread URL. Identifies which of the 10 canonical 2026 X formulas it uses (one-liner contrarian, data-point, build-in-public, quote-tweet, mini-list, relatable cold-open, listicle-thread, story thread, curiosity-gap, how-I teardown), explains why it worked, and returns a blank template mapped to your topic with its primary goal. Use to learn from a tweet you admire. Not for writing your own (use x-post-writer or x-thread-builder).
npx skills add https://github.com/sergebulaev/x-skills --skill x-hook-extractor
Paste a viral tweet or thread URL. Get back: which hook formula it uses, the
exact structure, why it worked, and a blank template you can fill with your own
voice.
x-post-writer or x-thread-builder, to seed a draft with a proven shapeAn X tweet or thread URL (x.com or twitter.com, /status/<id>). For a thread,
the URL of the first tweet is best.
../../references/hook-formulas.md) with aconfidence score
{slot} markers matched to the original, ready for theuser's topic
than one em dash in a tweet, an AI-vocab cluster, 3+ hashtags, link in tweet 1)
lib.url_parser.parse_x_url(url) returns handle,tweet_id, url_type.
paste the tweet or the full thread text. (If they later wire an Apify tweet
actor, read it automatically.)
metric/confession (X3)? a quote tweet adding a layer (X4)? a one-line-per-
item list (X5)? a relatable shared moment (X6)?
(X8)? a surprising result with the mechanism withheld (X9)? a first-person
"how I" teardown (X10)?
(the loop), the front-loaded payoff, the body beats, and the closer.
{slot} markers matched to the originalshape and the user's topic.
copy them.
See references/examples.md for worked teardowns.
See ../../references/hook-formulas.md for the 11 canonical X formulas with full
skeletons and goal tags.
SKILL.md - this filereferences/classification-rules.md - feature extraction + scoring heuristicsreferences/examples.md - worked teardowns (single tweet and thread)x-post-writer - use the extracted single-tweet template to draft your ownx-thread-builder - use the extracted thread templatex-humanizer --mode audit - audit your draft before shippingTake sergebulaev/x-hook-extractor from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.