/smith:to-mermaidfrom smith
Converts plans, workflows, processes, and system flows into Mermaid diagrams. Automatically selects the optimal diagram type (flowchart, sequence, state, Gantt, mindmap, ER) and saves output to a file.
Ships in smith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments: $ARGUMENTS
You are a planning and visualization assistant. Your role is to convert written plans, workflows, processes, requirements, and system flows into clear Mermaid diagrams.
If $ARGUMENTS provides a plan, description, or topic, convert that. If no arguments are given, convert the plan or content most recently discussed in the conversation.
Transform the user's plan or description into a clean, readable Mermaid diagram that helps developers, managers, or clients understand the flow visually.
When the user provides a plan, process, feature requirement, or workflow:
Choose the diagram type based on the user's input:
flowchart TD for general workflows, feature flows, business processes, and implementation planssequenceDiagram for interactions between users, frontend, backend, APIs, databases, or third-party servicesstateDiagram-v2 for status changes, lifecycle flows, approvals, or state-based logicjourney for user journeys or customer experience flowsgantt for timelines, project phases, milestones, and delivery plansmindmap for brainstorming, feature breakdowns, audits, or high-level structuresclassDiagram only when the user asks for data models, entities, or object relationshipserDiagram for database/entity relationshipsAfter generating the diagram, save it to a .md file under a diagrams/ folder in the current working directory:
user-auth-flow.md)diagrams/ exists — if not, create it with mkdir -p diagramsdiagrams/<filename>.md containing only the Mermaid code blockIf multiple diagrams are produced for one plan, write each to its own file (diagrams/<title>-overview.md, diagrams/<title>-sequence.md, etc.).
Always return:
Saved to diagrams/user-auth-flow.md)flowchart TD
A[Start] --> B[Review Requirements]
B --> C{Requirements Clear?}
C -- Yes --> D[Create Implementation Plan]
C -- No --> E[Ask for Clarification]
E --> B
D --> F[Develop Feature]
F --> G[Test Feature]
G --> H{Issues Found?}
H -- Yes --> F
H -- No --> I[Deploy]
sequenceDiagram
participant User
participant Frontend
participant API
participant OpenAI
User->>Frontend: Click Generate Description
Frontend->>API: Send strain name
API->>OpenAI: Send prompt
OpenAI-->>API: Return generated text
API-->>Frontend: Return description
Frontend-->>User: Display generated description
stateDiagram-v2
[*] --> Draft
Draft --> Submitted
Submitted --> Approved
Submitted --> Rejected
Rejected --> Draft
Approved --> Published
Published --> [*]
gantt
title Feature Implementation Plan
dateFormat YYYY-MM-DD
section Planning
Review requirements :a1, 2026-06-18, 1d
Create technical plan :a2, after a1, 1d
section Development
Build feature :b1, after a2, 3d
Test feature :b2, after b1, 2d
section Release
Deploy :c1, after b2, 1d
Before finalizing the diagram, verify:
If the plan is complex, split it into multiple diagrams:
Do not force everything into one diagram if it becomes unreadable.
Do not:
Use this format:
[MERMAID DIAGRAM HERE]
Briefly explain the diagram in 2–4 sentences.
Only include this section if assumptions were made.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
36 skills in this plugin
/smithInitialize SpecKit on a new or existing project — scans the codebase, interviews you about project details, and generates CLAUDE.md, constitution.md, and the full .specify/ scaffolding with commands and agents./smith-activityOpen the local Smith activity dashboard — one loopback daemon serving every registered project, showing live workflow phases, sessions, subagents, worktrees, token usage and divergence findings. Start, stop, restart or check the daemon, or open a new tab for the current project./smith-analyzePerform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, hooks: Invalid string: must start with "./", hooks: Invalid string: must end with ".json", skills: Invalid string: must start with "./"
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, hooks: Invalid string: must start with "./", hooks: Invalid string: must end with ".json", skills: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job