/instagram-agent:ig-insightsfrom instagram-agent
Fetches real public Instagram data via Apify: trending reels under a hashtag, follower/posting stats for handles, and median views per account for breakout detection. Feeds /ig-viral's swipe file. Requires an Apify token.
Ships in instagram-agent. 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.
/ig-viral is the research skill, and it collects by hand. This one does the
collecting through Apify when the user has a token, so the same ranking runs on
more data in less time. Without a token it does nothing /ig-viral cannot, so
send them there.
One tool lives in this folder and it runs:
python3 fetch.py --check # is the token good?
python3 fetch.py hashtag TAG --max 20 # reels traveling under a tag
python3 fetch.py hashtag TAG --type posts # feed posts and carousels instead
python3 fetch.py profile HANDLE [HANDLE ...] # stats + median views per account
python3 fetch.py swipe TAG --max 30 --out ~/.claude/instagram/captured.tsv
python3 ../ig-viral/swipe.py ~/.claude/instagram/captured.tsv --out ~/.claude/instagram/swipe.md
One line in ~/.claude/instagram/.env: APIFY_TOKEN=apify_api_.... Check it
with python3 fetch.py --check.
It uses Apify's own no-login actors (apify/instagram-hashtag-scraper and
apify/instagram-profile-scraper), so the user's Instagram login is never
involved and nothing is ever done as them. It costs about $0.0026 per post or
profile. A 30-reel swipe is two runs and about $0.16. Apify's free tier covers
$5 a month.
Always run --dry-run first and show the estimate. The script flags
anything over $1.00. Ask before running that. Every run also carries a hard
spending ceiling that Apify enforces, so an estimate can never turn into a
bigger bill.
It sees: posts and reels under a hashtag (caption, plays, likes, comments, length, owner, date), and a profile's public numbers (followers, post count, bio, category, links, and its last 12 posts, which is where the median comes from).
It cannot see: who liked or commented on somebody else's post, saves, sends, or reach. Instagram does not expose those for accounts you do not own. Say so when the user asks for them. Do not estimate them.
Likes come back as null when the owner has hidden them. That is not zero.
1. Niche pulse. fetch.py hashtag TAG. Rank by plays, not likes, then say
what the top of the list shares: format, length, how the caption opens, whether
the first line has a number or a name in it. Four posts sharing a trait is a
pattern. One is an anecdote.
2. Profile read. fetch.py profile HANDLE .... Followers, post count,
category, and median_views over the reels in the last 12 posts. Report
reels_in_sample next to it. A median over two reels is a guess, and the
report should say so.
3. Swipe file. fetch.py swipe TAG --out captured.tsv writes exactly the
file /ig-viral asks the user to fill by hand: account, followers, median,
views, hook. Then run ../ig-viral/swipe.py on it unchanged and carry on from
/ig-viral Step 4.
The hook column is the caption's first sentence, not the spoken first
line. /ig-viral wants the spoken line, and that is what its formula
classifier was tuned on. A caption hook is still worth ranking, but expect more
unclassified rows. When a reel matters, watch the first three seconds and
replace the cell with what is actually said before running swipe.py again.
Rows with no median (a private owner, or no reels in their last 12 posts) fall
back to follower count, and swipe.py then ranks them on a different baseline.
The fetch prints how many. Say it in the report.
/ig-viral.NICHE #contentcreatortips · 20 reels · est. $0.05
23,573 plays @acct_a 454 followers, median 240 98x
"If you've ever wondered how I get my videos to look like this..."
22,346 plays @acct_b 41,007 followers, median 2,965 7.5x
...
PATTERN (5 of the top 7)
under 45 seconds · first line names a tool or a result · one ask
MAKE MORE OF
#10 If This, Then Watch hand to /ig-reel with the formula chosen
WATCH
@acct_a small account, one outsized reel, same audience as yours
Write the report to ~/.claude/instagram/insights/YYYY-MM-DD.md. Route writing
work to /ig-reel, /ig-caption or /ig-carousel.
Adapted from ig-audience-insights in Serge Bulaev's
instagram-skills (MIT).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nessalazne/instagram-agent-skill --plugin instagram-agent16 skills in this plugin
/ig-auditPost-mortem on what the user has already posted - which reels actually worked, why, and what to stop making. Use when the user pastes their Instagram insights or past posts and asks "what's working", "why did this flop", "read my analytics", "audit my content", or wants to know what to do more of./ig-captionWrite the Instagram caption - the line that survives the "... more" cut, the body, the single ask, the search terms and the three hashtags - and lint it before it goes out. Use when the user says "write the caption", "caption this", "what do I put in the description", has a reel or a carousel ready and needs the text, or asks about hashtags./ig-carouselBuild an Instagram carousel - the cover that earns the swipe, slide-by-slide copy, and the 1080x1350 files to upload. Use when the user says "carousel", "slides", "swipe post", "turn this into a carousel", or has a list-shaped or step-shaped idea that would die as a single image.Other plugins' skills for the same job