Xpersona
L

Linkedin Hook Extractor

CLAWHUB · Unverified

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... Skill: Linkedin Hook Extractor Owner: sergebulaev Summary: 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... Tags: latest:1.0.9, linkedin:1.0.0, marketing:1.0.0, social-media:1.0.0 Version history: v1.0.9 | 2026-07-06T01:58:04.675Z | user Initial ClawHub publish v1.0.0 | 2026-04-14T21:40:05.984Z | user Initi

62
Rank
84
Safety
992
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 992 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177bqjwcnr0pvsgvpzgeayqrx84tk9r:linkedin-hook-extractor
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sergebulaev-linkedin-hook-extractor/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

20,004 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: linkedin-hook-extractor
description: 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).
---

# 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 with no setup (F11 Emotional Cold-Open); "I don't know who needs to hear this" reassurance (F12 Permission Slip); fake-bad-news that resolves positive (F13 Bait-and-Switch); a roll-call of named people thanked (F14 Named Gratitude); "{jargon} explained to kids" glossary (F15 Explain-to-Kids); "outside I'm called X, at home none of it survives" (F16 Status-Strip).
4. **Score confidence.** If multiple formulas fit, return top 2 with fit scores.
5. **Extract structure.** Pull each logical section and label it by formula role.
6. **Generate blank template.** Replace specifics with `{slot}` markers that match the user's topic.
7. **Audit the source.** Flag any AI tells in the original so the user doesn't copy them.

## Example

See `references/examples.md` for worked examples.

## Formulas reference

See `../../references/hook-formulas.md` for the 16 canonical formulas with full skeletons.

## Files

- `SKILL.md` — this file
- `references/classification-rules.md` — feature extraction + scoring heuristics

## Related skills

- `linkedin-post-writer` — u

_meta.json

{
  "ownerId": "kn78vd4zr956q020mrry482ath81gra0",
  "slug": "linkedin-hook-extractor",
  "version": "1.0.9",
  "publishedAt": 1783303084675
}

references/classification-rules.md

# Hook Formula Classification Rules

Features extracted from a post and how they map to formulas.

## Feature extraction

### Hook features (first 2 lines)
- `anaphora_count`: number of parallel "X can Y" style lines at the top
- `leads_with_number`: does line 1 start with a dollar figure or stat?
- `question_hook`: is line 1 a question?
- `confession_phrase`: "I stopped", "I was wrong", "for years I"
- `obituary_phrase`: "R.I.P.", "dying since", "cause of death"
- `time_anchor`: "{N} {days|months|years} ago"
- `year_over_year`: "In {2024|2025}, I ... In {2025|2026}, I'm"
- `curiosity_gap`: short incomplete tease (<8 words, no noun specified)
- `free_reversal`: "I charge X. Today it's free."
- `public_commitment`: "For the next 24 hours, I will"

### Body features
- `has_numbered_list`: 1., 2., 3., ... with ≥4 items
- `has_dated_receipts`: multiple "{Month Year} — {event}" lines
- `has_ledger`: line-item dollar amounts (non-rounded)
- `has_teardown`: screenshot references or annotations
- `has_checklist`: named steps with instructions

### Close features
- `mirror_question`: "What's your {last→this} pivot?"
- `identity_reframe`: "If you're X, you already lost"
- `commitment_close`: "If I'm wrong, I owe you a post"
- `soft_offer`: "Connect + DM me for X"
- `comment_gate`: "Comment KEYWORD below"

## Mapping features → formulas

