agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Generate explanatory diagrams from code and architecture analysis
How it fires
How this command gets triggered: by you, by Claude, or both.
/visualizeContext preview
What this command does when you run it.
Generate explanatory diagrams from code and architecture analysis
allowed-tools: Read, Grep, Bash(fd:*), Bash(rg:*), Bash(bat:*), Bash(jq:*), Bash(git:*), Bash(gdate:*), Write, Task name: "Visualize" description: "Generate explanatory diagrams from code and architecture analysis" author: "wcygan" tags: ["analyze","data"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize Visualization Session
STEP 2: Analyze Target and Determine Diagram Types
IF $ARGUMENTS contains specific function/method:
ELSE IF $ARGUMENTS contains database/model patterns:
ELSE IF $ARGUMENTS contains infrastructure configs:
ELSE IF $ARGUMENTS contains API/handler patterns:
ELSE IF $ARGUMENTS is directory or broad scope:
STEP 3: Execute Analysis and Generation
FOR EACH diagram type identified:
STEP 4: Output and Documentation
Analyzes function and method logic to create flowcharts:
**Function Analysis:**
// Example Go function
func ProcessPayment(userID string, amount float64, paymentMethod string) (*Payment, error) {
user, err := GetUser(userID)
if err != nil {
return nil, fmt.Errorf("user not found: %w", err)
}
if user.Balance < amount {
return nil, errors.New("insufficient funds")
}
if paymentMethod == "credit_card" {
if !ValidateCreditCard(user.CreditCard) {
return nil, errors.New("invalid credit card")
}
}
payment := &Payment{
UserID: userID,
Amount: amount,
Method: paymentMethod,
Status: "pending",
}
if err := SavePayment(payment); err != nil {
return nil, fmt.Errorf("failed to save payment: %w", err)
}
if err := ProcessExternalPayment(payment); err != nil {
payment.Status = "failed"
SavePayment(payment)
return nil, fmt.Errorf("external payment failed: %w", err)
}
payment.Status = "completed"
SavePayment(payment)
return payment, nil
}**Generated Flowchart:**
flowchart TD
A[Start: ProcessPayment] --> B[Get User by ID]
B --> C{User Found?}
C -->|No| D[Return Error: User Not Found]
C -->|Yes| E{Sufficient Balance?}
E -->|No| F[Return Error: Insufficient Funds]
E -->|Yes| G{Payment Method == Credit Card?}
G -->|Yes| H[Validate Credit Card]
H --> I{Valid Credit Card?}
I -->|No| J[Return Error: Invalid Credit Card]
I -->|Yes| K[Create Payment Object]
G -->|No| K
K --> L[Save Payment to Database]
L --> M{Save Successful?}
M -->|No| N[Return Error: Save Failed]
M -->|Yes| O[Process External Payment]
O --> P{External Payment Successful?}
P -->|No| Q[Update Status to Failed]
Q --> R[Save Updated Payment]
R --> S[Return Error: External Payment Failed]
P -->|Yes| T[Update Status to Completed]
T --> U[Save Updated Payment]
U --> V[Return Successful Payment]
style A fill:#e1f5fe
style D fill:#ffebee
style F fill:#ffebee
style J fill:#ffebee
style N fill:#ffebee
style S fill:#ffebee
style V fill:#e8f5e8Analyzes database schemas and models to create Entity Relationship Diagrams:
**Go Struct Analysis:**
type User struct {
ID int64 `db:"id" json:"id"`
Email string `db:"email" json:"email"`
Name string `db:"name" json:"name"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
Profile *Profile `db:"-" json:"profile,omitempty"`
Orders []Order `db:"-" json:"orders,omitempty"`
}
type Profile struct {
ID int64 `db:"id" json:"id"`
UserID int64 `db:"user_id" json:"user_id"`
Bio string `db:"bio" json:"bio"`
Avatar string `db:"avatar" json:"avatar"`
}
type Order struct {
ID int64 `db:"id" json:"id"`
UserID int64 `db:"user_id" json:"user_id"`
Total float64 `db:"total" json:"total"`
Status sA 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