From claude-code-skills
Generate Mermaid architecture diagrams showing system components, layers, and data flows
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-skills:architecture-diagrammingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate clear, GitHub-compatible Mermaid architecture diagrams that visualize system components, layers, boundaries, and data flows.
Generate clear, GitHub-compatible Mermaid architecture diagrams that visualize system components, layers, boundaries, and data flows.
Activate this skill when:
Parentheses in Mermaid labels cause rendering errors on GitHub.
WRONG - Will break:
flowchart TD
A[Component (main)]
B[Service (auth)]
CORRECT - Use dashes or commas:
flowchart TD
A[Component - main]
B[Service - auth]
Each node shape uses specific brackets that must match:
[Rectangle] - Standard component{Diamond} - Decision point([Stadium]) - Pill shape[(Database)] - Cylinder for data stores((Circle)) - Circle nodeWRONG:
flowchart TD
A{Decision]
CORRECT:
flowchart TD
A{Decision}
Show major components and their relationships:
flowchart TB
subgraph Client Layer
Web[Web App]
Mobile[Mobile App]
end
subgraph API Layer
Gateway[API Gateway]
Auth[Auth Service]
end
subgraph Data Layer
DB[(Database)]
Cache[(Redis Cache)]
end
Web --> Gateway
Mobile --> Gateway
Gateway --> Auth
Gateway --> DB
Auth --> Cache
Show horizontal layers with clear boundaries:
flowchart TB
subgraph Presentation
UI[User Interface]
API[REST API]
end
subgraph Business
Services[Business Services]
Rules[Business Rules]
end
subgraph Data
Repos[Repositories]
Entities[Domain Entities]
end
UI --> Services
API --> Services
Services --> Rules
Services --> Repos
Repos --> Entities
Show how a request flows through the system:
flowchart LR
Client[Client] --> LB[Load Balancer]
LB --> API1[API Server 1]
LB --> API2[API Server 2]
API1 --> Queue[(Message Queue)]
API2 --> Queue
Queue --> Worker[Background Worker]
Worker --> DB[(Database)]
Show service boundaries and communication:
flowchart TB
subgraph Public
Gateway[API Gateway]
end
subgraph Services
UserSvc[User Service]
OrderSvc[Order Service]
PaymentSvc[Payment Service]
end
subgraph Infrastructure
MQ[(Message Queue)]
Cache[(Shared Cache)]
end
Gateway --> UserSvc
Gateway --> OrderSvc
OrderSvc --> PaymentSvc
OrderSvc --> MQ
PaymentSvc --> MQ
UserSvc --> Cache
Common layers to consider:
Use subgraphs to show:
Create a clean Mermaid diagram that:
Use clear, abbreviated names:
API not ApplicationProgrammingInterfaceAuth not AuthenticationServiceDB or use [(Name)] for databasesQueue or MQ for message queues| Arrow | Meaning |
|---|---|
--> | Standard request/response |
-.-> | Async or optional |
==> | Critical path |
--text--> | Labeled relationship |
flowchart TB
subgraph External[External Systems]
PaymentAPI[Payment Gateway]
EmailAPI[Email Service]
end
subgraph Internal[Internal Services]
App[Application]
end
App --> PaymentAPI
App --> EmailAPI
Given a description of a "REST API with authentication and database":
flowchart TB
subgraph Client Layer
Web[Web Client]
Mobile[Mobile Client]
end
subgraph API Layer
Gateway[API Gateway]
AuthSvc[Auth Service]
CoreAPI[Core API]
end
subgraph Data Layer
DB[(PostgreSQL)]
Cache[(Redis)]
Sessions[(Session Store)]
end
Web --> Gateway
Mobile --> Gateway
Gateway --> AuthSvc
Gateway --> CoreAPI
AuthSvc --> Sessions
AuthSvc --> Cache
CoreAPI --> DB
CoreAPI --> Cache
dependency-mapping for issue visualizationnpx claudepluginhub britt/claude-code-skills --plugin writing-user-storiesGenerates Mermaid diagrams for data flows, service relationships, entity structures, sequences, and states to visualize software architecture.
Generates Mermaid flowcharts visualizing high-level codebase component relationships. Use for onboarding, PR reviews, and understanding system structure.
Generates Mermaid diagrams for flowcharts, sequences, states, classes, and architecture using semantic styling, shapes, and visual hierarchy.