linkedin-hook-extractor

Solid

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).

AI & Automation 449 stars 62 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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-writer` to 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 1. **Parse URL.** `lib.url_parser.parse_linkedin_url` → `post_urn`. 2. **Fetch post body.** If `APIFY_TOKEN` is set, call `lib.ApifyClient.fetch_post(url)`. Otherwise ask the user to paste the text. 3. **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...

Details

Author
sergebulaev
Repository
sergebulaev/linkedin-skills
Created
3 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

linkedin-post-writer

Draft a new LinkedIn post from scratch using one of 16 2026 hook formulas (anaphora, R.I.P., year-pivot, time-anchor, curiosity-gap, contrarian, emotional cold-open, named-gratitude, and more), picked by engagement goal (comments, reposts, likes, saves). Runs the humanizer pass and schedules via Publora on approval. Use when the user asks to write a post, needs a hook, or wants a proven format. Not for reviewing existing drafts (use linkedin-humanizer --mode audit).

449 Updated 5 days ago
sergebulaev
Data & Documents Listed

threads-hook-extractor

Reverse-engineer the hook from a viral Threads post or thread URL. Identifies which of the 10 canonical 2026 Threads formulas it uses (warm contrarian, data-point, build-in-public, quote-post, mini-list, relatable, listicle, story, curiosity-gap, how-I teardown), explains why it worked, and returns a blank template mapped to your topic with its primary goal (replies, reposts, likes, quotes). Use to learn from a post you admire. Not for writing your own (use threads-post-writer).

4 Updated 5 days ago
sergebulaev
Data & Documents Listed

fb-hook-extractor

Reverse-engineer the hook from a high-share Facebook Page post, from its URL or pasted text. Identifies which of the 10 canonical 2026 Facebook formulas it uses (one-line opinion, tiny number, ask-the-page question, this-or-that, behind-the-scenes, story post, announcement, spotlight), explains why it earned shares or comments, and returns a blank template mapped to your topic. Use to learn from a Page post you admire. Not for writing your own (use fb-post-writer).

4 Updated 5 days ago
sergebulaev