user-flow-diagram
Generate user flow diagrams and flowcharts using Mermaid and other formats
Best use case
user-flow-diagram is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate user flow diagrams and flowcharts using Mermaid and other formats
Teams using user-flow-diagram should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/user-flow-diagram/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How user-flow-diagram Compares
| Feature / Agent | user-flow-diagram | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate user flow diagrams and flowcharts using Mermaid and other formats
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# User Flow Diagram Skill
## Purpose
Generate user flow diagrams, flowcharts, and navigation maps to visualize user journeys and application flows.
## Capabilities
- Create Mermaid.js flow diagrams
- Generate flowcharts from user journeys
- Export to SVG, PNG, and other formats
- Validate flow completeness
- Identify dead ends and loops
- Generate sitemap visualizations
## Target Processes
- wireframing.js
- user-journey-mapping.js
- information-architecture.js
## Integration Points
- Mermaid.js for diagram generation
- diagrams.net API for export
- PlantUML for alternative syntax
## Input Schema
```json
{
"type": "object",
"properties": {
"flowData": {
"type": "object",
"description": "User flow data structure",
"properties": {
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"label": { "type": "string" },
"type": { "type": "string" }
}
}
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": { "type": "string" },
"to": { "type": "string" },
"label": { "type": "string" }
}
}
}
}
},
"diagramType": {
"type": "string",
"enum": ["flowchart", "sequence", "state", "journey"],
"default": "flowchart"
},
"direction": {
"type": "string",
"enum": ["TB", "BT", "LR", "RL"],
"default": "TB"
},
"outputFormat": {
"type": "string",
"enum": ["mermaid", "svg", "png", "pdf"],
"default": "mermaid"
},
"validate": {
"type": "boolean",
"default": true
}
},
"required": ["flowData"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"diagramCode": {
"type": "string",
"description": "Mermaid or PlantUML code"
},
"outputPath": {
"type": "string",
"description": "Path to exported diagram"
},
"validation": {
"type": "object",
"properties": {
"isComplete": { "type": "boolean" },
"deadEnds": { "type": "array" },
"loops": { "type": "array" },
"unreachable": { "type": "array" }
}
},
"statistics": {
"type": "object",
"properties": {
"nodeCount": { "type": "number" },
"edgeCount": { "type": "number" },
"maxDepth": { "type": "number" }
}
}
}
}
```
## Usage Example
```javascript
const result = await skill.execute({
flowData: {
nodes: [
{ id: 'start', label: 'Home', type: 'page' },
{ id: 'login', label: 'Login', type: 'page' },
{ id: 'dashboard', label: 'Dashboard', type: 'page' }
],
edges: [
{ from: 'start', to: 'login', label: 'Sign In' },
{ from: 'login', to: 'dashboard', label: 'Success' }
]
},
diagramType: 'flowchart',
outputFormat: 'svg'
});
```Related Skills
user-install
Install the user-level Babysitter Codex setup.
diagram-generation
Multi-format diagram generation from text descriptions. Create Mermaid, PlantUML, D2, and Graphviz diagrams including flowcharts, sequence diagrams, architecture diagrams (C4), and data models.
c4-diagram-generator
Specialized skill for generating C4 model architecture diagrams. Supports Structurizr DSL, PlantUML, and Mermaid formats with multi-level abstraction (Context, Container, Component, Code).
oauth-flow-implementer
Implement OAuth 2.0 and OpenID Connect flows for SDKs
user-story-generator
Generate and validate user stories from various inputs including requirements, research, and feature descriptions. Apply INVEST criteria validation, create acceptance criteria, split large stories, and convert between story formats.
user-research-synthesis
Specialized skill for synthesizing qualitative user research into actionable insights. Analyzes interview transcripts, extracts patterns and themes, identifies pain points, creates affinity diagrams, and generates persona attributes from research data.
clinical-workflow-analysis
Analyze clinical workflows to identify inefficiencies, bottlenecks, and improvement opportunities using Lean healthcare principles and value stream mapping techniques
osf-workflow-integrator
Skill for integrating with Open Science Framework workflows
tensorflow-physics-ml
TensorFlow machine learning skill specialized for physics applications including neural network potentials and surrogate models
aflow-materials-discovery
AFLOW automatic materials discovery skill for high-throughput DFT calculations and materials database queries
characterization-workflow-orchestrator
Workflow automation skill for orchestrating multi-technique characterization sequences
requirements-flowdown
Skill for systematic requirements capture, decomposition, and traceability