# postzen-dev/instagram-agent-skill architecture

> Architecture diagram of the GitHub repository postzen-dev/instagram-agent-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/postzen-dev/instagram-agent-skill
- Repository: https://github.com/postzen-dev/instagram-agent-skill

## Overview

This repository is a collection of 14 Instagram account-management skills for Claude/Codex, with local Python tools for selected writing and analysis tasks. The main workflow is user-directed: create or review content, optionally refine it, then present the exact account, content, and time for approval before publishing through PostZen. README documents the skills’ capabilities and several integrations; most SKILL.md files were not sampled, so edges between skill components are limited to relationships the README states explicitly.

Main entry points: [`skills/ig-reel/SKILL.md`](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/SKILL.md) (Reel writing), [`skills/ig-publish/SKILL.md`](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-publish/SKILL.md) (Publishing workflow), [`templates/voice.md`](https://github.com/postzen-dev/instagram-agent-skill/blob/main/templates/voice.md) (Voice guide), [`skills/ig-human/SKILL.md`](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/SKILL.md) (Draft humanizing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_create["Content Creation"]
  node_reel["Reel writing<br/>[SKILL.md]"]
  node_caption["Caption writing<br/>[SKILL.md]"]
  node_carousel["Carousel creation<br/>[SKILL.md]"]
  node_story["Story planning<br/>[SKILL.md]"]
  node_repurpose["Content repurposing<br/>[SKILL.md]"]
  node_human["Draft humanizing<br/>[SKILL.md]"]
end

subgraph group_research["Research and Planning"]
  node_viral["Niche research<br/>[SKILL.md]"]
  node_plan["Weekly planning<br/>[SKILL.md]"]
  node_profile["Profile review<br/>[SKILL.md]"]
  node_audit["Post audit<br/>[SKILL.md]"]
end

subgraph group_engage["Audience Engagement"]
  node_comment["Comment writing<br/>[SKILL.md]"]
  node_reply["Comment replies<br/>[SKILL.md]"]
  node_dm["DM workflows<br/>[SKILL.md]"]
end

subgraph group_publish["Publishing and Analytics"]
  node_publish["Publishing workflow<br/>[SKILL.md]"]
  node_postzen{{"PostZen MCP"}}
end

subgraph group_tools["Local Writing Tools"]
  node_voice["Voice guide<br/>[voice.md]"]
  node_hookscore["Hook scorer<br/>[hookscore.py]"]
  node_beats["Beat-sheet timer<br/>[beats.py]"]
  node_swipe["Swipe-file analysis<br/>[swipe.py]"]
  node_captionlint["Caption linter<br/>[caption.py]"]
  node_detect["Human score<br/>[detect.py]"]
  node_humanize["Text cleanup<br/>[humanize.py]"]
end

node_creator(("Account operator"))

node_creator -->|"requests script"| node_reel
node_creator -->|"requests caption"| node_caption
node_creator -->|"requests slides"| node_carousel
node_creator -->|"requests sequence"| node_story
node_creator -->|"provides source"| node_repurpose
node_creator -->|"requests research"| node_viral
node_creator -->|"requests plan"| node_plan
node_creator -->|"requests review"| node_profile
node_creator -->|"requests audit"| node_audit
node_creator -->|"requests comments"| node_comment
node_creator -->|"requests replies"| node_reply
node_creator -->|"requests messages"| node_dm
node_creator -->|"requests publishing"| node_publish
node_reel -->|"passes finished video"| node_publish
node_repurpose -->|"schedules week"| node_publish
node_publish -->|"uses publishing API"| node_postzen
node_reply -->|"fetches and replies"| node_postzen
node_dm -->|"creates automations"| node_postzen
node_audit -->|"reads analytics"| node_postzen
node_plan -->|"checks schedule"| node_postzen
node_voice -->|"guides voice"| node_reel
node_voice -->|"guides voice"| node_caption
node_voice -->|"guides voice"| node_human
node_reel -->|"scores hooks"| node_hookscore
node_reel -->|"times script"| node_beats
node_viral -->|"ranks collected Reels"| node_swipe
node_viral -.->|"optionally scores hooks"| node_hookscore
node_caption -->|"lints caption"| node_captionlint
node_human -->|"scores draft"| node_detect
node_human -->|"cleans draft"| node_humanize

click node_reel "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/SKILL.md"
click node_caption "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-caption/SKILL.md"
click node_carousel "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-carousel/SKILL.md"
click node_story "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-story/SKILL.md"
click node_repurpose "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-repurpose/SKILL.md"
click node_human "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/SKILL.md"
click node_viral "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-viral/SKILL.md"
click node_plan "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-plan/SKILL.md"
click node_profile "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-profile/SKILL.md"
click node_audit "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-audit/SKILL.md"
click node_comment "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-comment/SKILL.md"
click node_reply "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reply/SKILL.md"
click node_dm "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-dm/SKILL.md"
click node_publish "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-publish/SKILL.md"
click node_voice "https://github.com/postzen-dev/instagram-agent-skill/blob/main/templates/voice.md"
click node_hookscore "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/hookscore.py"
click node_beats "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/beats.py"
click node_swipe "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-viral/swipe.py"
click node_captionlint "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-caption/caption.py"
click node_detect "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/detect.py"
click node_humanize "https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/humanize.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_reel,node_caption,node_carousel,node_story,node_repurpose,node_human toneBlue
class node_viral,node_plan,node_profile,node_audit toneAmber
class node_comment,node_reply,node_dm toneMint
class node_publish,node_postzen toneRose
class node_voice,node_hookscore,node_beats,node_swipe,node_captionlint,node_detect,node_humanize,node_creator toneIndigo
```

## Components

### Content Creation

- [Reel writing](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/SKILL.md): `skills/ig-reel/SKILL.md`
- [Caption writing](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-caption/SKILL.md): `skills/ig-caption/SKILL.md`
- [Carousel creation](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-carousel/SKILL.md): `skills/ig-carousel/SKILL.md`
- [Story planning](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-story/SKILL.md): `skills/ig-story/SKILL.md`
- [Content repurposing](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-repurpose/SKILL.md): `skills/ig-repurpose/SKILL.md`
- [Draft humanizing](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/SKILL.md): `skills/ig-human/SKILL.md`

### Research and Planning

- [Niche research](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-viral/SKILL.md): `skills/ig-viral/SKILL.md`
- [Weekly planning](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-plan/SKILL.md): `skills/ig-plan/SKILL.md`
- [Profile review](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-profile/SKILL.md): `skills/ig-profile/SKILL.md`
- [Post audit](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-audit/SKILL.md): `skills/ig-audit/SKILL.md`

### Audience Engagement

- [Comment writing](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-comment/SKILL.md): `skills/ig-comment/SKILL.md`
- [Comment replies](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reply/SKILL.md): `skills/ig-reply/SKILL.md`
- [DM workflows](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-dm/SKILL.md): `skills/ig-dm/SKILL.md`

### Publishing and Analytics

- [Publishing workflow](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-publish/SKILL.md): `skills/ig-publish/SKILL.md`
- **PostZen MCP**

### Local Writing Tools

- [Voice guide](https://github.com/postzen-dev/instagram-agent-skill/blob/main/templates/voice.md): `templates/voice.md`
- [Hook scorer](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/hookscore.py): `skills/ig-reel/hookscore.py`
- [Beat-sheet timer](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-reel/beats.py): `skills/ig-reel/beats.py`
- [Swipe-file analysis](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-viral/swipe.py): `skills/ig-viral/swipe.py`
- [Caption linter](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-caption/caption.py): `skills/ig-caption/caption.py`
- [Human score](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/detect.py): `skills/ig-human/detect.py`
- [Text cleanup](https://github.com/postzen-dev/instagram-agent-skill/blob/main/skills/ig-human/humanize.py): `skills/ig-human/humanize.py`

### Other components

- **Account operator**

## Connections

- Account operator → Reel writing: requests script (evidence: `README.md`)
- Account operator → Caption writing: requests caption (evidence: `README.md`)
- Account operator → Carousel creation: requests slides (evidence: `README.md`)
- Account operator → Story planning: requests sequence (evidence: `README.md`)
- Account operator → Content repurposing: provides source (evidence: `README.md`)
- Account operator → Niche research: requests research (evidence: `README.md`)
- Account operator → Weekly planning: requests plan (evidence: `README.md`)
- Account operator → Profile review: requests review (evidence: `README.md`)
- Account operator → Post audit: requests audit (evidence: `README.md`)
- Account operator → Comment writing: requests comments (evidence: `README.md`)
- Account operator → Comment replies: requests replies (evidence: `README.md`)
- Account operator → DM workflows: requests messages (evidence: `README.md`)
- Account operator → Publishing workflow: requests publishing (evidence: `README.md`)
- Reel writing → Publishing workflow: passes finished video (evidence: `README.md`)
- Content repurposing → Publishing workflow: schedules week (evidence: `README.md`)
- Publishing workflow → PostZen MCP: uses publishing API (evidence: `README.md`)
- Comment replies → PostZen MCP: fetches and replies (evidence: `README.md`)
- DM workflows → PostZen MCP: creates automations (evidence: `README.md`)
- Post audit → PostZen MCP: reads analytics (evidence: `README.md`)
- Weekly planning → PostZen MCP: checks schedule (evidence: `README.md`)
- Voice guide → Reel writing: guides voice (evidence: `README.md`)
- Voice guide → Caption writing: guides voice (evidence: `README.md`)
- Voice guide → Draft humanizing: guides voice (evidence: `README.md`)
- Reel writing → Hook scorer: scores hooks (evidence: `README.md`)
- Reel writing → Beat-sheet timer: times script (evidence: `README.md`)
- Niche research → Swipe-file analysis: ranks collected Reels (evidence: `README.md`)
- Niche research → Hook scorer: optionally scores hooks
- Caption writing → Caption linter: lints caption (evidence: `README.md`)
- Draft humanizing → Human score: scores draft (evidence: `README.md`)
- Draft humanizing → Text cleanup: cleans draft (evidence: `README.md`)
