Skip to main content
rule CX Codex

mermaid-diagram-journey — Claude Code rule: usage and setup

mermaid-diagram-journey guides Claude Code to build a Mermaid state diagram for login and onboarding flows straight from project requirements.

AGPL-3.0 ★ 267 updated 2026-02-20

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/mermaid-diagram-journey.mdc
Open on GitHub

What mermaid-diagram-journey does

The rule configures the model as a UX specialist focused on user flow visualization. Claude Code inspects authentication requirements and turns registration, sign-in, and password recovery paths into a structured stateDiagram-v2 diagram.

Execution follows a strict process. The assistant drafts an initial breakdown inside user_journey_analysis tags to map choices, states, and error handling. Then it outputs the diagram using nested states, fork and join markers, and concise state labels.

This workflow expects input specifications inside .ai/project-prd.md and commits the resulting diagram to .ai/diagrams/journey.md with Polish language labels.

What it helps with

  • map onboarding and sign-in transitions in Mermaid state syntax
  • document branching logic for authentication flows
  • turn product requirement documents into visual UX paths
  • structure parallel and nested user states cleanly

Example prompts for the agent

  • Analyze our login PRD and create the user journey diagram
  • Generate the authentication state diagram in journey.md
  • Map the registration and password recovery flows using Mermaid

How to install mermaid-diagram-journey

Manually: put the files in place

.cursor/rules/mermaid-diagram-journey.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about mermaid-diagram-journey

How to install mermaid-diagram-journey in Claude Code?

Place the rule file at .claude/rules/mermaid-diagram-journey.md in your project root.

What does mermaid-diagram-journey do?

It instructs the assistant to read requirements and generate a stateDiagram-v2 user journey for authentication flows.

Which language does the rule use for diagram nodes?

The instructions require all state descriptions and node labels in the generated Mermaid diagram to be in Polish.

Similar IDE rules

All IDE rules for Design →
agent-mermaid-diagram-specialist softaworks agent-mermaid-diagram-specialist — a plugin that generates Mermaid diagrams: flowcharts, sequence diagrams, ERDs, and architecture visualizations. Saves time when you need to sketch out processes, data relationships, or system interactions. ★ 2,707repo stars external-diagram-mermaid-generate forcedotcom external-diagram-mermaid-generate turns Salesforce architecture into Mermaid diagrams: OAuth flows, ERDs, integration sequences, Agentforce structure. Ships an ASCII fallback for plain-text use. CX Codex +1 5,600installs mermaid-diagram-generator patricio0312rev mermaid-diagram-generator is a Claude Code skill that generates Mermaid diagrams in markdown and activates on requests for a Mermaid diagram, flowchart, or architecture diagram. CX Codex +1 348installs mermaid-diagram-specialist davila7 mermaid-diagram-specialist generates Markdown-ready Mermaid diagrams for flowcharts, ERDs, sequence diagrams, and C4 architecture. Useful for technical writers and system architects. CX Codex +1 145installs user-journey-mapping NickCrew The user-journey-mapping Claude Code skill lays out user journeys with stages, touchpoints, emotions, and friction points. It activates for experience mapping or conversion-flow analysis. CX Codex +1 102installs product-ux-expert majiayu000 product-ux-expert — a skill for reviewing interfaces against Nielsen's heuristics, building user journey maps, and auditing accessibility against WCAG 2.2 AA. CX Codex +1 212installs

From the same set24

The whole set →
shadcn-view-implement The shadcn-view-implement command guides Claude Code through building a shadcn/ui view from an implementation plan. It pauses after a small batch of work so you can review the result. CX Codex +1 ★ 267repo stars shadcn-ui-plan shadcn-ui-plan turns a product requirements doc, API plan and planning session notes into a UI architecture saved to .ai/ui-plan.md. CX Codex +1 ★ 267repo stars mermaid-diagram-ui mermaid-diagram-ui guides the agent to analyze requirements and generate Mermaid UI architecture diagrams for Astro and React auth modules. CX Codex +1 ★ 267repo stars mermaid-diagram-auth The mermaid-diagram-auth rule guides Claude Code through project auth requirements and asks it to create a Mermaid sequence diagram. Use it to map sign-up, login, sessions, and token handling. CX Codex +1 ★ 267repo stars shadcn-view-plan shadcn-view-plan — a Claude Code command that produces a structured implementation plan for a single frontend view and writes it to .ai/{view}-view-implementation-plan.md. CX Codex +1 ★ 267repo stars supabase This rule guides Supabase Auth setup in Astro apps with SSR. It covers middleware, auth endpoints, protected routes, and server-side cookies. CX Codex +1 ★ 267repo stars 10x-research 10x-research spawns parallel sub-agents to investigate your codebase comprehensively. Finds architectural patterns, component connections, and generates a markdown research report with code references. CX Codex +1 ★ 267repo stars 10x-plan 10x-plan guides Claude Code through an iterative codebase investigation to create technical implementation plans. CX Codex +1 ★ 267repo stars

Project sponsors

Companies that keep this analytics open