LinkedIn Hook Extractor
Paste a viral LinkedIn post URL and get back which hook formula it uses, why it worked, and a reusable template.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/linkedin-hook-extractor-sergebulaev/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Reverse-engineer the hook formula from a viral LinkedIn post URL. Returns which of the 16 canonical 2026 formulas it uses (anaphora, R.I.P., year-pivot, time-anchor, curiosity-gap, contrarian, comment-gate, emotional cold-open, named-gratitude, and 7 more), why it worked, and a blank template. Use to learn from a competitor's post, not to write your own (use linkedin-post-writer).
What this skill does
LinkedIn Hook Extractor
Paste a viral LinkedIn post URL. Get back: which hook formula it uses, the exact structure, why it worked, and a blank template mapped to your topic.
When to use
- User finds a viral post they want to study
- User wants to replicate a specific creator's pattern
- Before
linkedin-post-writerto seed a draft with a proven structure
Input
A LinkedIn post URL (any type: activity, share, ugcPost).
Output
- Formula identified (F1-F16 from
../../references/hook-formulas.md) with confidence score - Structural breakdown:
- Hook lines (first 210 chars)
- Body architecture (sections + what each does)
- Close pattern
- Reaction-triggering devices (numbers, named entities, vulnerabilities)
- Why it worked psychologically
- Blank template filled with slot markers matched to the original, ready for the user's voice
- Cautions: anything in the original post that would fail 2026 audit (em dashes, AI vocab, outdated tactics)
Steps
- Parse URL.
lib.url_parser.parse_linkedin_url→post_urn. - Fetch post body. If
APIFY_TOKENis set, calllib.ApifyClient.fetch_post(url). Otherwise ask the user to paste the text. - Classify. Match against the 16 formulas using features:
- First 2 lines: anaphoric? question? confession? number-led?
- Body: numbered list? dated receipts? ledger? teardown?
- Close: mirror question? identity reframe? commitment?
- F11-F16 cues: in-medias-res emotional scene with no setup (F11 Emotional Cold-Open); "I don't know who needs to hear this" reassurance (F12 Permission Slip); fake-bad-news that resolves positive (F13 Bait-and-Switch); a roll-call of named people thanked (F14 Named Gratitude); "{jargon} explained to kids" glossary (F15 Explain-to-Kids); "outside I'm called X, at home none of it survives" (F16 Status-Strip).
- Score confidence. If multiple formulas fit, return top 2 with fit scores.
- Extract structure. Pull each logical section and label it by formula role.
- Generate blank template. Replace specifics with
{slot}markers that match the user's topic. - Audit the source. Flag any AI tells in the original so the user doesn't copy them.
Example
See references/examples.md for worked examples.
Formulas reference
See ../../references/hook-formulas.md for the 16 canonical formulas with full skeletons.
Files
SKILL.md— this filereferences/classification-rules.md— feature extraction + scoring heuristics
Related skills
linkedin-post-writer— use the extracted template to draft your ownlinkedin-humanizer --mode audit— audit your draft before shipping
Related skills
Raffle Winner Picker
Prat011
Randomly select fair winners from lists or Google Sheets for giveaways and contests.
Content Reviewer
aaron-he-zhu
Review influencer content against brand guidelines and provide approval decisions.
LinkedIn Marketing
sergebulaev
Plan, draft, audit, and publish LinkedIn posts and comments with algorithm optimization.
LinkedIn Content Planner
sergebulaev
Generate a structured 7-day LinkedIn posting plan with pillars, formats, hooks, and engagement targets.