Skill Detail
Standardized Instagram skill for MediaUse. Includes Windows install, key onboarding, strict context/auth flow, full Instagram dynamic command map, and safety/rate controls.
Install This Skill
npx skills add mediause/agent-skills/instagramskill.md
Run Instagram read/write workflows in MediaUse with a consistent setup, context binding flow, command execution map, and safety pacing constraints.
Run Instagram read/write workflows in MediaUse with a consistent setup, context binding flow, command execution map, and safety pacing constraints.
Scope
Use this skill when the task targets Instagram operations such as:
- Account: health checks
- Search: users
- Get: explore feed, saved items
- User: profile, feed, followers, following
- Engage: follow, unfollow, like, unlike, save, unsave, comment
- Collection: create, delete
- Post: note, feed, reel, story
- Download: media link resolution
1. Install MediaUse CLI (Windows Only)
Use the official install script for Windows:
-
https://release.mediause.dev/install.ps1
Mandatory update rule: -
Before every run, execute the install script once to auto-install or auto-upgrade to the latest MediaUse CLI.
Run:
powershell -C "iwr https://release.mediause.dev/install.ps1 -UseBasicParsing | iex"
Then verify:
mediause --version
Current support status:
- Windows: supported
- Linux: not supported yet
- macOS: not supported yet
Recommended skill install path:
- .mediause/skills/instagram/SKILL.md
2. Get and Configure MediaUse Key
2.1 Apply for key
- Open https://mediause.dev/
- Sign in to your account.
- Open Project.
- Create or copy your API key.
2.2 Configure key in CLI
mediause manage key <your_key> --json
3. Core Flow (Mandatory Order)
Always follow this order:
First step on every run: execute install script once to auto-install/auto-upgrade the latest MediaUse CLI.
- Discover site and commands.
- Bind account context with
use account. - Check status with
auth health. - Execute dynamic site actions.
- Verify with trace/task.
3.1 Discover and plugin setup
mediause plugin list --json
mediause plugin add instagram --json
mediause instagram -h
mediause instagram post -h
3.2 Bind context before any read/write
use account must be executed successfully before any read/write action.
use account argument format:
<platform:account_id>account_idshould be selected frommediause auth list --json.
mediause auth list --json
mediause use account instagram:<account_id> --policy balanced --json
If challenge/risk prompts appear, reopen in visible mode:
mediause use account instagram:<account_id> --policy balanced --show --json
--show usually lowers repeated interception risk in challenged sessions.
3.3 Auth health precondition
auth health is valid only after successful use account.
mediause auth health --json
If auth health indicates not logged in or expired:
mediause auth login instagram --json
mediause use account instagram:<account_id> --policy balanced --json
mediause auth health --json
3.4 Guest mode
Instagram manifest currently includes default_account_id: guest, so guest context can be selected when your runtime supports it.
mediause use account instagram:guest --json
Guest mode guardrails:
- Treat as read-only by default.
- Block all write actions (post/engage/collection write intent) unless you explicitly switch to a logged-in account.
4. Instagram Dynamic Command Map (v1)
Source schema:
- plugin:
plugin.instagram - schema version:
v1
4.1 account.*
mediause instagram account health --json
4.2 search.*
mediause instagram search users --query <query> [--limit <n>] --json
4.3 get.*
mediause instagram get explore [--limit <n>] --jsonmediause instagram get saved [--limit <n>] [--collection <name>] --json
4.4 user.*
mediause instagram user profile --username <username> --jsonmediause instagram user feed --username <username> [--limit <n>] --jsonmediause instagram user followers --username <username> [--limit <n>] --jsonmediause instagram user following --username <username> [--limit <n>] --json
4.5 engage.*
mediause instagram engage follow --username <username> --jsonmediause instagram engage unfollow --username <username> --jsonmediause instagram engage like --username <username> [--index <n>] --jsonmediause instagram engage unlike --username <username> [--index <n>] --jsonmediause instagram engage save --username <username> [--index <n>] --jsonmediause instagram engage unsave --username <username> [--index <n>] --jsonmediause instagram engage comment --username <username> --text <text> [--index <n>] --json
4.6 collection.*
mediause instagram collection create --name <name> --jsonmediause instagram collection delete --target <name_or_id> --json
4.7 post.*
mediause instagram post note --content <text> --jsonmediause instagram post feed --media <path_or_paths> [--text <text>] --jsonmediause instagram post reel --video <path> [--text <text>] --jsonmediause instagram post story --media <path_or_paths> --json
4.8 download.*
mediause instagram download media --url <instagram_url> --json
5. Operational Constraints (Mandatory)
Apply these constraints for all actions to reduce account risk and keep behavior human-like.
5.1 Human-like pacing
- Never execute high-risk actions continuously.
- Add randomized delay between actions.
- Add longer cooldown after publish and profile-change actions.
- Mix read actions between write actions when possible.
5.2 Frequency limits and minimum spacing
Suggested limits:
- Publish actions: <= 3 per hour
- Reply/comment/message-like interactions: <= 20 per hour
- Follow/like/save actions: <= 30 per hour
- Search/read actions: <= 60 per minute
Minimum spacing:
- Publish (post): >= 20 minutes between actions
- Comment/reply: >= 30 seconds between actions
- Follow/like/save: >= 10 seconds between actions
- Read/search/get/user read: >= 1 second between actions
Same-target guardrails:
- Repeated interaction on the same target: >= 60 seconds
- Repeated identical publish text: >= 24 hours (default deny)
If a limit is hit:
- Pause at least 15 minutes.
- Resume with read-only actions first.
- Re-check session health before any write action.
5.3 Safety policy
- Do not bypass platform protections.
- Do not attempt credential scraping or session hijacking.
- Respect platform terms and local regulations.
5.4 Output and error handling
- Prefer
--jsonoutput for machine workflows. - Require structured error handling with stable fields/code when available.
- On blocked/rate-limit/risk prompt, stop and return actionable next steps.
6. Workflow Examples
6.1 Explore to publish
mediause use account instagram:<account_id> --json
mediause auth health --json
mediause instagram get explore --limit 20 --json
mediause instagram post feed --media c:/tmp/a.jpg --text "hello" --json
mediause trace last --json
6.2 User discovery and engagement
mediause use account instagram:<account_id> --json
mediause auth health --json
mediause instagram search users --query "fashion" --limit 10 --json
mediause instagram engage follow --username <username> --json
mediause trace last --json
6.3 Guest read-only branch
mediause use account instagram:guest --json
mediause instagram get explore --limit 20 --json
mediause instagram search users --query "photography" --limit 10 --json
mediause trace last --json
7. Execution Checklist
Before run:
Before every run, execute the install script once.
- CLI installed via
https://release.mediause.dev/install.ps1on Windows. - PATH updated and
mediause --versionworks. - API key configured and verified.
- Account context bound via
mediause use account <platform:account_id>. mediause auth health --jsonchecked after context bind.- If not logged in, run
mediause auth login instagram --jsonand re-bind context. - Pacing policy is enabled.
During run:
- Respect risk-based delays and minimum spacing.
- Stop on anti-bot/risk prompts.
- Avoid repetitive write-action bursts.
- In guest mode, allow read-only actions only.
After run:
- Save logs and outcomes.
- Record any risk warning and cooldown events.
- Keep account activity under conservative limits.
8. Quick Command Reference
# always run once before each workflow (auto-upgrade latest)
powershell -C "iwr https://release.mediause.dev/install.ps1 -UseBasicParsing | iex"
mediause --version
# discover
mediause plugin list --json
mediause plugin add instagram --json
mediause instagram -h
mediause instagram post -h
# context + status
mediause auth list --json
mediause use account instagram:<account_id> --json
mediause auth health --json
# read action
mediause instagram get explore --limit 20 --json
# write action
mediause instagram post feed --media c:/tmp/a.jpg --text "hello" --json
# trace
mediause trace last --json
Skill Metadata
Maintainer: @mediause-demo
Last-Updated: 2026-05-21
Version: v1