```python
FORMULA_RULES = {
    "F1_anaphora": {
        "required": ["anaphora_count >= 3"],
        "boost": ["has_numbered_list", "metaphor_close"],
    },
    "F2_rip_obituary": {
        "required": ["obituary_phrase"],
        "boost": ["has_numbered_list", "identity_reframe"],
    },
    "F3_year_over_year": {
        "required": ["year_over_year"],
        "boost": ["mirror_question"],
    },
    "F4_time_anchor_confession": {
        "required": ["time_anchor OR confession_phrase"],
        "boost": ["mirror_question"],
    },
    "F5_self_proving_meta": {
        "required": ["public_commitment"],
        "boost": ["commitment_close", "has_numbered_list"],
    },
    "F6_comment_gate": {
        "required": ["comment_gate"],
        "boost": ["has_numbered_list"],
    },
    "F7_odd_precision_money": {
        "required": ["leads_with_number", "has_ledger"],
        "boost": ["identity_reframe"],
    },
    "F8_paid_vs_free_reversal": {
        "required": ["free_reversal"],
        "boost": ["has_checklist", "soft_offer"],
    },
    "F9_curiosity_gap": {
        "required": ["curiosity_gap"],
        "boost": [],
    },
    "F10_contrarian_historical": {
        "required": ["has_dated_receipts"],
        "boost": ["identity_reframe"],
    },
}
```

## Confidence scoring

```python
def score_formula(post_features: dict, rules: dict) -> float:
    required_met = sum(1 for r in rules["required"] if eval_feature(post_features, r))
    if required_met < len(rules["required"]):
        return 0.0
    boost = sum(1 for b in rules["boost"] if post_features.get(b))
    return 1.0 + 0.15 * boost  # cap at 1.6
```

Return

references/examples.md

# Examples — LinkedIn Hook Extractor

## Example

> **Input:** `https://www.linkedin.com/posts/dharmesh_every-b2b-software-company-is-or-should-activity-7448808898326654978-iW20`

> **Output:**
> - **Formula:** F10 Contrarian + Historical Receipts (confidence 0.72). Secondary: F5 Self-Proving Meta (0.28).
> - **Hook (first 210 chars):** "Every B2B software company is (or should be) building an agentic version of their product."
> - **Body:** single bold claim → 3 paragraphs of reasoning → specific list of product changes required
> - **Close:** implicit call to action ("Seen this play out in your market yet?")
> - **Blank template:**
>   ```
>   Every {category} {bold claim}.
>
>   {Reasoning paragraph 1 — the forcing function}
>   {Reasoning paragraph 2 — what it requires}
>   {Reasoning paragraph 3 — what breaks if you don't}
>
>   {Closing question that invites reader to take a side}
>   ```
> - **Cautions:** none (post is clean)

skill-card.md

## Description:

Reverse-engineer the hook formula from a viral LinkedIn post URL, identifying the matching canonical formula, why it worked, and a blank template for adapting the structure.

This skill is ready for commercial/non-commercial use.

## Publisher:

[sergebulaev](https://clawhub.ai/user/sergebulaev)

### License/Terms of Use:

MIT-0

## Use Case:

Marketing operators, creators, and content strategists use this skill to study viral LinkedIn posts, classify hook structure, understand why the post worked, and produce a reusable template for their own topic.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Using the APIFY_TOKEN path may send the LinkedIn post URL to Apify for fetching.

Mitigation: Leave APIFY_TOKEN unset and paste the post text manually when the URL should not be sent to Apify.

Risk: Non-English posts may not receive full formula classification.

Mitigation: Treat non-English outputs as structural analysis and verify any formula classification manually before reuse.

## Reference(s):

- [Hook Formula Classification Rules](artifact/references/classification-rules.md)
- [Examples - LinkedIn Hook Extractor](artifact/references/examples.md)
- [ClawHub skill page](https://clawhub.ai/sergebulaev/skills/linkedin-hook-extractor)

## Skill Output:

**Output Type(s):** [Analysis, Markdown, Guidance]

**Output Format:** [Markdown with structured classification, rationale, cautions, and template text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May ask the user to paste LinkedIn post text when APIFY_TOKEN is unset; non-English posts may receive structural breakdown rather than full formula classification.]

## Skill Version(s):

1.0.9 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Linkedin Hook Extractor and adjacent AI workflows.