Generate Mermaid diagrams from code analysis and natural language descriptions using Bun/TypeScript
Use this skill when you need to:
I specialize in:
Code Analysis Engine
Text-to-Diagram Conversion
Multiple Diagram Types
Validation & Optimization
The skill uses a modular architecture:
// Core components
- MermaidDiagramsSkill: Main skill class
- CodeAnalyzer: Source code parsing and analysis
- TextAnalyzer: Natural language processing
- MermaidGenerator: Diagram code generation
- MermaidValidator: Syntax validation and optimization
From Code Analysis:
const skill = await createSkill();
const result = await skill.analyze("src/auth/", "flowchart");
console.log(result.mermaid_code);
From Text Description:
const result = await skill.generate(
"User logs in, system validates credentials, redirects to dashboard"
);
Batch Generation:
const results = await skill.batchGenerate("config.json", "docs/");
All results include:
I work well with:
documentation-writer - for comprehensive documentationcode-review - for visualizing code changesgit-release - for release workflow diagramsFocus on providing clear, accurate visual representations that enhance understanding and communication of complex concepts.