mermaid-diagram
Skill1.7k starsChanged 8 months agoMITView on GitHub
Use when the user asks for a flowchart, architecture diagram, sequence diagram, ER diagram, state machine, gantt chart, or any visual that fits Mermaid syntax. Hope Agent's chat renders Mermaid blocks natively, so the diagram appears inline.
11 other projects use a version of this.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- j99way99/claude-skillstheir own version, first seen Sep 16, 2026
- talhaMah56/claude_skillstheir own version, first seen Sep 12, 2026
- wookat/ai-research-skillstheir own version, first seen Jul 15, 2026
- wanshuiyin/Auto-claude-code-research-in-sleeptheir own version, first seen Jul 15, 2026
- amjadjibon/skillstheir own version, first seen Jul 12, 2026
- Sir-chawakorn/sanook-clitheir own version, first seen Jun 21, 2026
Who's talking about shiwenwen/hope-agent
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.61.0 → 0.62.0”GitHub · Oct 5, 2026
- JDeun/SchemaRouter“External follow-up queue: HYSET, pi-jev, and hope-agent replies”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.53.0 → 0.61.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: init at 0.53.0”GitHub · Oct 2, 2026
- AppImage/appimage.github.io“Add Hope_Agent”GitHub · Sep 29, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
Used with
Projects with it also use paper-illustration, deepxiv and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
raja21068Skillpaper-illustration
Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says \"生成图表\", \"画架构图\", \"AI绘图\", \"paper illustration\", \"generate diagram\", or needs visual figures for papers.
Also in 5 projects that use this
raja21068Skilldeepxiv
Search and progressively read open-access academic papers through DeepXiv. Use when the user wants layered paper access, section-level reading, trending papers, or DeepXiv-backed literature retrieval.
Also in 4 projects that use this
- +10 more from raja21068
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- wanshuiyin/Auto-claude-code-research-in-sleep★ 17ksame name
- Chanw-research/claude-code-paper-writing★ 42same name
- georgekhananaev/claude-skills-vault★ 28same name
- mjunaidca/robolearn★ 9same name
- Sir-chawakorn/sanook-cli★ 9same name
- amjadjibon/skills★ 2same name
- raja21068/AutoResearch★ 2same name
- wookat/ai-research-skills★ 2same name
- j99way99/claude-skills★ 1same name
- romain325/skills★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- email-draftSkill
- feishuSkill
- ha-browserSkill
- ha-code-reviewSkill
- ha-coding-commonSkill
- ha-coding-planSkill
- ha-data-analyticsSkill
- ha-data-storesSkill
- ha-debugSkill
- ha-find-skillsSkill
- ha-knowledgeSkill
- ha-logsSkill
- ha-mac-controlSkill
- ha-manualSkill
- ha-multi-agent-codingSkill
- ha-pet-importSkill
- ha-self-diagnosisSkill
- ha-self-updateSkill
- ha-settingsSkill
- ha-skill-creatorSkill
- ha-skill-installerSkill
- ha-test-strategySkill
- ha-verifySkill
- ha-workflow-scriptSkill
- meeting-notesSkill
- office-docxSkill
- office-pptxSkill
- office-xlsxSkill
- status-reportSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
If unsure, default to flowchart.
- Distinctive: line 162
When asked for "a few diagrams" or "show me the system from different angles", output 2-3 separate ```mermaid blocks with prose between …
- Distinctive: line 200
No floating positioning / pixel-perfect layouts (Mermaid auto-lays out)
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mermaid Diagram
When to Use
Trigger phrases: "draw a diagram", "flowchart for …", "sequence diagram", "architecture diagram", "ER diagram", "state machine", "gantt chart", "画一个流程图", "画个架构图".
Mermaid is rendered natively in Hope Agent chat (via Streamdown). Just emit a fenced ```mermaid block — the user sees the rendered SVG, no setup.
For diagrams Mermaid can't express (organic shapes, custom illustrations, hand-drawn style) consider drawing-tool skills (e.g. excalidraw from Hermes Agent or drawio from Anthropic marketplace) — those need to be installed via Quick Import.
Pick the Right Diagram Type
| Intent | Mermaid type | Use when |
| Step-by-step process | flowchart | Decisions, branching, "if X then Y" |
| Time-ordered messages between actors | sequenceDiagram | API call traces, distributed protocols |
| State transitions of a single entity | stateDiagram-v2 | UI state machines, workflow engines |
| Data model relationships | erDiagram | Database schema, entity relationships |
| Project schedule / timeline | gantt | Roadmaps, sprints |
| Pie / distribution | pie | Quick share-of-X visualization |
| Tree hierarchy (org chart, decomposition) | flowchart TD with subgraphs | Org / breakdown trees |
| Class hierarchy with methods | classDiagram | OO design, type relationships |
| User journey (steps + sentiment) | journey | UX flows |
If unsure, default to flowchart. It's the most flexible.
Templates
Flowchart (top-down)
flowchart TD
Start([Start]) --> Decision{Condition?}
Decision -->|Yes| ActionA[Do A]
Decision -->|No| ActionB[Do B]
ActionA --> End([End])
ActionB --> EndSequence Diagram
sequenceDiagram
participant U as User
participant W as Web Server
participant DB as Database
U->>W: HTTP GET /api/items
W->>DB: SELECT * FROM items
DB-->>W: rows
W-->>U: JSON response
Note over U,DB: Round trip < 50msState Diagram
stateDiagram-v2
[*] --> Idle
Idle --> Loading: fetch()
Loading --> Success: 200 OK
Loading --> Error: 4xx / 5xx
Success --> Idle: reset()
Error --> Idle: retry()
Error --> [*]: give upER Diagram
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ ORDER_ITEM : contains
PRODUCT ||--o{ ORDER_ITEM : "ordered as"
USER {
string id PK
string email UK
string name
}
ORDER {
string id PK
string user_id FK
datetime created_at
}Gantt
gantt
title Q3 Roadmap
dateFormat YYYY-MM-DD
section Auth
Refactor middleware :done, a1, 2026-04-01, 2026-04-15
OAuth migration :active, a2, 2026-04-15, 30d
section Dashboard
Search MVP : d1, 2026-05-01, 14d
Analytics rewrite : d2, after d1, 21dArchitecture (flowchart with subgraphs)
flowchart LR
subgraph Frontend
UI[React SPA]
end
subgraph Backend
API[REST API]
WS[WebSocket Hub]
end
subgraph Storage
DB[(PostgreSQL)]
Cache[(Redis)]
end
UI -->|HTTPS| API
UI -->|WSS| WS
API --> DB
API --> Cache
WS --> CacheWorkflow
- Clarify intent — if the user just says "diagram", ask via
ask_user_question:- What's the diagram showing? (process / structure / relationships / timeline)
- Who's the audience? (engineers / execs / customers)
- Level of detail? (high-level overview / fine-grained)
- Pick the simplest type that fits — flowchart > sequence > state. Don't reach for
classDiagramif a flowchart works. - Sketch nodes first, edges second — list the entities (boxes), then connect them. Avoid dense edge spaghetti.
- Iterate small — start with 5-7 nodes. Add detail only after the user confirms the structure.
- Verify renderability — if you reference Mermaid syntax that's iffy (e.g. classDiagram with annotations), keep it minimal. The user will see if it doesn't render.
Style Rules
- One concept per diagram — if you're tempted to add a second flow, split into two diagrams
- Consistent shape vocabulary:
[Square]= process / action(Round)= entity / data{Diamond}= decision([Stadium])= start / end[(Cylinder)]= database / storage((Circle))= external system
- Direction:
TD(top-down) for hierarchies,LR(left-right) for pipelines / data flows - Labels short — node labels ≤ 4 words. Detail goes in surrounding prose.
- Use
Note overin sequence diagrams to explain non-obvious behavior, not for narration
Multi-Diagram Output
When asked for "a few diagrams" or "show me the system from different angles", output 2-3 separate ```mermaid blocks with prose between them explaining what each shows.
Here's the system at three levels:
**1. High-level data flow:**
\`\`\`mermaid
flowchart LR
...
\`\`\`
**2. Login sequence (zoom into auth):**
\`\`\`mermaid
sequenceDiagram
...
\`\`\`
**3. Database relationships:**
\`\`\`mermaid
erDiagram
...
\`\`\`Common Pitfalls
| Mistake | Fix |
| Single diagram with 30+ nodes | Split into 2-3 diagrams by concern |
| Mixing types (flowchart with class fields) | Pick one type; for hybrid views, do multi-diagram |
| All boxes look the same | Use shape vocabulary (decision = diamond, etc.) |
| Long node labels | Move detail to prose; keep nodes ≤ 4 words |
Unicode quotes ("smart quotes") breaking syntax | Use ASCII " everywhere in Mermaid blocks |
Mermaid ; line endings forgotten when used | Either use newlines OR ; consistently, not mixed |
| Forgot fenced block tag | Block must be mermaid (not just ) for HA chat to render |
Limitations to Surface to User
- No floating positioning / pixel-perfect layouts (Mermaid auto-lays out)
- Limited styling (colors via classDef but verbose)
- Some node shapes don't compose (e.g. cylinders inside subgraphs can be quirky)
- For organic / hand-drawn / heavily-styled diagrams, recommend a draw.io / excalidraw skill instead
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

