Agent skill

Ig Hook Extractor

by sergebulaev in sergebulaev/instagram-skills

Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption.

MITAuto-check passedMarketing & SEO

Install Ig Hook Extractor

skills CLI
$ npx skills add sergebulaev/instagram-skills --skill ig-hook-extractor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sergebulaev/instagram-skills ig-hook-extractor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sergebulaev/instagram-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ig-hook-extractor .claude/skills/ig-hook-extractor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ig-hook-extractor
GitHub stars
292
Token cost
~1k tokens
SKILL.md length
506 words
Files
3 (incl. references)
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption.

  • Works in 9 steps: Parse the URL.… → Get the content. Ask the user to paste… → Detect the surface. Single image,… → …
  • Learn from a post you admire
  • SKILL.md covers When to use, Input, Output and Steps, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ig Hook Extractor is an agent skill from sergebulaev/instagram-skills. Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption. Identifies which of the 10 canonical 2026 formulas it uses (number-first, contrarian, relatable, confession, listicle, before/after, myth-buster, framework, pattern-interrupt Reel, how-I Reel), explains why it worked, names the primary goal, and returns a blank template mapped to your topic. Use to learn from a post you admire. Not for writing your own (use ig-caption-writer or ig-carousel-planner).

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/classification-rules.md` and `references/examples.md`).

It sits in Marketing & SEO. It works with Instagram. The repository describes itself as: Instagram marketing skills for Claude Code and Codex: captions, carousels, hooks, hashtag strategy, and a weekly plan. Draft, humanize, and publish via Publora. MIT. Content… The licence is MIT.

When your agent uses it

  • Learn from a post you admire

Example prompts

  • “/ig-hook-extractor”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Parse the URL. lib.url_parser.parse_instagram_url(url) returns
  2. Get the content. Ask the user to paste the caption, and for a carousel the
  3. Detect the surface. Single image, carousel, or Reel.
  4. Classify against the 10 formulas using features
  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 carousel, map slide
  7. Name the primary goal the original optimized for.
  8. Generate a blank template with {slot} markers matched to the original
  9. Audit the source. Flag any AI tells so the user does not copy them.

What it can do on your machine

Read from SKILL.md and the folder at commit 652be40. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ig Hook Extractor loads about 1k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 130 tokens; SKILL.md has 506 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~130
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sergebulaev/instagram-skills at commit 652be40, republished under its MIT licence (© sergebulaev). 506 words, ~1,028 tokens.

Download SKILL.mdSave it as .claude/skills/ig-hook-extractor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
ig-hook-extractor
description
Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption. Identifies which of the 10 canonical 2026 formulas it uses (number-first, contrarian, relatable, confession, listicle, before/after, myth-buster, framework, pattern-interrupt Reel, how-I Reel), explains why it worked, names the primary goal, and returns a blank template mapped to your topic. Use to learn from a post you admire. Not for writing your own (use ig-caption-writer or ig-carousel-planner).

Instagram Hook Extractor

Paste a viral Reel or carousel URL (or the caption text). Get back: which hook formula it uses, the exact structure, why it worked, the primary goal it chased, and a blank template you can fill with your own voice.

When to use

  • User finds a viral Reel or carousel they want to study
  • User wants to replicate a specific creator's pattern
  • Before ig-caption-writer or ig-carousel-planner, to seed a draft with a proven shape

Input

An Instagram URL (/p/, /reel/, or a profile) or pasted caption + slide text. This bundle has no built-in Instagram reader, so for a URL the skill asks the user to paste the caption (and the on-image slide text for a carousel, or a quick description of the Reel's first 3 seconds).

Output

  • Formula identified (IG1-IG10 from ../../references/hook-formulas.md) with a confidence score
  • Surface: single image, carousel, or Reel, and why that surface fit the idea
  • Structural breakdown:
    • The hook (caption first 125 chars / carousel slide 1 / Reel first 3 seconds)
    • Body architecture (per-slide roles for a carousel; beat order for a Reel)
    • The close (what earns the save, send, or follow)
    • Reaction-triggering devices (numbers, named entities, the open loop)
  • Primary goal the original chased (saves / shares / comments / follows)
  • 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 over the cap, an AI-vocab cluster, 30 hashtags, mixed media)
Show full SKILL.md (258 more words)Show less

Steps

  1. Parse the URL. lib.url_parser.parse_instagram_url(url) returns username, shortcode, url_type.
  2. Get the content. Ask the user to paste the caption, and for a carousel the slide text, or for a Reel the first 3 seconds (on-screen text + opening line). (If they later wire an Apify Instagram actor, read it automatically.)
  3. Detect the surface. Single image, carousel, or Reel.
  4. Classify against the 10 formulas using features:
    • Caption: an odd-precision result (IG1)? a contrarian claim (IG2)? a relatable moment (IG3)? a first-person confession (IG4)?
    • Carousel: a numbered teaching list (IG5)? a before/after (IG6)? a myth/truth structure (IG7)? a named framework (IG8)?
    • Reel: a pattern interrupt in the first seconds (IG9)? a "how I" teardown (IG10)?
  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 carousel, map slide 1 (the loop), the front-loaded value, and the payoff slide.
  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 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 Instagram 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 (caption, carousel, Reel)
  • ig-caption-writer - use the extracted caption template to draft your own
  • ig-carousel-planner - use the extracted carousel template
  • ig-humanizer --mode audit - audit your draft before shipping

© sergebulaev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/ig-hook-extractor of sergebulaev/instagram-skills.

  • SKILL.md
  • references/classification-rules.md
  • references/examples.md

Open the folder on GitHubat commit 652be40

Compare with similar skills

Ig Hook Extractor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ig Hook Extractor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ig Hook Extractor this skillsergebulaev/instagram-skills292—~1kAutomated safety check: PassMIT
Influencer Discoverytigerless-labs/influencer-discovery211—~2.5kAutomated safety check: NotesNone
Paid Adsfreekmurze/dotfiles1k13 repos~2.4kAutomated safety check: PassNone
AdsCesarjoquin/Marketing-Skills1991 repos~3.5kAutomated safety check: PassMIT
Meta Ad Builderkrusemediallc/arcads-claude-code1.6k—~1.7kAutomated safety check: NotesMIT
Comment MiningScrapeCreators/social-media-research-skills3.3k—~1kAutomated safety check: NotesMIT

Similar skills

  • Influencer Discovery

    tigerless-labs/influencer-discovery

    Find the bloggers/creators who can help promote your work, capture their contact info, and append them to the target sheet in Google Sheets.

    211 GitHub stars~2.5k tokensUpdated 15 days ago
    Marketing & SEOAuto-check: notes
  • Paid Ads

    freekmurze/dotfiles

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    1k GitHub starsUsed in 13 repos~2.4k tokens
    Marketing & SEOAuto-check passed
  • Ads

    Cesarjoquin/Marketing-Skills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    199 GitHub starsUsed in 1 repo~3.5k tokens
    Marketing & SEOAuto-check passed
  • Meta Ad Builder

    krusemediallc/arcads-claude-code

    Publish finished creatives as live Meta (Facebook/Instagram) ads via the Meta Marketing API, plus research and ad-copy support.

    1.6k GitHub stars~1.7k tokensUpdated 14 days ago
    Marketing & SEOAuto-check: notes
  • Comment Mining

    ScrapeCreators/social-media-research-skills

    A skill your agent uses when the user wants to mine comments and replies for audience reactions, customer language, questions, objections, complaints, product ideas, buying intent, sentiment, or…

    3.3k GitHub stars~1k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check: notes
  • Mena Ads

    growthack88/growth-marketing-os

    MENA Ads Command Center — a complete paid-ads operating system for the Arab world (Egypt, KSA, UAE, GCC, Levant, North Africa) and global accounts.

    115 GitHub stars~2.5k tokensUpdated 5 days ago
    Marketing & SEOAuto-check passed

More from sergebulaev/instagram-skills

All 10 skills in this repo
  • Instagram Marketing

    sergebulaev/instagram-skills

    Plan, draft, audit, and publish content for Instagram. An agent skill from sergebulaev/instagram-skills.

    292 GitHub stars~1.9k tokensUpdated today
    Auto-check: notes
  • Ig Content Planner

    sergebulaev/instagram-skills

    Generate a weekly Instagram content plan from a theme, audience, and content pillars.

    292 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Ig Hashtag Strategist

    sergebulaev/instagram-skills

    Build a sized Instagram hashtag set for a post using the 2026 reality that 3 to 5 well-chosen tags beat 30 random ones.

    292 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Ig Caption Writer

    sergebulaev/instagram-skills

    Draft 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).

    292 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Ig Carousel Planner

    sergebulaev/instagram-skills

    Plan 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.

    292 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Ig Humanizer

    sergebulaev/instagram-skills

    Remove the AI tells readers react to in an Instagram caption or carousel slide: 2026 vocabulary by density, reveal bridges, staccato stacks, stacked triads, performed sincerity, emoji storms; caps…

    292 GitHub stars~4k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Ig Hook Extractor

What does Ig Hook Extractor do?

Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption. Ig Hook Extractor is an agent skill from sergebulaev/instagram-skills. Reverse-engineer the hook from a viral Instagram Reel or carousel, given a URL or a pasted caption.

When should I use Ig Hook Extractor?

Ig Hook Extractor fits situations like: learn from a post you admire.

How do I install Ig Hook Extractor in Claude Code?

Run `npx skills add sergebulaev/instagram-skills --skill ig-hook-extractor -a claude-code`. Or copy the skill folder (skills/ig-hook-extractor in sergebulaev/instagram-skills) into .claude/skills/ig-hook-extractor in your project. Claude Code loads it when a task matches its description.

How do I install Ig Hook Extractor in Codex?

Run `npx skills add sergebulaev/instagram-skills --skill ig-hook-extractor -a codex`. Or copy the skill folder (skills/ig-hook-extractor in sergebulaev/instagram-skills) into .agents/skills/ig-hook-extractor in your project. Codex loads it when a task matches its description.

Can I use Ig Hook Extractor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sergebulaev/instagram-skills --skill ig-hook-extractor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ig-hook-extractor, .gemini/skills/ig-hook-extractor, .github/skills/ig-hook-extractor and .opencode/skills/ig-hook-extractor in your project.

What does Ig Hook Extractor need to run?

SKILL.md names no scripts, command-line tools or credentials: Ig Hook Extractor is instructions for the agent only.

Does Ig Hook Extractor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ig Hook Extractor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ig Hook Extractor use?

Ig Hook Extractor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ig Hook Extractor use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Ig Hook Extractor?

Skills that share tags, products or a category with Ig Hook Extractor: Influencer Discovery (tigerless-labs/influencer-discovery, 211 stars), Paid Ads (freekmurze/dotfiles, 1k stars), Ads (Cesarjoquin/Marketing-Skills, 199 stars) and Meta Ad Builder (krusemediallc/arcads-claude-code, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ig Hook Extractor?

sergebulaev (a GitHub user) maintains it in sergebulaev/instagram-skills, which has 292 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: sergebulaev/instagram-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.