Draw an architecture diagram for your current project
何时使用: You keep explaining your architecture in Slack and want a picture.
前置条件
- mmdc installed — npm i -g @mermaid-js/mermaid-cli
- Skill installed — git clone https://github.com/Agents365-ai/mermaid-skill ~/.claude/skills/mermaid-skill
步骤
-
Describe the systemUse mermaid-skill. Draw a flowchart of our service: client → API gateway → (auth / orders / payments) → Postgres / Redis / Stripe.✓ 已复制→ .mmd source with meaningful node names, rendered to PNG in docs/
-
Add detailsAdd labels on each edge showing the protocol (HTTPS, gRPC, TCP) and auth type.✓ 已复制→ Updated source and re-render
-
Commit itCommit docs/architecture.mmd and its PNG.✓ 已复制→ git add and commit run
结果: A living diagram in the repo, not a stale slide in Confluence.
注意事项
- Diagram becomes a maze of edges — Let Claude use subgraphs and direction hints; don't cram everything on one layer