Common Architecture Diagramming
ASecurityUse a C4 Container view when the question is “What are the main deployable parts of this system, and how do they communicate?” The following example is intentionally small and shows one story. **Title:** Order submission — C4 Container view **Scope:** Order system and its immediate integrations **Audience:** Architects and developers **Status:** Proposed **Version/date:** v1.0, 2026-07-11 **Author:** Architecture team ```mermaid graph LR Customer((Person: Customer)) Web[Internal container: We...
- 584 stars
- 0 votes
- 0 copies
- 3 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 12 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming --agent claude-codeAre you the author of Common Architecture Diagramming?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-architecture-diagramming-663d14c4)# Quick-start: a governed Mermaid container diagram
Use a C4 Container view when the question is “What are the main deployable parts of this system, and how do they communicate?” The following example is intentionally small and shows one story.
**Title:** Order submission — C4 Container view
**Scope:** Order system and its immediate integrations
**Audience:** Architects and developers
**Status:** Proposed
**Version/date:** v1.0, 2026-07-11
**Author:** Architecture team
```mermaid
graph LR
Customer((Person: Customer))
Web[Internal container: Web App]
API[Internal container: Order API]
DB[(Database: Orders)]
Bus[Internal container: Event Bus]
Payment[External system: Payment Provider]
Customer -->|HTTPS/JSON: submits order| Web
Web -->|HTTPS/JSON: creates order| API
API -->|SQL: stores order| DB
API -.->|Pub/Sub: publishes OrderCreated| Bus
API -->|HTTPS: authorizes payment| Payment
subgraph Legend
PersonKey((Person shape = user/actor))
ContainerKey[Rectangle = internal deployable container]
DatabaseKey[(Cylinder = database)]
ExternalKey[Gray-style box = external system]
SyncKey[Solid arrow = synchronous call]
AsyncKey[Dashed arrow = asynchronous message]
end
classDef person fill:#dcfce7,stroke:#15803d,color:#14532d
classDef internal fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
classDef database fill:#fef3c7,stroke:#b45309,color:#78350f
classDef external fill:#e5e7eb,stroke:#4b5563,color:#1f2937
class Customer person
class Web,API,Bus internal
class DB database
class Payment external
```
How to adapt it:
1. Replace the example nodes with the system’s real actors, containers, and immediate external systems. Keep this view at container level; do not add table columns or classes.
2. Label every relationship with the action plus protocol or transport. Keep arrows directional so a reader can distinguish calls from published events.
3. Apply a consistent visual style in the renderer: for example, blue internal containers, gray external systems, green people, and a cylinder for databases. The legend must define those choices.
4. Add deployment information in a separate C4 Deployment view if the question includes hosts, clusters, VPCs, firewalls, or regions. Add a sequence diagram instead if the question is timing, retries, or race conditions.
5. Recheck the finished diagram for connected nodes, readable whitespace, defined acronyms, security/trust boundaries, and current metadata.
This is a proposed architecture, so it should be reviewed with its audience and updated with a new version/status when the implementation changes.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
- trigger-5.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.