Agent skill

mermaid-diagram

Generate Mermaid diagrams from user requirements. Saves .mmd and .md files to figures/ directory with syntax verification. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and 18 more diagram types.

brycew6m4,252★ · +31/wk · 3 repos on radarProfile →
claude-codecan modify filesNOASSERTION
Install
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill mermaid-diagram --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 15 KB
Bundled scripts: none
Allowed tools: Bash(*)ReadWriteEditGlobGrep
Path: skills/42-wanshuiyin-ARIS/skills/mermaid-diagram/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 3,244
Language: Stata
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Mermaid Diagram Generator Generate high-quality Mermaid diagram code based on user requirements, with file output and verification. ## Constants - **OUTPUT_DIR = `figures/`** — Output directory for all generated files - **MAX_ITERATIONS = 3** — Maximum refinement rounds for syntax errors ## Workflow: MUST EXECUTE ALL STEPS ### Step 0: Pre-flight Check ```bash # Create output directory mkdir -p figures ``` ### Step 1: Understand Requirements & Select Diagram Type Parse the input: **$ARGUMENTS** 1. Analyze user description to determine the most suitable diagram type 2. Read the corresponding syntax reference documentation (see Diagram Type Reference below) 3. **If the diagram involves mathematical notation** (formulas, equations, Greek letters, subscripts, superscripts, fractions, matrices, etc.), apply the math syntax rules from the **Math Formulas in Diagrams** section below 4. Identify all components, connections, and data flow 5. Plan the diagram structure ### Step 2: Read Documentation Select the appropriate diagram type based on the use case. Use your built-in knowledge of Mermaid syntax, or fetch up-to-date docs via the context7 MCP server if needed. | Type | Use Cases | | -

What's inside
Steps it walks through
  1. Constants
  2. Workflow: MUST EXECUTE ALL STEPS
  3. Step 0: Pre-flight Check
  4. Step 1: Understand Requirements & Select Diagram Type
  5. Step 2: Read Documentation
  6. Configuration & Themes
  7. Step 3: Generate Mermaid Code & Save Files
  8. Step 4: Verify Mermaid Syntax (MANDATORY)
  9. Step 5: Claude STRICT Visual Review & Scoring (MANDATORY)
  10. Step 6: Final Output Summary
  11. Architecture Diagram Best Practices
  12. Use Junctions for Layout Control
  13. Use Edges out of Groups for Floating Components
  14. CVPR/ICLR/NeurIPS Style Guide (for Academic Diagrams)
Commands it runs
Create output directory
mkdir -p figures
Check if mermaid-cli is available
if command -v mmdc &> /dev/null; then
mmdc -i figures/<diagram-name>.mmd -o figures/<diagram-name>.png -b transparent
echo "✅ Syntax valid — PNG rendered to figures/<diagram-name>.png"
else
npx -y @mermaid-js/mermaid-cli@latest -i figures/<diagram-name>.mmd -o figures/<diagram-name>.png -b transparent
fi
More from Auto-Empirical-Research-Skills
All skills →
About this skill
What does the mermaid-diagram skill do?

Generate Mermaid diagrams from user requirements. Saves .mmd and .md files to figures/ directory with syntax verification. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and 18 more diagram types.

How do I install it?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill mermaid-diagram --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going