New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Reverse-engineer the hook from a viral Threads post

Threads hook extractor

by sergebulaev · MIT license · ★ 49 on GitHub

Threads hook extractor cover

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,…

---
name: threads-hook-extractor
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)."
---

# 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

Overview

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.

What you get

  • Formula identified(T1-T10 from ../../references/hook-formulas.md) with a
  • Containersingle 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)
Manual install (npx, ZIP)
Claude Codenpx skills add sergebulaev/threads-skills --skill threads-hook-extractor -g -a claude-code
Claude Code (degit)npx degit sergebulaev/threads-skills/skills/threads-hook-extractor#main ~/.claude/skills/threads-hook-extractor
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.8 KB
Read SKILL.md here
sergebulaev/main1 file shown
SKILL.md
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

  1. Parse the URL. lib.url_parser.parse_threads_url(url) returns handle, post_id, url_type.
  2. 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.)
  3. Detect the container. One self-contained post, or a multi-post thread.
  4. 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)?
  5. Score confidence. If two formulas fit, return the top 2 with fit scores.
  6. 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.
  7. Name the primary goal the original optimized for.
  8. Generate a blank template with {slot} markers matched to the original shape and the user's topic.
  9. 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 file
  • references/classification-rules.md - feature extraction + scoring heuristics
  • references/examples.md - worked teardowns (single post and thread)
  • threads-post-writer - use the extracted template to draft your own post or thread
  • threads-humanizer --mode audit - audit your draft before shipping
1---
2name: threads-hook-extractor
3description: "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 
8Paste a viral Threads post or thread URL. Get back: which hook formula it uses,
9the exact structure, why it worked, and a blank template you can fill with your
10own 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 
20A Threads post or thread URL (`threads.net` or `threads.com`, `/@handle/post/`).
21For 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 
441. **Parse the URL.** `lib.url_parser.parse_threads_url(url)` returns `handle`,
45 `post_id`, `url_type`.
462. **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.)
493. **Detect the container.** One self-contained post, or a multi-post thread.
504. **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)?
575. **Score confidence.** If two formulas fit, return the top 2 with fit scores.
586. **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.
607. **Name the primary goal** the original optimized for.
618. **Generate a blank template** with `{slot}` markers matched to the original
62 shape and the user's topic.
639. **Audit the source.** Flag any AI tells in the original so the user does not
64 copy them.
65 
66## Example
67 
68See `references/examples.md` for worked teardowns.
69 
70## Formulas reference
71 
72See `../../references/hook-formulas.md` for the 13 canonical Threads formulas
73with 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 
View all files on GitHub →

Details

License
MIT
Stars on the repo
★ 49
Checked
Source
sergebulaev/threads-skills ↗
Creator
sergebulaev · 77 listings
View creator

Similar skills

