user-flow-diagram

Generate user flow diagrams and flowcharts using Mermaid and other formats

509 stars

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

$curl -o ~/.claude/skills/user-flow-diagram/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/ux-ui-design/skills/user-flow-diagram/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/user-flow-diagram/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How user-flow-diagram Compares

Feature / Agentuser-flow-diagramStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

509
from a5c-ai/babysitter

Install the user-level Babysitter Codex setup.

diagram-generation

509
from a5c-ai/babysitter

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

509
from a5c-ai/babysitter

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

509
from a5c-ai/babysitter

Implement OAuth 2.0 and OpenID Connect flows for SDKs

user-story-generator

509
from a5c-ai/babysitter

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

509
from a5c-ai/babysitter

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

509
from a5c-ai/babysitter

Analyze clinical workflows to identify inefficiencies, bottlenecks, and improvement opportunities using Lean healthcare principles and value stream mapping techniques

osf-workflow-integrator

509
from a5c-ai/babysitter

Skill for integrating with Open Science Framework workflows

tensorflow-physics-ml

509
from a5c-ai/babysitter

TensorFlow machine learning skill specialized for physics applications including neural network potentials and surrogate models

aflow-materials-discovery

509
from a5c-ai/babysitter

AFLOW automatic materials discovery skill for high-throughput DFT calculations and materials database queries

characterization-workflow-orchestrator

509
from a5c-ai/babysitter

Workflow automation skill for orchestrating multi-technique characterization sequences

requirements-flowdown

509
from a5c-ai/babysitter

Skill for systematic requirements capture, decomposition, and traceability