Skip to content
Back to skills

Architecture Diagrams

ASecurity

Visual architecture documentation using Mermaid, ASCII, and Excalidraw. Activate for diagram, visualize, architecture diagram, flowchart, sequence diagram, ERD tasks.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsbashnoderailsgitapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add thisizmsk-png/vajra --skill architecture-diagrams --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Diagrams?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Diagrams
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thisizmsk-png-architecture-diagrams/badge)](https://www.skillsdirectory.com/skills/thisizmsk-png-architecture-diagrams)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture-diagrams
description: Visual architecture documentation using Mermaid, ASCII, and Excalidraw. Activate for diagram, visualize, architecture diagram, flowchart, sequence diagram, ERD tasks.
user-invocable: true
---

# Architecture Diagrams

## When to Activate
- User mentions: diagram, visualize, architecture diagram, flowchart, sequence diagram, ERD, data flow
- Documenting system architecture
- Explaining complex flows to stakeholders
- Designing before implementing

## Diagram Selection

| What to Show | Diagram Type | Tool |
|-------------|-------------|------|
| System components + connections | Component diagram | Mermaid `graph` |
| Request lifecycle | Sequence diagram | Mermaid `sequenceDiagram` |
| Data flow through pipeline | Flowchart | Mermaid `flowchart` |
| Database schema | ERD | Mermaid `erDiagram` |
| State transitions | State diagram | Mermaid `stateDiagram-v2` |
| Class relationships | Class diagram | Mermaid `classDiagram` |
| Timeline / Gantt | Timeline | Mermaid `gantt` |
| Quick sketch | ASCII art | In-line |

## Mermaid Patterns

### Component Diagram
```mermaid
graph TB
    A[Client] --> B[API Gateway]
    B --> C[Auth Service]
    B --> D[Core Service]
    D --> E[(Database)]
    D --> F[Queue]
    F --> G[Worker]
```

### Sequence Diagram
```mermaid
sequenceDiagram
    participant U as User
    participant A as API
    participant DB as Database
    U->>A: POST /order
    A->>DB: Insert order
    DB-->>A: OK
    A-->>U: 201 Created
```

### ERD
```mermaid
erDiagram
    USER ||--o{ ORDER : places
    ORDER ||--|{ ITEM : contains
    USER { string id PK; string email; string name }
    ORDER { string id PK; string user_id FK; float total }
```

## Design Principles
1. **One diagram, one question** — each diagram should answer exactly one question
2. **Isomorphism test** — would the structure communicate without labels?
3. **Depth assessment**: simple concepts → minimal; complex systems → detailed
4. **Max 12 nodes** per diagram — split if more
5. **Color coding**: use color to group related components, not for decoration
6. **Left-to-right** for flows, **top-to-bottom** for hierarchies

## Rendering
- **In docs**: Mermaid renders natively in GitHub, GitLab, Notion
- **In CLAUDE.md**: ASCII art (always works, no renderer needed)
- **For presentations**: Export Mermaid to SVG/PNG via `mmdc` CLI
- **Interactive**: Excalidraw for whiteboard-style diagrams

```bash
# Render Mermaid to PNG
npx -p @mermaid-js/mermaid-cli mmdc -i diagram.mmd -o diagram.png
```

## Guardrails
- ALWAYS label edges (arrows without labels are ambiguous)
- NEVER create a diagram without a title and date
- Keep diagrams close to the code they describe (same repo, linked from CLAUDE.md)
- Update diagrams when architecture changes (stale diagrams are worse than none)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.