dot-claude/skills/diagrams/SKILL.md
Generate architecture and flow diagrams using mermaid-cli (mmdc)
npx skillsauth add sutanunandigrami/claude-titan-setup dot-claude/skills/diagramsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use mmdc (mermaid-cli) to render diagrams as PNG/SVG.
# Write mermaid to file, then render
cat > /tmp/diagram.mmd << 'EOF'
graph TD
A[Client] --> B[API Gateway]
B --> C[Auth Service]
B --> D[App Service]
D --> E[(Database)]
EOF
mmdc -i /tmp/diagram.mmd -o diagram.png # PNG output
mmdc -i /tmp/diagram.mmd -o diagram.svg # SVG output
mmdc -i /tmp/diagram.mmd -o diagram.png -w 1200 # custom width
mmdc -i /tmp/diagram.mmd -o diagram.pdf # PDF output
graph TD
LB[Load Balancer] --> S1[Server 1]
LB --> S2[Server 2]
S1 --> DB[(PostgreSQL)]
S2 --> DB
S1 --> Cache[(Redis)]
S2 --> Cache
sequenceDiagram
Client->>API: POST /login
API->>Auth: validate(credentials)
Auth-->>API: token
API-->>Client: 200 OK {token}
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : "ordered in"
gitgraph
commit
branch feature
commit
commit
checkout main
merge feature
commit
stateDiagram-v2
[*] --> Draft
Draft --> Review: submit
Review --> Approved: approve
Review --> Draft: request changes
Approved --> Deployed: deploy
Deployed --> [*]
graph LR
A[Push] --> B[Lint]
A --> C[Test]
B --> D{All Pass?}
C --> D
D -->|Yes| E[Build]
D -->|No| F[Notify]
E --> G[Deploy]
.mmd file.mmdc -i input.mmd -o output.png.mmdc -i input.mmd -o output.svg.docs/diagrams/ or project root..graph TD (top-down) or graph LR (left-right) for direction.DB[(PostgreSQL)] not A[(DB)].tools
Project workspace configuration — auto-detect commands, _workspace.json convention, .envrc templates
development
This skill helps Claude write secure web applications. Use this when working on any web application or when a user requests a scan or audit to ensure security best practices are followed.
tools
Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.
tools
Control tmux sessions — create panes, run commands, read output, monitor processes