home / skills / basedhardware / omi / diagram-generation
This skill generates Mermaid diagrams to visualize architecture, data flows, and component relationships, helping documentation and architectural analysis.
npx playbooks add skill basedhardware/omi --skill diagram-generationReview the files below or copy the command above to add this skill to your agents.
---
name: diagram-generation
description: "Mermaid diagram generation for architecture visualization, data flow diagrams, and component relationships. Use for documentation, PR descriptions, and architectural analysis."
---
# Diagram Generation Skill
Generate Mermaid diagrams to visualize architecture, data flows, and component relationships.
## When to Use
Use this skill when:
- Documenting architecture
- Explaining complex changes in PRs
- Visualizing data flows
- Understanding component relationships
- Revealing architectural issues
## Capabilities
### Architecture Diagrams
- System architecture
- Component relationships
- Service interactions
- Module dependencies
### Data Flow Diagrams
- Request/response flows
- Data transformation pipelines
- State management flows
- Event flows
### Sequence Diagrams
- API call sequences
- User interaction flows
- Process workflows
- Error handling flows
## Usage
```
Create a Mermaid diagram showing the data flow for our authentication system,
including OAuth providers, session management, and token refresh.
```
## Best Practices
1. **Be specific**: Describe what you want to visualize
2. **Include context**: Mention relevant files or components
3. **Review diagrams**: Verify accuracy and completeness
4. **Use in docs**: Add diagrams to documentation
5. **Update regularly**: Keep diagrams current with code
## Related Resources
- Rule: `.cursor/rules/large-codebase-patterns.mdc`
- Command: `/diagram`
- Agent: `.cursor/skills/diagram-generation/agents/diagram-generator.md`
This skill generates Mermaid diagrams for architecture visualization, data flow diagrams, and component relationship mapping. It produces clear, shareable diagrams suitable for documentation, pull request descriptions, and architectural analysis. The output targets system architects, developers, and technical writers who need fast, consistent visualizations. Diagrams are optimized for clarity and integration into docs or PRs.
Provide a concise description of the system area you want visualized, including components, data sources, and interactions. The skill translates that input into Mermaid syntax for architecture, data flow, and sequence diagrams. It can highlight services, APIs, state flows, and error paths, producing labeled nodes and directed edges. You can ask for variations (high-level, detailed, or focused on a single flow) and request updates as the design evolves.
What input yields the best diagram?
A concise list of components, their roles, endpoints, and how data moves between them produces the most accurate diagrams.
Can I get different levels of detail?
Yes. Request high-level overviews or detailed flows for a specific feature, and the skill will adjust node granularity accordingly.