Maps Instagram Reels niches end-to-end using Apify Actors: finds top reels, identifies consistent creators, detects outlier performances, transcribes winning hooks, and rewrites user content with proven patterns.
Ships in apify-instagram-niche-mapper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Map an Instagram Reels niche, find the creators worth learning from, learn from their best reels, and apply the winning hooks to the user's own content. Five steps, four Actor runs.
Each step narrows the data: reels that won → creators who reach people reliably → reels that
beat their own creator's normal → the hooks inside them → hooks for the user's content.
Scripts in scripts/ do the counting so numbers are identical between runs; the agent makes
the judgment calls (topic check, language check, hook patterns, rewriting).
Prompts this skill handles:
Out of scope (the boundary):
apify-creator-emails or apify-influencer-brand-collabs.apify login or the
APIFY_TOKEN environment variable. Never paste a token into a URL or a command argument.pandas for the scripts in scripts/.| Step | User need | Actor ID | Tier |
|---|---|---|---|
| 1 | Reels Instagram already ranks for a search | apify/instagram-search-scraper | apify |
| 1 | Reels under a hashtag | apify/instagram-hashtag-scraper | apify |
| 2–4 | Each creator's last reels with plays + shares; transcripts for winners | apify/instagram-reel-scraper | apify |
Not used on purpose: account (user) search and the Hashtag Scraper's keyword mode. In testing both added cost and noise but almost none of the creators who later produced winning reels. The Profile Scraper is not needed either: its posts carry no view or play counts.
Every call carries the three standard flags. apify actors call waits for the run and returns
run metadata; take defaultDatasetId from it and save the items to a file:
apify actors call "apify/instagram-hashtag-scraper" \
-i '{"hashtags": ["localseo", "aiseo"], "resultsType": "reels", "resultsLimit": 100}' \
--json --user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null
apify datasets get-items DATASET_ID --format json \
--user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null > hashtag.json
Independent runs (the two step-1 Actors, batches of usernames in step 2) can run in parallel:
background each apify actors call with & and wait. Keep it to 5 runs at a time.
call-actor with the Actor name and input (use waitSecs: 0 and poll get-actor-run for
long runs), then get-dataset-items with the id from storages.datasets.default.id. Write
the items to a JSON file before running the scripts; don't pull thousands of items into context.
Ask only for what can't be derived:
Then propose and get one quick yes or edit on:
Rules for picking terms:
Optional, with defaults: previous creator list (weekly re-runs), shortlist size (20–25), activity window (45 days; 60–90 for slow-posting niches like B2B).
After confirmation run steps 1–4 without stopping. Pause only if a term returns nothing, or
if most step-2 reels are younger than 48 hours (then suggest re-running in a few days).
Always pass --now <today's date> to the scripts.
apify actors call "apify/instagram-search-scraper" \
-i '{"search": "local seo, seo tips", "searchType": "popular", "searchLimit": 64}' \
--json --user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null
apify actors call "apify/instagram-hashtag-scraper" \
-i '{"hashtags": ["localseo", "aiseo", "aeo"], "resultsType": "reels", "resultsLimit": 100}' \
--json --user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null
Save both datasets (popular.json, hashtag.json), then:
python scripts/step1_reels.py --inputs popular.json hashtag.json \
--topic-words "<TOPIC WORDS>" --out-dir out --now <date>
Check out/step1_review.csv by eye: the top 30 by plays and every recent reel whose caption
text doesn't mention the topic. Rows with tag_match true and text_match false are the main
suspects: hashtag stuffing, and other meanings of an acronym (#aeo also returns customs
"Authorized Economic Operator" posts). In the top 30, look for viral memes and reels about a
neighbouring topic that shares a word ("Instagram SEO" in an SEO niche). Put shortCodes to drop
in out/exclude.txt, real on-topic misses in out/include.txt, and re-run with
--exclude out/exclude.txt --include out/include.txt.
out/reels_clean.csv.Run the Reel Scraper on every author in out/authors.txt. For more than ~150 authors, split
into batches and run them in parallel. Write the input to a file to keep the command short:
# input.json: {"username": [...authors...], "resultsLimit": 12, "skipPinnedPosts": true,
# "includeSharesCount": true, "includeTranscript": false}
apify actors call "apify/instagram-reel-scraper" --input-file input.json \
--json --user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null
python scripts/step2_creators.py --reels reels12*.json \
--topic-words "<TOPIC WORDS>" --out-dir out --now <date>
The script sets aside reels under 48 hours old and computes, per creator: median plays (typical
reach), topic share of the 12 captions, active (last post within the window), collapse (newest 3
measurable reels below 0.5× the median), one-hit (one reel above 60% of plays) and a language
hint. Candidates: topic share ≥ 40% (or ≥ 25% when the handle or display name names the niche),
active, median ≥ floor, not one-hit. Floor = 70th percentile, Tier A = 75th percentile of
creator medians among on-topic, active creators, so thresholds scale to the niche (override
with --floor / --tier-a). Big-reach creators with 8–39% topic share go in a generalist group.
Then judge:
Read 2–3 on-topic captions per candidate and remove false positives (a handle that contains a topic word by coincidence; a brand selling something else).
Drop creators whose captions are clearly not in the chosen language. Some will slip through (captions are often English while speech isn't); step 4 catches them.
Flag high plays with almost no shares — likely paid promotion.
Check creators listed under "date-gap warning": an old pinned hit may have come back unflagged.
Pick the shortlist (default 20–25), Tier A first, favouring higher topic share. Save it to
out/shortlist.txt.
Datapoints that matter: median plays (median, never the mean); topic share from captions (bios overstate focus); last post; newest-3 vs median; top reel's share of plays. Followers are context only: in testing, 680k followers came with ~5k median plays.
Expect: about a third of creators pass; topic share is the strictest filter. In a tiny niche the percentiles can fall below a few hundred plays — then present the shortlist as names to follow, not proven performers.
Report: shortlist with median plays, topic share, last post and one line on why each made it; generalists separately; collapse and promotion flags.
python scripts/step3_winners.py --reels reels12*.json --shortlist out/shortlist.txt \
--step1-stats out/step1_stats.json --out-dir out --now <date>
Reels under 48 hours are set aside; creators with nothing measurable are "not yet measurable"; collapsed creators are removed (their older normal reels would look like outliers).
Outlier: ≥ 3× the creator's median AND ≥ the outlier floor (half the step-1 on-topic median).
Strong: share rate above the creator's own median share rate AND ≥ 1.5× the creator's median.
Steady creators with no outliers are listed separately; their average is worth studying.
Datapoints that matter, strongest first: share rate (people passing it on); lift vs the creator's median (real outlier vs weak baseline); caption first line (length; question, claim, news or how-to). Comments last.
Expect: 15–20% of measurable reels qualify. One or two creators often supply a large share of the winners — say so.
Report: winners with URL, creator, plays, lift, shares, share rate and first line, plus a
summary table of outliers vs strong vs rest on the three signals. Deliver out/winners.csv.
Transcripts are billed per minute, so only winners get them (step 3 prints the total minutes).
# input.json: {"username": [...URLs from out/winner_urls.txt...],
# "includeTranscript": true, "includeSharesCount": true}
apify actors call "apify/instagram-reel-scraper" --input-file input.json \
--json --user-agent apify-awesome-skills/apify-instagram-niche-mapper 2>/dev/null
python scripts/step4_hooks.py --transcripts transcripts.json --winners out/winners.csv --out-dir out
Read every row of out/hooks_review.csv, then:
Take what the user gave in step 0 (a topic, script, caption or their own reel URL; for a URL,
run the Reel Scraper on it with includeTranscript: true and read its first spoken line).
Rough sizes from a test run: step 1 ≈ 400 reels; step 2 ≈ 150 authors × 12 reels ≈ 1,800 reels; step 4 ≈ 40 winners ≈ 35–45 minutes of audio. Step 2 is the largest run — cap the author list (e.g. top 150 by plays) if the user wants to keep cost down. Check current pricing on each Actor's Store page before large runs, and confirm with the user if the estimate is significant.
Reuse the last shortlist.txt and authors.txt: run step 1 fresh, score only new authors in
step 2 and merge them with the previous scores, then run steps 3–5 on the combined shortlist. A
weekly cadence also keeps the 48-hour hold-out from hiding the newest reels.
error: no_items) → drop it; retrying rarely
helps. Multi-word phrases fail more often in hashtag keyword mode, which this skill avoids.videoViewCount → expected; plays are in videoPlayCount.skipPinnedPosts was true.MISSING – re-run transcript in the review file) → re-run
step 4 for those URLs only.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/apify-instagram-niche-mapper:apify-instagram-niche-mapperfrom apify-instagram-niche-mapper
npx claudepluginhub apify/awesome-skills --plugin apify-instagram-niche-mapper2 plugins in one repository ship this exact skill · first indexed Nov 6, 2026
Other plugins' skills for the same job