# mrazakhalid/linkedin-agent-skill architecture

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

- Interactive diagram: https://gitdiagram.com/mrazakhalid/linkedin-agent-skill
- Repository: https://github.com/mrazakhalid/linkedin-agent-skill

## Overview

This repository is a set of eleven Claude skills for creating and reviewing LinkedIn content; it does not connect to LinkedIn or post on the user’s behalf. The main workflow turns a user’s idea into a post, cleans and scores the draft locally, then returns copy for the user to approve and post manually. Other documented skills cover comments, replies, profile review, planning, carousel creation, repurposing, messages, inbox triage, and post audits. Only the humanizer scripts were sampled; the other skill paths reflect README-documented capabilities, not inspected implementation details.

Main entry points: [`skills/li-post/SKILL.md`](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-post/SKILL.md) (Draft a post), [`skills/li-human/humanize.py`](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/humanize.py) (Clean draft), [`skills/li-profile/SKILL.md`](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-profile/SKILL.md) (Profile review), [`skills/li-human/detect.py`](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/detect.py) (Score draft)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content creation"]
  node_post["Draft a post<br/>[SKILL.md]"]
  node_hooks["Hook formulas<br/>[hooks.json]"]
  node_carousel["Carousel copy<br/>[SKILL.md]"]
  node_repurpose["Repurpose source<br/>[SKILL.md]"]
  node_voice["Voice profile<br/>[voice.md]"]
end

subgraph group_engagement["Engagement"]
  node_comments["Comment on posts<br/>[SKILL.md]"]
  node_replies["Reply to thread<br/>[SKILL.md]"]
  node_dm["Write messages<br/>[SKILL.md]"]
  node_inbox["Triage inbox<br/>[SKILL.md]"]
end

subgraph group_review["Review and planning"]
  node_profile["Profile review<br/>[SKILL.md]"]
  node_rubric["Profile rubric<br/>[rubric.json]"]
  node_plan["Weekly plan<br/>[SKILL.md]"]
  node_audit["Post audit<br/>[SKILL.md]"]
end

subgraph group_humanize["Local draft checks"]
  node_humanize["Clean draft<br/>[humanize.py]"]
  node_lexicon["Cleanup lexicon<br/>[slop.json]"]
  node_detect["Score draft<br/>[detect.py]"]
end

node_user(("LinkedIn account owner"))
node_idea["Post idea"]
node_approval(("Review and approve"))
node_linkedin(("LinkedIn"))

node_user -->|"provides idea"| node_idea
node_idea -->|"starts draft"| node_post
node_post -->|"uses formulas"| node_hooks
node_post -->|"humanizes draft"| node_humanize
node_humanize -->|"loads lexicon"| node_lexicon
node_humanize -.->|"scores draft"| node_detect
node_detect -->|"loads lexicon"| node_lexicon
node_post -->|"presents copy"| node_approval
node_approval -->|"posts manually"| node_linkedin
node_user -->|"requests slides"| node_carousel
node_user -->|"provides source"| node_repurpose
node_user -->|"requests comment"| node_comments
node_user -->|"requests replies"| node_replies
node_user -->|"requests messages"| node_dm
node_user -->|"requests triage"| node_inbox
node_user -->|"requests review"| node_profile
node_profile -->|"scores against"| node_rubric
node_user -->|"requests plan"| node_plan
node_user -->|"requests audit"| node_audit
node_user -->|"defines voice"| node_voice

