/instagram-agent:ig-publishfrom instagram-agent
Posts or schedules Instagram Reels, photos, carousels, or stories via Blotato's official API. Requires media, a humanized caption, and two explicit user confirmations before publishing.
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.
The only skill in this pack that touches Instagram. The others write. This one sends, and only after the user has said so twice.
It goes through Blotato, which publishes through Instagram's official Content
Publishing API on an account the user connected to Blotato themselves, using
the account pinned in ~/.claude/instagram/.env. No
browser, no cookies, no password. The account has to be a Business or Creator
account connected in Blotato.
/ig-human and caption.py in this
conversation, and the user must have said "yes" to it. If either is
missing, run them now, show the result, and ask. Do not publish a caption
you have not cleaned. publish.py refuses more than 2,200 characters or
more than five hashtags. It does not rewrite them.~/.claude/instagram/.env needs BLOTATO_API_KEY
and BLOTATO_ACCOUNT_INSTAGRAM. If it is missing, tell the user exactly
those two lines and stop. Never ask them to paste the key into the chat.python3 publish.py --check and put the
@username it prints in the check below. A Blotato workspace can hold several
Instagram accounts and the id alone does not say which one this is.--first-comment and say so.| the user has | flag | notes |
|---|---|---|
| a video for Reels | --video reel.mp4 | optional --cover cover.jpg |
| one image | --images photo.jpg | a feed photo, optional --alt-text |
| 2 to 10 images or clips | --images 1.png 2.png ... | a carousel, in the order given |
| a story frame | --story frame.png | no caption field, one frame per run |
For a carousel, list the files one by one in slide order. Do not use a glob,
because s10.png sorts before s2.png. Every video item in a carousel must be
at least 3 seconds long. Hosted https:// URLs pass straight through. Local
files are uploaded to Blotato first.
Show the user, in one block:
PUBLISH CHECK
account: Instagram @yourhandle (from publish.py --check)
kind: reel | photo | carousel (7 slides) | story
media: reel.mp4 (48 MB) cover: cover.jpg
when: now | next free slot | 2026-09-22 08:15 local (12:15 UTC)
caption: 389 of 2,200 characters, 3 hashtags, caption.py READY
first comment: the template link
<the final caption, exactly as it will go out>
Reply "publish" to send it, or tell me what to change.
Wait for the word "publish". "yes", "ok" and "looks good" are not enough for something that goes out under their name. Ask once more if it is ambiguous.
Blotato wants ISO 8601 UTC with the Z. Convert from the user's local time,
say both, and put the UTC one in the command. The script refuses a time in the
past or one with no timezone.
--schedule now (default)--schedule next_slot uses Blotato's next free slot for that account--schedule 2026-09-22T12:15:00Z for an exact timeWrite the approved caption to a temp file exactly as shown, then one of:
python3 publish.py caption.txt --video reel.mp4
python3 publish.py caption.txt --video reel.mp4 --cover cover.jpg --schedule next_slot
python3 publish.py caption.txt --images 1.png 2.png 3.png 4.png --alt-text "..."
python3 publish.py caption.txt --images photo.jpg --first-comment link.txt
python3 publish.py --story frame.png
python3 publish.py caption.txt --video reel.mp4 --dry-run # the payload, nothing sent
The script names the account, uploads any local files, submits, then polls
Blotato every 20 seconds until the post is published, scheduled or
failed, for up to ten minutes. Reels can take a few minutes because Instagram
transcodes them. It prints one of:
PUBLISHED https://www.instagram.com/reel/...
SCHEDULED 2026-09-22T12:15:00Z
FAILED <reason>
STILL PROCESSING after 600s. Submission <id>: check Blotato before retrying.
Do not end your turn while it is still polling. Relay the final line with the URL. If it says FAILED, quote the reason and do not retry the same command, because the reason tells you what to fix. If it says STILL PROCESSING, do not resubmit, or the user gets the post twice.
The script appends a line to ~/.claude/instagram/log.md with the date, kind,
account, status, schedule, URL and the caption's first line, so /ig-audit can
find it later.
--account for an account the user did not name in this
conversation, and show its @username from --check first. The default is
the account in .env.What SKILL.md sets; muted values are Claude Code's defaults
16 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
npx claudepluginhub nessalazne/instagram-agent-skill --plugin instagram-agent