architecture-diagram
Diagram a system or technical architecture — services, data stores, and how they connect. Use when asked to draw an architecture, show how component…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Architecture Diagram Skill
"How does the system fit together?" is best answered with a picture. This skill turns a described system
into a clean Mermaid architecture diagram — clients, services, data stores, and third parties, grouped
into logical layers with labelled connections (sync vs async, protocols) — not an undifferentiated blob of
boxes.
Required Inputs
Ask for these only if they aren't already provided:
- The components — services, apps, databases, queues, external APIs.
- How they connect — who calls whom; sync (HTTP/gRPC) vs async (queue/event); data flow direction.
- Logical groupings — frontend / backend / data / third-party, or by team/domain.
- Focus — the whole system or one slice (e.g. just the checkout path).
Output Format
[System name] — architecture
One line on what the diagram covers and its boundary.
flowchart LR
subgraph Client
Web[Web app]
Mobile[Mobile app]
end
subgraph Backend
API[API gateway]
Svc[Order service]
end
subgraph Data
DB[(Postgres)]
Cache[(Redis)]
end
Web --> API
Mobile --> API
API --> Svc
Svc --> DB
Svc -.async.-> Queue[[Event bus]]
Svc --> Cache
Component legend — one line per non-obvious component (what it is, why it's there).
Notes — trust boundaries, single points of failure, sync vs async (-.-> = async), anything to revisit.
Mermaid Rules (so it renders)
- Use
flowchart LR(orTD) withsubgraph Name ... endfor logical layers. - Databases/stores read well as
[(name)]; queues/buses as[[name]]. - Solid arrows
-->for synchronous calls, dotted-.label.->for async/events. - Short node labels; keep IDs unique and simple. No parentheses/quotes inside labels.
Quality Checks
- [ ] Components are grouped into meaningful layers (subgraphs), not one flat pile
- [ ] Connection direction reflects who calls whom; async vs sync is distinguished
- [ ] Data stores and external/third-party systems are visually distinct from services
- [ ] The legend explains anything non-obvious; trust boundaries / SPOFs are noted
- [ ] The Mermaid block renders without edits
Anti-Patterns
- [ ] Do not draw every box the same with undifferentiated arrows — show layers and connection types
- [ ] Do not omit data stores or external dependencies — they're usually where the risk lives
- [ ] Do not blur sync and async — they have very different failure modes
- [ ] Do not cram the entire system when the ask is one slice — match the requested focus
- [ ] Do not break Mermaid with special characters in labels
Based On
Architecture diagramming (C4-style grouping, logical layers, sync/async edges), expressed as renderable Mermaid.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
同名技能的其他版本
有 3 个不同仓库或目录里都有叫 architecture-diagram 的技能。它们内容并不相同,别混用:
- mohitagw15856/pm-claude-skills — Diagram a system or technical architecture — services, data stores, and how they connect.
- mohitagw15856/pm-claude-skills — Diagram a system or technical architecture — services, data stores, and how they connect.