See all →
SkillResearch what people actually say about any topicSTEP 0: STALE-CLONE SELF-CHECK — RUN BEFORE READING BELOWmvanhorn/last30days-skill · by mvanhornResearch what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Includes a doctor health check to diagnose broken or missing sources.★ 63.5k GitHub starsSkillScrapes social platforms, business dataApifydanielmiessler/LifeOS · by danielmiesslerScrapes social platforms, business data, and e-commerce via Apify actors — Instagram, LinkedIn, TikTok, YouTube, Facebook, Google Maps, Amazon, and web crawls — filtering in code. USE WHEN scrape Instagram, scrape LinkedIn, scrape TikTok, scrape YouTube, scrape Facebook, Google Maps leads, Amazon reviews, business intelligence, multi-platform social listening, competitive analysis, lead generation, social monitoring, Apify actors, web crawl, extract contacts. NOT FOR X/Twitter account operations like posting, threads, or bookmarks (those need a dedicated X API client), 4-tier progressive scraping with proxy escalation (use BrightData), or real-Chrome bot bypass and computer use (use Interceptor).★ 19.3k GitHub starsSkill微信公众号长文增长闭环 ——tsingyuai/growth-lab · by tsingyuai微信公众号长文增长闭环 —— 从读者问题与复刻锚选题、写出可验证的公众号长文、预览与合规检查、同步微信草稿、三重确认下受控发布,到回收阅读与转化数据并复盘。用户要求写公众号、把内容改成公众号、同步或发布微信草稿、查看公众号数据或复盘时使用。★ 2k GitHub starsSkillSearch and retrieve content from Twitter/XTwitter/X SkillReScienceLab/opc-skills · by ReScienceLabSearch 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.★ 1.8k GitHub starsSkillSays 'YouTube script', 'video script'🎬 YouTube Script: Writing retention-optimized video script...cwinvestments/memstack · by cwinvestmentsUse this skill when the user says 'YouTube script', 'video script', 'write script for YouTube', 'YouTube video outline', or is creating scripted content for a YouTube video with hooks, chapters, and CTAs. Do NOT use for TikTok/Reels short-form scripts or webinar presentations.★ 423 GitHub starsSkillAgent Reach — 互联网能力路由器Ootto-AI/claude-content-skills · by Ootto-AIMUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X / 搜搜 X / 看看大家怎么评价 X / X 上有什么讨论 / research this topic。 Also MUST USE when user mentions any platform or shares any URL/链接: 小红书/xiaohongshu/xhs, Twitter/推特/X, B站/bilibili, Reddit, V2EX, LinkedIn/领英/招聘/求职/jobs, YouTube, GitHub code search, 小宇宙播客, 雪球/股票行情, RSS feeds, or any web URL. 13 platforms, multi-backend routing (OpenCLI / per-platform CLIs / APIs). Zero config for 6 channels. Run `agent-reach doctor --json` to see which backend serves each platform right now. NOT for: 写报告/数据分析/翻译等内容加工(本 skill 只负责从互联网获取内容); 发帖/评论/点赞等写操作;已有专门 skill 的平台(先用专门 skill)。 【路由方式】SKILL.md 包含路由表和常用命令,复杂场景需按需阅读对应分类的 references/*.md。 分类:search / social (小红书/推特/B站/V2EX/Reddit) / career(LinkedIn) / dev(github) / web(网页/文章/RSS) / video(YouTube/B站/播客)。★ 139 GitHub stars

More from sergebulaev

SkillBy density per paragraph, not per wordAI Tells — Complete Blacklist (V3, 2026-09)sergebulaev/linkedin-skills · by sergebulaevScored the way readers read: by density per paragraph, not per word. One marker in a paragraph is English. Three is a signature. The…★ 3.1k GitHub starsSkillFifteen rules from the linkedin-humanizer packageAI-Tell Rules: Tier-Classified Referencesergebulaev/linkedin-skills · by sergebulaevFifteen rules from the linkedin-humanizer package, sorted by what kind of evidence each one actually represents.★ 3.1k GitHub starsSkillPattern data from MagicPost LinkedIn analysisEmoji Patterns — AI vs. Humansergebulaev/linkedin-skills · by sergebulaevPattern data from MagicPost LinkedIn analysis (Feb 2026, viral post with 220 engagement).★ 3.1k GitHub starsSkillRead your Instagram niche and profile from real dataInstagram Audience Insightssergebulaev/instagram-skills · by sergebulaevRead your Instagram niche and profile from real data via Apify, no login. Scan a hashtag for the posts traveling now (likes, comments, owner) to see the format and hook that works. Pull profile stats for any handle, yours or a competitor's: followers, posts, bio, category. Instagram hides who liked or commented on other accounts, so this is discovery plus profiles, not engagers. Triggers on "what works in my niche", "scan the hashtag", "competitor stats". Not for writing captions (use ig-caption-writer).★ 138 GitHub starsSkillDraft an Instagram caption with the hook in the first 125Instagram Caption Writersergebulaev/instagram-skills · by sergebulaevDraft an Instagram caption with the hook in the first 125 characters, a skimmable body, and one clear CTA, using a 2026 hook formula chosen by goal (saves, shares, comments, follows). Runs the humanizer pass and, on approval, publishes with the image or video you supply via the Publora media flow. Use to caption a single image or a Reel. Not for slide-by-slide carousels (use ig-carousel-planner) or auditing a draft (use ig-humanizer --mode audit).★ 138 GitHub starsSkillPlan an Instagram carousel slide by slide, up to 10 slidesInstagram Carousel Plannersergebulaev/instagram-skills · by sergebulaevPlan an Instagram carousel slide by slide, up to 10 slides, with a hook slide that opens a loop, value slides that front-load the payoff, and a payoff slide that earns the save and follow. Picks a 2026 carousel formula (listicle, before/after, myth-buster, framework) by goal (saves, shares, follows), drafts each slide's text plus the caption, then publishes the images you supply via Publora. Use to structure a multi-slide carousel. Not for single-image captions (use ig-caption-writer).★ 138 GitHub stars