agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Generate architecture and flow diagrams with ASCII art and Mermaid
How it fires
How this command gets triggered: by you, by Claude, or both.
/diagramContext preview
What this command does when you run it.
Generate architecture and flow diagrams with ASCII art and Mermaid
allowed-tools: Read, Write, Bash(fd:*), Bash(rg:*), Bash(mmdc:*), Bash(gdate:*), Agent name: "Diagram" description: "Generate architecture and flow diagrams with ASCII art and Mermaid" author: "wcygan" tags: ["tool"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
PROCEDURE generate_diagram():
STEP 1: Parse request parameters
STEP 2: Analyze codebase structure
STEP 3: Gather relevant information
FOR diagram_type: CASE "architecture":
CASE "flow":
CASE "class":
CASE "sequence":
STEP 4: Generate diagram
STEP 5: Export diagram (if mmdc available)
STEP 6: Enhance with documentation
┌─────────────────────────────────────────────────────────────┐
│ Frontend (React/Fresh) │
│ ┌─────────────┐ ┌──────────────┐ ┌─────────────────┐ │
│ │ Browser │ │ Mobile App │ │ CLI Client │ │
│ └──────┬──────┘ └──────┬───────┘ └────────┬────────┘ │
└─────────┼─────────────────┼──────────────────┼─────────────┘
│ │ │
└─────────────────┴──────────────────┘
│
┌─────────▼─────────┐
│ Load Balancer │
│ (HAProxy) │
└─────────┬─────────┘
│
┌───────────────────┴───────────────────┐
│ │
┌───────▼────────┐ ┌────────▼────────┐
│ API Gateway │ │ Static Assets │
│ (Kong/Envoy) │ │ (CDN) │
└───────┬────────┘ └─────────────────┘
│
┌───────┴────────────────────────────────────┐
│ Microservices │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Auth │ │ Orders │ │ Payments │ │
│ │ Service │ │ Service │ │ Service │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
└───────┼─────────────┼─────────────┼───────┘
│ │ │
└─────────────┴─────────────┘
│
┌────────────┴────────────┐
│ │
┌────────▼────────┐ ┌─────────▼────────┐
│ PostgreSQL │ │ Message Queue │
│ (Primary DB) │ │ (RabbitMQ) │
└─────────────────┘ └──────────────────┘flowchart TD
A[User Request] --> B{Authenticated?}
B -->|No| C[Login Page]
B -->|Yes| D[Load Dashboard]
C --> E[Enter Credentials]
E --> F{Valid?}
F -->|No| C
F -->|Yes| G[Generate Token]
G --> D
D --> H[Fetch User Data]
H --> I[Render Dashboard]
I --> J{User Action}
J -->|View Reports| K[Load Reports]
J -->|Edit Profile| L[Profile Form]
J -->|Logout| M[Clear Session]
K --> N[Query Database]
N --> O[Format Data]
O --> P[Display Charts]sequenceDiagram
participant C as Client
participant G as Gateway
participant A as Auth Service
participant D as Database
participant Q as Queue
C->>G: POST /api/login
G->>A: Validate credentials
A->>D: Check user exists
D-->>A: User data
alt Valid credentials
A->>A: Generate JWT
A-->>G: Token + User info
G-->>C: 200 OK + Token
else Invalid credentials
A-->>G: 401 Unauthorized
G-->>C: 401 Unauthorized
end
C->>G: GET /api/data (Token)
G->>G: Validate token
G->>Q: Log access event
G-->>C: Return dataclassDiagram
class User {
+String id
+String email
+String nameA lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies