Install
$ agentstack add skill-sergebulaev-facebook-skills-fb-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
Facebook Page Hook Extractor
Paste a high-share Page post URL (or the text). 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 high-share Page post they want to study
- User wants to replicate a specific Page's pattern
- Before
fb-post-writer, to seed a draft with a proven shape
Input
A Facebook Page post URL (any of the many shapes: /posts/, permalink.php, /watch/, share/p/). For a share/p/ link the page and post ids are hidden behind an opaque token, so paste the post text. The bundle has no built-in Page reader, so the user pastes the post text either way.
Output
- Formula identified (FB1-FB10 from
../../references/hook-formulas.md) with
a confidence score
- Container: short post vs story post, and why that container fit the idea
- Structural breakdown:
- The hook line (and for a story post, how the first line earns the "See more" tap)
- Body architecture (the beats, for a longer post)
- The close (what earns the share or the comment)
- Interaction-triggering devices (numbers, named entities, the question, the turn)
- Primary goal the original chased (shares / comments / reactions)
- Why it worked psychologically and algorithmically (meaningful interactions)
- 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, "We are thrilled to announce", engagement bait, 5+ hashtags)
Steps
- Parse the URL.
lib.url_parser.parse_facebook_url(url)returnspage,
post_id, share_token, url_type. If url_type is "share", tell the user the ids are hidden and ask for the post text.
- Get the text. This bundle has no built-in Page reader, so ask the user to
paste the post (and any first comments, if relevant). If they later wire an Apify Page actor, read it automatically.
- Detect the container. A short post (one line / under ~80 chars) or a
longer story post.
- Classify against the 10 formulas using features:
- Short post: a flat opinion (FB1)? one hard number (FB2)? an easy question
(FB3)? a binary this-or-that (FB4)? a relatable shared moment (FB5)? a behind-the-scenes glimpse (FB6)? a usable tip (FB7)?
- Story post: a narrative with a turn (FB8)? a launch led human (FB9)? a named
customer/team spotlight (FB10)?
- Score confidence. If two formulas fit, return the top 2 with fit scores.
- Extract structure. Label each part by its role. For a story post, map the
first line (the "See more" tap), the beats, and the closer.
- Name the primary goal the original optimized for (shares / comments /
reactions).
- 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 10 canonical Facebook formulas with full skeletons and goal tags.
Files
SKILL.md- this filereferences/classification-rules.md- feature extraction + scoring heuristicsreferences/examples.md- worked teardowns (short post and story post)
Related skills
fb-post-writer- use the extracted template to draft your ownfb-humanizer- audit your draft before shippingfb-content-planner- study competitors' Pages while planning
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/facebook-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.