visualize
Visualize Command
Generate diagrams from natural language descriptions.
Usage
/visualization:visualize <description>
Examples
/visualization:visualize a sequence diagram showing user authentication flow
/visualization:visualize class diagram for a blog with users, posts, and comments
/visualization:visualize ER diagram for an e-commerce database
/visualization:visualize flowchart for order processing with error handling
/visualization:visualize C4 context diagram for a microservices architecture
Execution
Delegate to the visualization:diagram-generator agent with the following prompt:
Task: Generate a diagram based on the user's description.
User's request: $ARGUMENTS
Instructions:
- Analyze the description to determine the appropriate diagram type
- Choose between Mermaid (default) or PlantUML based on requirements
- Generate syntactically correct diagram code
- Return the diagram inline in a markdown code block
Diagram Type Selection:
- Interactions/flows between systems → Sequence diagram
- Class/object structure → Class diagram
- Database schema → ER diagram
- State transitions → State diagram
- Process/workflow → Flowchart
- Architecture overview → C4 diagram
- Timeline → Gantt chart
- Git workflow → Git graph
Tool Selection:
- Default to Mermaid (GitHub-native rendering)
- Use PlantUML for:
- C4 diagrams (better support)
- MindMaps (Mermaid doesn't support)
- JSON visualization (Mermaid doesn't support)
- When user explicitly requests PlantUML
Output Format: Return the diagram in a markdown code block:
- For Mermaid: ```mermaid
- For PlantUML: ```plantuml
Include a brief explanation of:
- What diagram type was chosen and why
- Any assumptions made
- Suggestions for customization
More from melodic-software/claude-code-plugins
design-thinking
Design Thinking methodology for human-centered innovation. Covers the 5-phase IDEO/Stanford d.school approach (Empathize, Define, Ideate, Prototype, Test) with workshop facilitation and exercise templates.
191plantuml-syntax
Authoritative reference for PlantUML diagram syntax. Provides UML and non-UML diagram types, syntax patterns, examples, and setup guidance for generating accurate PlantUML diagrams.
161system-prompt-engineering
Design effective system prompts for custom agents. Use when creating agent system prompts, defining agent identity and rules, or designing high-impact prompts that shape agent behavior.
141architecture-documentation
Generate architecture documents using templates with diagram integration. Use for creating C4 diagrams, viewpoint documents, and technical overviews.
126data-modeling
Data modeling with Entity-Relationship Diagrams (ERDs), data dictionaries, and conceptual/logical/physical models. Documents data structures, relationships, and attributes.
101resume-optimization
Resume structure, achievement bullet formulas, ATS optimization, and job-targeted tailoring for software engineers. Use when reviewing resumes, crafting achievement bullets, extracting keywords from job descriptions, or tailoring content for specific roles.
93