Install
$ agentstack add skill-sergebulaev-threads-skills-threads-hook-extractor ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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 (em dashes,
AI vocab, 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
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: sergebulaev
- Source: sergebulaev/threads-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.