一键导入
instagram-msg
Instagram DM operations — inbox, single-thread history, and send. Send drives the live Chrome tab via CDP; inbox and thread use the read-only web API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instagram DM operations — inbox, single-thread history, and send. Send drives the live Chrome tab via CDP; inbox and thread use the read-only web API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | instagram-msg |
| description | Instagram DM operations — inbox, single-thread history, and send. Send drives the live Chrome tab via CDP; inbox and thread use the read-only web API. |
Instagram direct-message operations.
instagram-user skill — auth is shared.send: chrome-cdp skill installed, plus an instagram.com tab open in the CDP-connected Chrome (the script opens one automatically if missing).node scripts/instagram-msg.mjs inbox [--count=20] [--cursor=X] [--pending]
--pending lists the message-requests bucket instead of the primary inbox. Returns thread summaries with thread_id, users, last_activity_at, has_unread, and a last_message preview. Cached to ~/.local/share/showrun/data/instagram/cache/{inbox,pending_inbox}.json.
node scripts/instagram-msg.mjs thread <thread_id> [--count=20] [--cursor=X]
Returns the message history with sender_id, text, timestamps, reactions, and replied-to references.
node scripts/instagram-msg.mjs send <username|user_id|thread_id> "text"
Target auto-detection: a numeric string ≥14 digits is treated as a thread_id, ≤12 digits as a user_id, anything non-numeric as a username (resolved via the profile endpoint).
On success returns { ok: true, thread_id, item_id, timestamp, composer_cleared: true }. On failure ok is false and a warning is printed.
send drives the UI instead of POSTing JSONInstagram retired the public POST /api/v1/direct_v2/threads/broadcast/text/ endpoint for the web client. Even with a valid sessionid, csrftoken, x-ig-app-id, x-asbd-id, and a replayed x-ig-www-claim, the request returns HTML (the login page) instead of JSON, and the server's anti-abuse layer flags repeated failed POSTs as suspicious — escalating to a soft logout after a handful of attempts. Web DM send is now carried over a WebSocket (Mercury/Polaris) with tokens we can't reliably replay from Node.
The working alternative is to drive the live Chrome tab via CDP:
/direct/t/<thread_id>/ for an existing thread).div[contenteditable=true] composer, click it to focus, Input.insertText the message, then Input.dispatchKeyEvent Enter.sender_id appears in the matching thread.This is brittle (any IG DOM change can break it) but it's the only path that ships real messages without burning the session.
send will fail fast with a clear error. Follow them first if mutual-follow unlocks DMs, or send through an existing thread instead.ok: false with composer_cleared: true, the send likely landed and the inbox just hadn't caught up — re-run inbox after a few seconds to confirm.~/.local/share/showrun/data/instagram/
├── session.json # Shared with all instagram skills
└── cache/
├── inbox.json
├── pending_inbox.json
└── thread-<thread_id>-<ts>.json
Terminal automation skills for web platforms. CLI commands — no browser needed after initial auth.
Web market / industry analysis from a SimilarWeb FREE account: list 200+ industry categories and rank the top + rising websites in any industry by traffic share, visits, engagement, and month-over-month change.
Website traffic analytics from a SimilarWeb FREE account: overview, traffic & engagement, weekly visit trend, marketing channels, audience geography, similar sites, referrals, social traffic, and display advertising. Covers a single most-recent month, worldwide.
Backlink analytics from SimilarWeb: backlink summary with TLD/country distribution, top referring domains, and individual backlinks with source URLs, anchors, and domain/page scores.
Side-by-side domain comparison using SimilarWeb Pro: engagement metrics, traffic channels, device split, rankings, and more.
SEO keyword research from SimilarWeb: SEO overview, keyword rank distribution, top organic/paid pages, keyword gap analysis, and SEO trends.