Diagram Skill — Development skill for Claude Code
Generate architecture diagrams from any codebase with a single Claude Code command.
How to install Diagram Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open liamc225/diagram-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Diagram Skill does
Generate architecture diagrams from any codebase with a single Claude Code command. Zero dependencies.
Alternatives in Development
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
- Claw Code Agent — Claw Code No Rust No TypeScript Only Python 543 ★
- Claude Notifications Go — Cross-platform smart notifications -- 6 types, click-to-focus, context analysis, webhooks 365 ★
README
/diagram
A Claude Code command that reads your code and generates Mermaid diagrams. Built for visualizing scripts, automations, and pipelines.
  
Demo
Running `/diagram` on a Python flight deal tracker I built:
graph TD
Cron(("macOS launchd
daily @ 8am"))
subgraph FlightTracker["flight-tracker"]
Checker["flight_checker.py
Orchestrator"]
DealEngine["Deal Detection
threshold + rolling median"]
History[("price_history.json")]
Notifier["notifier.py
HTML email builder"]
end
subgraph APIs["Flight Data APIs"]
Amadeus["Amadeus API
primary"]
RapidAPI["RapidAPI
Google Flights
fallback"]
end
SMTP["Gmail SMTP"]
User((User))
Cron --> Checker
Checker -->|OAuth2 + search| Amadeus
Checker -.->|"fallback if empty"| RapidAPI
Checker --> DealEngine
DealEngine <-->|read/write| History
DealEngine -->|deals found| Notifier
Notifier -->|SMTP/TLS| SMTP
SMTP -->|email alert| User
style FlightTracker fill:#1a1a2e,stroke:#6366f1,color:#e2e8f0
style APIs fill:#1a1a2e,stroke:#f59e0b,color:#e2e8f0
style Cron fill:#22d3ee,stroke:#22d3ee,color:#0f172a
style User fill:#6366f1,stroke:#6366f1,color:#fff
style SMTP fill:#0f172a,stroke:#ef4444,color:#ef4444
style History fill:#0f172a,stroke:#22d3ee,color:#22d3ee
Install
# Global (works in every project)
curl -o ~/.claude/commands/diagram.md \
https://raw.githubusercontent.com/liamc225/diagram-skill/main/diagram.md
# Or clone the repo
git clone https://github.com/liamc225/diagram-skill.git
cp diagram-skill/diagram.md ~/.claude/commands/diagram.md
How it works
cdinto any project and run/diagram- Claude reads your source
Related Skills
Arch Diagram
Generate Mermaid diagrams from codebase analysis or description.
Interactive Diagram
生成可交互式、可拖动的 HTML 图表(流程图、架构图、思维导图、序列图),并将其作为独立文件保存。支持 Dagre 自动布局、平移/缩放,并可导出为 PNG/SVG/JSON 格式。零依赖。Claude Code 技能
Archflow
Claude Code skill that turns any codebase into an animated HTML architecture diagram
Vibex
Architecture diagrams and checkable docs from your codebase — ERD, C4, API and lifecycle — generated from Pris
Repo Cartographer
🗺️ One prompt, any codebase → architecture map. An agent skill that generates Mermaid diagrams, a traced core
Minga Graph
Local, explainable knowledge graph of your codebase for Claude Code. Every edge has file:line evidence. Zero d
Related Agents
Uml Diagram Architect
Use this agent when designing or generating UML diagrams for architecture documentation, code visualization, o
Diagram Generation
Diagram generation expert for draw.io, PlantUML, and Mermaid — use proactively when creating architecture diag
Diagram Builder
Generates ship-time Mermaid state and sequence diagrams, an API endpoint catalog with request/response schemas