Logo di Instagram Skill

Instagram Skill

CommunityPopolare
supreme-gg-gg
instagram-skill

How to use Instagram CLI to interact with Instagram from the command line on behalf of a user. Use this skill whenever the user wants to send or read Instagram messages, check their inbox, reply to or unsend messages, or automate any Instagram DM workflow via the CLI. This includes tasks phrased as "message X on Instagram", "check my Instagram DMs", "send a photo to my friend", "read my unread Instagram threads", or any automation / scripting involving Instagram direct messages.

Panoramica

Pubblicato dasupreme-gg-gg
Repositoryinstagram-cli
Nome della skillinstagram-skill
Stelle
2.1K
Fork
145
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da supreme-gg-gg su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Instagram Skill in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/supreme-gg-gg/instagram-cli/tree/main/skills/instagram-skill
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/supreme-gg-gg/instagram-cli.git /tmp/instagram-cli
mkdir -p .claude/skills
cp -r /tmp/instagram-cli/skills/instagram-skill .claude/skills/instagram-skill
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Instagram Skill in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Instagram Skill non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Instagram Skill non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Instagram CLI — Agent Usage Guide

Instagram CLI (instagram-cli) is a terminal client for Instagram. For agents, it exposes one-turn commands that print to stdout and exit — perfect for scripting and tool-use.

All one-turn commands require the user to already be logged in (instagram-cli auth login). If a command returns an auth error, prompt the user to log in first. Do not attempt to login using the CLI by yourself.


Thread Resolution

Every command that targets a thread accepts a <thread> argument resolved in this order:

  1. Thread ID (20+ digit number like 340282366920938463...) — direct, zero extra API calls
  2. Username — exact Instagram username (e.g. johndoe)
  3. Thread title — fuzzy search across inbox (e.g. "Book Club")

Best practice for multi-step workflows: call inbox --output json first to get thread IDs, then pass those IDs directly to subsequent commands. This avoids redundant search API calls and is more reliable than username/title matching.


JSON Output

All commands accept -o json / --output json. Responses follow this envelope:

json
{ "ok": true, "data": { ... } }
{ "ok": false, "error": "message" }

Always use --output json when you need to parse results programmatically.


Commands

List inbox

bash
instagram-cli inbox [--limit <n>] [--output json]

Returns recent threads. Each thread includes: id, title, users, lastMessage, lastActivity, unread.

bash
# Get 10 most recent threads as JSON
instagram-cli inbox --limit 10 --output json

Search threads

bash
instagram-cli inbox --search <query> [--limit <n>] [--output json]

Searches by both username and thread title, merging results by relevance score.

bash
instagram-cli inbox --search "alice" --output json

Send a message

bash
instagram-cli send <thread> --text <message> [--output json]
instagram-cli send <thread> --file <path> [--type photo|video] [--output json]

<thread> is a thread ID, username, or title. --text and --file are mutually exclusive. Media type is auto-detected from extension; use --type to override.

bash
instagram-cli send johndoe --text "Hey, are you free tonight?"
instagram-cli send 340282366920938463123456789 --text "Got it!"
instagram-cli send "Book Club" --file ./photo.jpg --output json

Read messages

bash
instagram-cli read <thread> [--limit <n>] [--cursor <cursor>] [--mark-seen] [--output json]

Returns messages newest-first. Use cursor from the previous response to paginate older messages. Pass --mark-seen to mark the thread as read after fetching.

bash
instagram-cli read johndoe --limit 20 --output json
instagram-cli read 340282366920938463123456789 --mark-seen

Each message in JSON output includes: id, itemType, text, userId, username, timestamp, isOutgoing.

Download media from a message

bash
instagram-cli read <thread> --message-id <id> --download <path> [--output json]

Finds the message by ID (paginates up to --max-pages, default 10) and saves the media file. The file extension is automatically inferred if not provided.

bash
instagram-cli read johndoe --message-id 340282366... --download ./media

Reply to a message

bash
instagram-cli reply <thread> --message-id <id> --text <text> [--output json]

Sends a threaded reply to a specific message.

bash
instagram-cli reply johndoe --message-id 340282366... --text "Totally agree!"

Unsend a message

bash
instagram-cli unsend <thread> --message-id <id> [--output json]
bash
instagram-cli unsend johndoe --message-id 340282366...

Multi-Account Support

All commands accept -u <username> / --username <username> to target a specific logged-in account. Omitting it uses the default account set via instagram-cli auth switch.

bash
instagram-cli inbox -u myworkaccount --output json
instagram-cli send johndoe --text "Hi" -u mypersonalaccount

Typical Agent Workflow

bash
# 1. Get inbox to find the right thread
INBOX=$(instagram-cli inbox --output json --limit 20)
# Parse "id" fields from INBOX to find the target thread

# 2. Read recent messages (use thread ID for speed)
THREAD_ID="340282366920938463..."
instagram-cli read "$THREAD_ID" --limit 10 --output json

# 3. Reply or send
instagram-cli send "$THREAD_ID" --text "On my way!" --output json

# 4. Mark as seen
instagram-cli read "$THREAD_ID" --mark-seen

Error Handling

  • Auth errors → user needs to run instagram-cli auth login
  • "No thread found matching" → the username/title didn't resolve; try inbox --search first
  • "ok": false in JSON output → the error field contains the reason
  • Rate limits / network errors are surfaced as error messages; retry with backoff if needed

Domande frequenti

Cosa fa la skill IA Instagram Skill?

How to use Instagram CLI to interact with Instagram from the command line on behalf of a user. Use this skill whenever the user wants to send or read Instagram messages, check their inbox, reply to or unsend messages, or automate any Instagram DM workflow via the CLI. This includes tasks phrased as "message X on Instagram", "check my Instagram DMs", "send a photo to my friend", "read my unread Instagram threads", or any automation / scripting involving Instagram direct messages.

Perché usare Instagram Skill su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Instagram Skill è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Instagram Skill in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/supreme-gg-gg/instagram-cli/tree/main/skills/instagram-skill. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Instagram Skill?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Instagram Skill?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Instagram Skill: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Instagram Skill è gratuita?

Sì. È pubblicata su GitHub da supreme-gg-gg con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