click node_post "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-post/SKILL.md"
click node_hooks "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-post/hooks.json"
click node_carousel "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-carousel/SKILL.md"
click node_repurpose "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-repurpose/SKILL.md"
click node_comments "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-comment/SKILL.md"
click node_replies "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-reply/SKILL.md"
click node_dm "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-dm/SKILL.md"
click node_inbox "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-inbox/SKILL.md"
click node_profile "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-profile/SKILL.md"
click node_rubric "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-profile/rubric.json"
click node_plan "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-plan/SKILL.md"
click node_audit "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-audit/SKILL.md"
click node_voice "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/templates/voice.md"
click node_humanize "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/humanize.py"
click node_lexicon "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/slop.json"
click node_detect "https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/detect.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_post,node_hooks,node_carousel,node_repurpose,node_voice,node_approval toneBlue
class node_comments,node_replies,node_dm,node_inbox toneAmber
class node_profile,node_rubric,node_plan,node_audit toneMint
class node_humanize,node_lexicon,node_detect toneRose
class node_user,node_idea,node_linkedin toneIndigo
```

## Components

### Content creation

- [Draft a post](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-post/SKILL.md): `skills/li-post/SKILL.md`
- [Hook formulas](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-post/hooks.json): `skills/li-post/hooks.json`
- [Carousel copy](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-carousel/SKILL.md): `skills/li-carousel/SKILL.md`
- [Repurpose source](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-repurpose/SKILL.md): `skills/li-repurpose/SKILL.md`
- [Voice profile](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/templates/voice.md): `templates/voice.md`

### Engagement

- [Comment on posts](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-comment/SKILL.md): `skills/li-comment/SKILL.md`
- [Reply to thread](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-reply/SKILL.md): `skills/li-reply/SKILL.md`
- [Write messages](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-dm/SKILL.md): `skills/li-dm/SKILL.md`
- [Triage inbox](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-inbox/SKILL.md): `skills/li-inbox/SKILL.md`

### Review and planning

- [Profile review](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-profile/SKILL.md): `skills/li-profile/SKILL.md`
- [Profile rubric](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-profile/rubric.json): `skills/li-profile/rubric.json`
- [Weekly plan](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-plan/SKILL.md): `skills/li-plan/SKILL.md`
- [Post audit](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-audit/SKILL.md): `skills/li-audit/SKILL.md`

### Local draft checks

- [Clean draft](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/humanize.py): `skills/li-human/humanize.py`
- [Cleanup lexicon](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/slop.json): `skills/li-human/slop.json`
- [Score draft](https://github.com/mrazakhalid/linkedin-agent-skill/blob/main/skills/li-human/detect.py): `skills/li-human/detect.py`

### Other components

- **LinkedIn account owner**
- **Post idea**
- **Review and approve**
- **LinkedIn**

## Connections

- LinkedIn account owner → Post idea: provides idea (evidence: `README.md`)
- Post idea → Draft a post: starts draft (evidence: `README.md`)
- Draft a post → Hook formulas: uses formulas (evidence: `README.md`)
- Draft a post → Clean draft: humanizes draft (evidence: `README.md`)
- Clean draft → Cleanup lexicon: loads lexicon (evidence: `skills/li-human/humanize.py`)
- Clean draft → Score draft: scores draft
- Score draft → Cleanup lexicon: loads lexicon (evidence: `skills/li-human/detect.py`)
- Draft a post → Review and approve: presents copy (evidence: `README.md`)
- Review and approve → LinkedIn: posts manually (evidence: `README.md`)
- LinkedIn account owner → Carousel copy: requests slides (evidence: `README.md`)
- LinkedIn account owner → Repurpose source: provides source (evidence: `README.md`)
- LinkedIn account owner → Comment on posts: requests comment (evidence: `README.md`)
- LinkedIn account owner → Reply to thread: requests replies (evidence: `README.md`)
- LinkedIn account owner → Write messages: requests messages (evidence: `README.md`)
- LinkedIn account owner → Triage inbox: requests triage (evidence: `README.md`)
- LinkedIn account owner → Profile review: requests review (evidence: `README.md`)
- Profile review → Profile rubric: scores against (evidence: `README.md`)
- LinkedIn account owner → Weekly plan: requests plan (evidence: `README.md`)
- LinkedIn account owner → Post audit: requests audit (evidence: `README.md`)
- LinkedIn account owner → Voice profile: defines voice (evidence: `README.md`)
