Threads hook extractor skill
Reverse-engineer the hook from a viral Threads post or thread URL.
by sergebulaev·MIT license·GitHub ↗
★ 49 Stars on the repo·Checked
npx degit sergebulaev/threads-skills/skills/threads-hook-extractor#main ~/.claude/skills/threads-hook-extractorFiles of Threads hook extractor
Files 1 file
Show the full text85 lines
Threads Hook Extractor
Paste a viral Threads post 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.
When to use
- User finds a viral post or thread they want to study
- User wants to replicate a specific creator's pattern
- Before
threads-post-writer, to seed a draft with a proven shape
Input
A Threads post or thread URL (threads.net or threads.com, /@handle/post/).
For a thread, the URL of the first post is best.
Output
- Formula identified (T1-T10 from
../../references/hook-formulas.md) with a confidence score - Container: single post vs thread, and why that container fit the idea
- Structural breakdown:
- The hook line (and for a thread, how post 1 opens the loop)
- Body architecture (per-post roles for a thread)
- The close (what earns the repost or the reply)
- Reaction-triggering devices (numbers, named entities, the open loop, the warm invite)
- Primary goal the original chased (replies / reposts / likes / quotes)
- Why it worked psychologically and algorithmically
- Blank template with
{slot}markers matched to the original, ready for the user's topic - Cautions: anything in the original that would fail a 2026 audit (more than one em dash in a post, an AI-vocab cluster, 2+ hashtags, link in post 1, a cold X tone)
Steps
- Parse the URL.
lib.url_parser.parse_threads_url(url)returnshandle,post_id,url_type. - Get the text. This bundle has no built-in post reader, so ask the user to paste the post or the full thread text. (If they later wire an Apify post-read actor, read it automatically.)
- Detect the container. One self-contained post, or a multi-post thread.
- Classify against the 13 formulas using features:
- Single post: a warm contrarian claim (T1)? one hard number (T2)? a personal metric/confession (T3)? a quote post adding a layer (T4)? a one-line-per-item list (T5)? a relatable shared moment (T6)?
- Thread: a numbered teaching promise (T7)? a story starting at the tension (T8)? a surprising result with the mechanism withheld (T9)? a first-person "how I" teardown (T10)?
- Score confidence. If two formulas fit, return the top 2 with fit scores.
- Extract structure. Label each part by its role. For a thread, map post 1 (the loop), the front-loaded payoff, the body beats, and the closer.
- Name the primary goal the original optimized for.
- Generate a blank template with
{slot}markers matched to the original shape and the user's topic. - Audit the source. Flag any AI tells in the original so the user does not copy them.
Example
See references/examples.md for worked teardowns.
Formulas reference
See ../../references/hook-formulas.md for the 13 canonical Threads formulas
with full skeletons and goal tags.
Files
SKILL.md- this filereferences/classification-rules.md- feature extraction + scoring heuristicsreferences/examples.md- worked teardowns (single post and thread)
Related skills
threads-post-writer- use the extracted template to draft your own post or threadthreads-humanizer --mode audit- audit your draft before shipping
| 1 | |
| 2 | name threads-hook-extractor |
| 3 | description "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 | |
| 5 | |
| 6 | # Threads Hook Extractor |
| 7 | |
| 8 | Paste a viral Threads post or thread URL. Get back: which hook formula it uses, |
| 9 | the exact structure, why it worked, and a blank template you can fill with your |
| 10 | own voice. |
| 11 | |
| 12 | ## When to use |
| 13 | |
| 14 | User finds a viral post or thread they want to study |
| 15 | User wants to replicate a specific creator's pattern |
| 16 | Before `threads-post-writer`, to seed a draft with a proven shape |
| 17 | |
| 18 | ## Input |
| 19 | |
| 20 | A Threads post or thread URL (`threads.net` or `threads.com`, `/@handle/post/`). |
| 21 | For a thread, the URL of the first post is best. |
| 22 | |
| 23 | ## Output |
| 24 | |
| 25 | **Formula identified** (T1-T10 from `../../references/hook-formulas.md`) with a |
| 26 | confidence score |
| 27 | **Container:** single post vs thread, and why that container fit the idea |
| 28 | **Structural breakdown:** |
| 29 | The hook line (and for a thread, how post 1 opens the loop) |
| 30 | Body architecture (per-post roles for a thread) |
| 31 | The close (what earns the repost or the reply) |
| 32 | Reaction-triggering devices (numbers, named entities, the open loop, the warm |
| 33 | invite) |
| 34 | **Primary goal** the original chased (replies / reposts / likes / quotes) |
| 35 | **Why it worked** psychologically and algorithmically |
| 36 | **Blank template** with `{slot}` markers matched to the original, ready for the |
| 37 | user's topic |
| 38 | **Cautions:** anything in the original that would fail a 2026 audit (more |
| 39 | than one em dash in a post, an AI-vocab cluster, 2+ hashtags, link in post 1, |
| 40 | a cold X tone) |
| 41 | |
| 42 | ## Steps |
| 43 | |
| 44 | **Parse the URL.** `lib.url_parser.parse_threads_url(url)` returns `handle`, |
| 45 | `post_id`, `url_type`. |
| 46 | **Get the text.** This bundle has no built-in post reader, so ask the user to |
| 47 | paste the post or the full thread text. (If they later wire an Apify |
| 48 | post-read actor, read it automatically.) |
| 49 | **Detect the container.** One self-contained post, or a multi-post thread. |
| 50 | **Classify against the 13 formulas** using features: |
| 51 | Single post: a warm contrarian claim (T1)? one hard number (T2)? a personal |
| 52 | metric/confession (T3)? a quote post adding a layer (T4)? a one-line-per-item |
| 53 | list (T5)? a relatable shared moment (T6)? |
| 54 | Thread: a numbered teaching promise (T7)? a story starting at the tension |
| 55 | (T8)? a surprising result with the mechanism withheld (T9)? a first-person |
| 56 | "how I" teardown (T10)? |
| 57 | **Score confidence.** If two formulas fit, return the top 2 with fit scores. |
| 58 | **Extract structure.** Label each part by its role. For a thread, map post 1 |
| 59 | (the loop), the front-loaded payoff, the body beats, and the closer. |
| 60 | **Name the primary goal** the original optimized for. |
| 61 | **Generate a blank template** with `{slot}` markers matched to the original |
| 62 | shape and the user's topic. |
| 63 | **Audit the source.** Flag any AI tells in the original so the user does not |
| 64 | copy them. |
| 65 | |
| 66 | ## Example |
| 67 | |
| 68 | See `references/examples.md` for worked teardowns. |
| 69 | |
| 70 | ## Formulas reference |
| 71 | |
| 72 | See `../../references/hook-formulas.md` for the 13 canonical Threads formulas |
| 73 | with full skeletons and goal tags. |
| 74 | |
| 75 | ## Files |
| 76 | |
| 77 | `SKILL.md` - this file |
| 78 | `references/classification-rules.md` - feature extraction + scoring heuristics |
| 79 | `references/examples.md` - worked teardowns (single post and thread) |
| 80 | |
| 81 | ## Related skills |
| 82 | |
| 83 | `threads-post-writer` - use the extracted template to draft your own post or thread |
| 84 | `threads-humanizer --mode audit` - audit your draft before shipping |
| 85 |
Discussion
Linkedin comment drafterDraft a LinkedIn comment on someone else's post from its URL, or reshare (repost) it to your feed with optional commentary. Use when the user pastes a post URL and asks to comment, engage, be first commenter, or repost with their thoughts. Produces 1-3 variants in the user's voice, picks a reaction, and publishes via Publora on approval. Not for replying to existing comments (use linkedin-reply-handler).Linkedin content plannerGenerate a 7-day LinkedIn content plan from a theme, audience, and pillars. Produces per-day post pillar, format, hook type, CTA, posting time, daily comment targets, and a weekly inbound-readiness check. Use when the user wants to plan a week or month of content, not draft a single post (use linkedin-post-writer).Linkedin employee advocacyStand up and run a LinkedIn employee advocacy program for a marketing or sales team. Covers 14-day launch playbook, brand-guideline governance, per-post time budget, cadence benchmarks, and team ROI (reach, engagement, pipeline). Triggers on "employee advocacy", "get the team posting", "scale LinkedIn across team", "advocacy ROI". Not for planning one person's own calendar (use linkedin-content-planner).Twitter/X SkillSearch and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io. Use when user mentions Twitter, X, or tweets.
Browse more free Claude skills or everything in Marketing.