Spoon94/skill-vault / diagram/diagram-mermaid
diagram-mermaid
VerifiedGenerate Mermaid code blocks (` ```mermaid ` fences) for inline Markdown rendering of technical diagrams. Covers 11 types — flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline, gitGraph, and journey. Use whenever the user asks for a flowchart, sequence diagram, state diagram, ER diagram, Gantt chart, pie chart, mindmap, timeline, git graph, or user journey map. Trigger on: "画流程图" "画时序图" "状态图" "ER图" "甘特图" "饼图" "思维导图" "时间线" "git图" "用户旅程" "Mermaid" "GitHub 渲染" "嵌入文档" or any diagram request where the output should be inline Markdown. Part of the diagram skill family — pick this skill for Mermaid code blocks, zero-dependency output that renders natively in GitHub/Markdown, or one of the 11 supported types. Lightest-weight entry point of the diagram family — default for "画个流程图/时序图" unless another format is explicitly requested.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.9 KB |
| examples/class.md | markdown | 1.6 KB |
| examples/er.md | markdown | 1.3 KB |
| examples/flowchart.md | markdown | 904 B |
| examples/gantt.md | markdown | 1.6 KB |
| examples/gitgraph.md | markdown | 1.3 KB |
| examples/journey.md | markdown | 1.3 KB |
| examples/mindmap.md | markdown | 1.1 KB |
| examples/pie.md | markdown | 776 B |
| examples/sequence.md | markdown | 1.2 KB |
| examples/state.md | markdown | 1.3 KB |
| examples/timeline.md | markdown | 1.1 KB |
| references/common-pitfalls.md | markdown | 8.1 KB |
| references/layout-best-practices.md | markdown | 5.6 KB |
| references/mermaid-syntax.md | markdown | 9.9 KB |
examples/gantt.md
View on GitHub# Gantt Chart Example
A project schedule with multiple sections, dependencies, and milestones.
```mermaid
gantt
title Product Launch Q1 2025
dateFormat YYYY-MM-DD
axisFormat %m/%d
section Discovery
User research :a1, 2025-01-06, 7d
Stakeholder ints :a2, after a1, 5d
Spec writing :a3, after a2, 3d
Spec sign-off :milestone, m1, after a3, 0d
section Design
Wireframes :d1, after m1, 4d
Visual design :d2, after d1, 5d
Design review :d3, after d2, 2d
section Dev
Backend API :b1, after d3, 10d
Frontend impl :b2, after d3, 8d
Integration :b3, after b1, 5d
Code freeze :milestone, m2, after b3, 0d
section QA
Test cases :t1, after b2, 3d
QA testing :t2, after m2, 5d
Bug fix :t3, after t2, 3d
Release :milestone, m3, after t3, 0d
```
## Key syntax
- `gantt` — diagram type keyword
- `title` — chart title
- `dateFormat YYYY-MM-DD` — input date format
- `axisFormat %m/%d` — display date format
- `section Section Name` — group tasks
- `Task name :id, start, duration` — basic task
- `Task name :id, after other, duration` — dependent task
- `Task name :crit, id, start, duration` — critical (red)
- `Task name :done, id, ...` — completed
- `Task name :active, id, ...` — in-progress
- `Milestone name :milestone, id, date, 0d` — milestone (zero duration)
## Common variations
- `excludes weekends` — skip weekends
- `excludes friday` — skip specific weekdays
- `todayMarker off` — hide today line
- Multiple sections in one chart
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |