Skip to main content Skills Marketplace Discover and explore AI skills built by the community.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Copy promptShow prompt details A direct command skips the review prompt. Inspect the source before running it.
npx skills add https://github.com/BEKO2210/Firstbrain --skill instagramThe command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Download Zip Downloading... More from this repository
Related occupations SOC
Based on SOC occupation classification
name instagram description Integracao completa com Instagram via Graph API. Publicacao, analytics, comentarios, DMs, hashtags, agendamento, templates e gestao de contas Business/Creator. type skill created 2026-02-27T00:00:00.000Z domain communication-content category social-media risk critical source community tags ["skill","communication-content","social-media","instagram"]
Skill: Instagram Integration
Overview
Integracao completa com Instagram via Graph API. Publicacao, analytics, comentarios, DMs, hashtags, agendamento, templates e gestao de contas Business/Creator.
When to Use This Skill
When the user mentions "instagram" or related topics
When the user mentions "ig" or related topics
When the user mentions "post instagram" or related topics
When the user mentions "publicar instagram" or related topics
When the user mentions "reels instagram" or related topics
When the user mentions "stories instagram" or related topics
Do Not Use This Skill When
The task is unrelated to instagram
A simpler, more specific tool can handle the request
The user needs general-purpose assistance without domain expertise
How It Works
Controle completo da conta Instagram via Graph API. Publicação, comunidade, analytics,
DMs, hashtags, templates e dashboard â tudo gerido com governança (rate limits, audit log,
confirmaçÔes antes de açÔes pĂșblicas).
Resumo RĂĄpido
Ărea Scripts O que faz Setup account_setup.py, auth.pyConfigurar conta, OAuth, token Publicação publish.py, schedule.pyPublicar foto/vĂdeo/reel/story/carrossel, agendar Comunidade comments.py, messages.pyComentĂĄrios, DMs, mençÔes Analytics insights.py, analyze.pyMĂ©tricas, melhores horĂĄrios, top posts Hashtags hashtags.pyPesquisa e tracking InteligĂȘncia templates.py, analyze.pyTemplates de conteĂșdo, tendĂȘncias Infra export.py, serve_api.py, run_all.pyExportar, dashboard, sync
Leitura profile.py, media.pyPerfil, listar mĂdia
Localização C:\Users\renat\skills\instagram\
âââ SKILL.md
âââ scripts/
â âââ requirements.txt
â â # ââ CORE ââ
â âââ config.py # Paths, constantes, specs de mĂdia
â âââ db.py # SQLite: accounts, posts, comments, insights
â âââ auth.py # OAuth 2.0, token storage/refresh
â âââ api_client.py # Instagram Graph API wrapper + retry
â âââ governance.py # Rate limits, audit log, confirmaçÔes
â â # ââ FEATURES ââ
â âââ account_setup.py # Detecção conta, migração, verificação
â âââ publish.py # Publicar + upload local via Imgur
â âââ schedule.py # Orquestrador: approved â published
â âââ comments.py # Ler/responder/deletar comentĂĄrios
â âââ messages.py # DMs (enviar/receber/listar)
â âââ insights.py # Fetch + store mĂ©tricas
â âââ hashtags.py # Pesquisa + tracking
â âââ profile.py # Ver/atualizar perfil
â âââ media.py # Listar mĂdia, detalhes
â â # ââ INTELIGĂNCIA ââ
â âââ templates.py # Templates de caption/hashtags
â âââ analyze.py # Melhores horĂĄrios, top posts
â â # ââ INFRA ââ
â âââ export.py # Exportar JSON/CSV/JSONL
â âââ serve_api.py # FastAPI + dashboard
â âââ run_all.py # Sync completo
âââ references/
â âââ graph_api.md # Endpoints e parĂąmetros
â âââ permissions.md # Scopes OAuth por feature
â âââ rate_limits.md # Limites 2025
â âââ account_types.md # Business vs Creator
â âââ publishing_guide.md # Specs de mĂdia
â âââ setup_walkthrough.md # Guia Meta App
â âââ schema.md # ER diagram
âââ static/
â âââ dashboard.html # Dashboard Chart.js
âââ data/
## Instalação (Uma Vez)
```bash
pip install -r C:\Users\renat\skills\instagram\scripts\requirements.txt
Configuração Inicial
python C:\Users\renat\skills\instagram\scripts\account_setup.py --check
python C:\Users\renat\skills\instagram\scripts\auth.py --setup
python C:\Users\renat\skills\instagram\scripts\profile.py --view
Se a conta for pessoal, o script account_setup.py --guide då instruçÔes de migração
para Business ou Creator.
Foto (Aceita Arquivo Local â Faz Upload AutomĂĄtico Via Imgur) python C:\Users\renat\skills\instagram\scripts\publish.py --type photo --image caminho/foto.jpg --caption "Texto do post"
VĂdeo python C:\Users\renat\skills\instagram\scripts\publish.py --type video --video caminho/video.mp4 --caption "Meu vĂdeo"
Reel python C:\Users\renat\skills\instagram\scripts\publish.py --type reel --video caminho/reel.mp4 --caption "Novo reel!"
Story python C:\Users\renat\skills\instagram\scripts\publish.py --type story --image caminho/story.jpg
Carrossel (2-10 Imagens) python C:\Users\renat\skills\instagram\scripts\publish.py --type carousel --images img1.jpg img2.jpg img3.jpg --caption "Carrossel"
Criar Como Rascunho (NĂŁo Publica Imediatamente) python C:\Users\renat\skills\instagram\scripts\publish.py --type photo --image foto.jpg --caption "Texto" --draft
Aprovar Rascunho Para Publicação python C:\Users\renat\skills\instagram\scripts\publish.py --approve --id 5
## Agendar Publicação Futura
python C:\Users\renat\skills\instagram\scripts\schedule.py --type photo --image foto.jpg --caption "Post agendado" --at "2026-03-01T10:00"
## Listar Posts Agendados
python C:\Users\renat\skills\instagram\scripts\schedule.py --list
## Processar Posts Prontos Para Publicar
python C:\Users\renat\skills\instagram\scripts\schedule.py --process
## Cancelar Agendamento
python C:\Users\renat\skills\instagram\scripts\schedule.py --cancel --id 5
Listar ComentĂĄrios De Um Post python C:\Users\renat\skills\instagram\scripts\comments.py --list --media-id 12345
Responder A Um ComentĂĄrio python C:\Users\renat\skills\instagram\scripts\comments.py --reply --comment-id 67890 --text "Obrigado!"
Deletar ComentĂĄrio python C:\Users\renat\skills\instagram\scripts\comments.py --delete --comment-id 67890
Ver MençÔes python C:\Users\renat\skills\instagram\scripts\comments.py --mentions
ComentĂĄrios NĂŁo Respondidos python C:\Users\renat\skills\instagram\scripts\comments.py --unreplied
## Enviar Dm
python C:\Users\renat\skills\instagram\scripts\messages.py --send --user-id 12345 --text "OlĂĄ!"
## Listar Conversas
python C:\Users\renat\skills\instagram\scripts\messages.py --conversations
## Ver Mensagens De Uma Conversa
python C:\Users\renat\skills\instagram\scripts\messages.py --thread --conversation-id 12345
MĂ©tricas De Um Post EspecĂfico python C:\Users\renat\skills\instagram\scripts\insights.py --media --media-id 12345
MĂ©tricas Da Conta (Ăltimos 7 Dias) python C:\Users\renat\skills\instagram\scripts\insights.py --user --period day --since 7
Buscar E Salvar Insights De Todos Os Posts Recentes python C:\Users\renat\skills\instagram\scripts\insights.py --fetch-all --limit 20
## Melhores HorĂĄrios Para Postar (Baseado Nos Seus Dados)
python C:\Users\renat\skills\instagram\scripts\analyze.py --best-times
## Top Posts Por Engajamento
python C:\Users\renat\skills\instagram\scripts\analyze.py --top-posts --limit 10
## TendĂȘncias De Crescimento
python C:\Users\renat\skills\instagram\scripts\analyze.py --growth --period 30
Buscar Posts Recentes Com Uma Hashtag python C:\Users\renat\skills\instagram\scripts\hashtags.py --search "artificialintelligence" --limit 25
Top Posts De Uma Hashtag python C:\Users\renat\skills\instagram\scripts\hashtags.py --top "tecnologia"
Info Da Hashtag (Contagem De Posts) python C:\Users\renat\skills\instagram\scripts\hashtags.py --info "marketing"
## Criar Template
python C:\Users\renat\skills\instagram\scripts\templates.py --create --name "promo" --caption "Nova promoção: {produto}! {desconto}% OFF" --hashtags "#oferta,#desconto,#promoção"
## Listar Templates
python C:\Users\renat\skills\instagram\scripts\templates.py --list
## Usar Template Em Um Post
python C:\Users\renat\skills\instagram\scripts\publish.py --type photo --image foto.jpg --template promo --vars produto="TĂȘnis" desconto=30
Ver Perfil python C:\Users\renat\skills\instagram\scripts\profile.py --view
Listar Posts Recentes python C:\Users\renat\skills\instagram\scripts\media.py --list --limit 10
Detalhes De Um Post python C:\Users\renat\skills\instagram\scripts\media.py --details --media-id 12345
## Exportar Analytics Para Csv
python C:\Users\renat\skills\instagram\scripts\export.py --type insights --format csv
## Exportar ComentĂĄrios
python C:\Users\renat\skills\instagram\scripts\export.py --type comments --format json
## Exportar Tudo
python C:\Users\renat\skills\instagram\scripts\export.py --type all --format csv
## Iniciar Dashboard Web
python C:\Users\renat\skills\instagram\scripts\serve_api.py
## Acesse: Http://Localhost:8000/Dashboard
Status Da Autenticação python C:\Users\renat\skills\instagram\scripts\auth.py --status
Sync Completo (Busca Perfil + MĂdia + Insights + ComentĂĄrios) python C:\Users\renat\skills\instagram\scripts\run_all.py
Sync Parcial python C:\Users\renat\skills\instagram\scripts\run_all.py --only media insights
## Rate Limits
A skill rastreia automaticamente os rate limits da API:
- **200 requests/hora** por conta
- **25 publicaçÔes/dia** por conta
- **30 hashtags Ășnicas/semana** por conta
- **200 DMs/hora** por conta
Quando em 90% do limite, a skill emite warnings. Se exceder, bloqueia a ação e informa
quanto tempo esperar.
## ConfirmaçÔes
AçÔes que afetam conteĂșdo pĂșblico requerem confirmação:
- **PUBLISH**: Publicar foto/vĂdeo/reel/story/carrossel
- **DELETE**: Deletar comentĂĄrio
- **MESSAGE**: Enviar DM
- **ENGAGE**: Responder comentĂĄrio, ocultar comentĂĄrio
O script retorna os detalhes da ação e pede confirmação antes de executar.
## Audit Log
Todas as açÔes que modificam dados são logadas no banco SQLite (`action_log` table):
- Timestamp, ação, parùmetros, resultado, status de confirmação
- Consultar via: `python C:\Users\renat\skills\instagram\scripts\db.py`
## Token Auto-Refresh
O token OAuth (60 dias) Ă© renovado automaticamente quando estĂĄ a 7 dias de expirar.
Sem intervenção manual necessåria.
## LimitaçÔes Da Api
Coisas que a Instagram Graph API **nĂŁo permite**:
- Deletar posts jĂĄ publicados
- Editar captions apĂłs publicar
- Aplicar filtros via API
- Postar de contas pessoais (sĂł Business/Creator)
- DMs fora da janela de 24hrs (usuĂĄrio precisa ter interagido primeiro)
- Fotos em formato diferente de JPEG (auto-conversĂŁo feita pelos scripts)
## "Quero Publicar Uma Foto"
```bash
python C:\Users\renat\skills\instagram\scripts\publish.py --type photo --image foto.jpg --caption "Texto"
"Me Mostra Meus Analytics" python C:\Users\renat\skills\instagram\scripts\run_all.py --only insights
python C:\Users\renat\skills\instagram\scripts\analyze.py --summary
"Qual O Melhor HorĂĄrio Para Postar?" python C:\Users\renat\skills\instagram\scripts\analyze.py --best-times
"Responde Esse ComentĂĄrio" python C:\Users\renat\skills\instagram\scripts\comments.py --reply --comment-id ID --text "Resposta"
"Sincroniza Tudo" python C:\Users\renat\skills\instagram\scripts\run_all.py
"Abre O Dashboard" python C:\Users\renat\skills\instagram\scripts\serve_api.py
ReferĂȘncias Consultar quando precisar de detalhes:
references/graph_api.md â Endpoints, parĂąmetros e responses da API
references/publishing_guide.md â Specs de mĂdia (dimensĂ”es, formatos, tamanhos)
references/rate_limits.md â Rate limits detalhados e estratĂ©gias
references/account_types.md â Diferenças Business vs Creator, migração
references/permissions.md â Scopes OAuth necessĂĄrios por feature
references/setup_walkthrough.md â Guia passo-a-passo de setup do Meta App
references/schema.md â Schema do banco SQLite (ER diagram, campos, Ăndices, queries)
Best Practices
Provide clear, specific context about your project and requirements
Review all suggestions before applying them to production code
Combine with other complementary skills for comprehensive analysis
Common Pitfalls
Using this skill for tasks outside its domain expertise
Applying recommendations without understanding your specific context
Not providing enough project context for accurate analysis
Related Skills
social-orchestrator - Complementary skill for enhanced analysis
telegram - Complementary skill for enhanced analysis
whatsapp-cloud-api - Complementary skill for enhanced analysis
Connections
Domain: [[Kommunikation & Content]]
Kategorie: [[Social Media]]
Dateien:
static/dashboard.html
19x .py (scripts/account_setup.py, ...)
scripts/requirements.txt
Navigation: [[Skills Uebersicht]], [[Home]]