mermaid
Skill2 starsChanged 34 days agoMITView on GitHub
Визуализации через inline Mermaid внутри любого ответа агента или в md файлах. Покрывает flowchart'ы, sequence/class/state/ER/C4-диаграммы, mind map'ы, таймлайны, Gantt, Kanban, quadrant/pie/XY/radar/Sankey-графики, packet-диаграммы и другое. Полезно для наглядности и лучшего понимания пользователем сложных вещей (вместо или в дополнение к тексту)
45 other projects use a version of this.
Adopted by
Most recently taken up by
- mgifford/accessibility-skillstheir own version, first seen Nov 12, 2026
- bex-co/bextheir own version, first seen Nov 10, 2026
- lulufoo/lulu-boardtheir own version, first seen Nov 8, 2026
- chrislacey89/skillstheir own version, first seen Nov 4, 2026
- puncsky/system-design-and-architecturetheir own version, first seen Nov 2, 2026
- lulufoo/lulu-drawertheir own version, first seen Nov 1, 2026
Used with
Projects with it also use ansible, plantuml and 6 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.
julweberSkillansible
Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.
Also in 3 projects that use this
xenodiumSkillplantuml
This skill should be used when the user invokes "/plantuml" to create a diagram from the current context using PlantUML and output the resulting image path.
Also in 3 projects that use this
ihiteshguptaSkillterraform
Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.
Also in 3 projects that use this
PostHogSkillkarpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. Based on https://github.com/multica-ai/andrej-karpathy-skills.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 4 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 4 projects that use this
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- puncsky/system-design-and-architecture★ 3.6ksame name
- alibaba/loongcollector★ 2.2ksame name
- chujianyun/skills★ 755same name
- bex-co/bex★ 578same name
- WH-2099/mermaid-skill★ 268same name
- xenodium/emacs-skills★ 142same name
- mgifford/accessibility-skills★ 61same name
- nilecui/SkillsBase★ 27same name
- greedychipmunk/agent-skills★ 24same name
- ulises-jeremias/agent-toolkit★ 20same name
35 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.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 42 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Do not force every idea into a flowchart.
- Distinctive: line 29
Use real labels from the task.
- Distinctive: line 31
Keep surrounding prose short and do not narrate what the diagram already makes obvious.
“Common” is measured: kept by at least 6 in 10 of the 42 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
Make the visualization part of the ordinary Markdown answer. Use a fenced mermaid block next to the short prose it clarifies; do not create a separate artifact unless the user asks for one.
Choose by meaning
- Process, branching, dependencies, data flow →
flowchart - Calls and interactions over time →
sequenceDiagramorzenuml - Domain structure or data model →
classDiagramorerDiagram - Lifecycle and transitions →
stateDiagram-v2 - Architecture →
C4Context,C4Container,architecture-beta, or a flowchart with boundaries - Roadmap and schedule →
timelineorgantt - Hierarchy and decomposition →
mindmap,treemap-beta, orblock-beta - Work and prioritization →
kanbanorquadrantChart - Quantitative comparison →
xychart,pie,radar-beta, orsankey-beta - Binary or protocol layout →
packet-beta
Do not force every idea into a flowchart. Pick the grammar whose semantics match the relationship.
Rules
- Show one useful idea per diagram. Split diagrams when crossings or density hide the point.
- Preserve truthful order, direction, cardinality, boundaries, units, and scale. Never invent data to make a chart look complete.
- Use real labels from the task. Add subgraphs, participants, states, series names, and notes only when they carry meaning.
- For charts, label units, choose an honest axis range, and name multiple series. Use color as reinforcement, not the only carrier of meaning.
- Keep surrounding prose short and do not narrate what the diagram already makes obvious.
- Renderer support varies for beta diagrams, C4, and ZenUML. Check the current syntax when uncertain and fail visibly rather than silently replacing the requested visualization with a weaker fallback.
- Mermaid is for compact inline explanation, not polished interactive charts, geographic maps, or spatial UI mockups.
bb IDE renderer: mandatory frontmatter
When the diagram renders in bb chat (any bb thread), always start the mermaid block with this frontmatter. Verified root causes, do not drop pieces of it: bb initializes mermaid with font Inter while the app renders Inter Variable, so HTML labels are measured narrower than they render and get clipped (htmlLabels: false makes measurement and render use the same SVG font); mermaid's own state-diagram styles hardcode opacity: 0.5 on edge-label plates, which only themeCSS can override (it is not in the strict-mode secure list).
---
config:
htmlLabels: false
flowchart:
htmlLabels: false
themeCSS: ".edgeLabel rect, .edgeLabel .label rect, .stateLabel .box { opacity: 1 !important; fill: #ffffff; }"
themeVariables:
edgeLabelBackground: "#ffffff"
labelBackgroundColor: "#ffffff"
---Notes: #ffffff assumes bb light theme. stateDiagram transition labels have no auto-wrap even in SVG mode — keep each label line short and break long labels with <br/>; there is no knob for explicit label-box size. Font-family overrides (Inter Variable etc.) do NOT fix the clipping — tested.
Examples
Process with boundaries:
flowchart LR
subgraph Client
U([User]) --> UI[Checkout]
end
subgraph Platform
UI --> API[Create order]
API --> V{Valid?}
V -- Yes --> P[Take payment]
V -- No --> E[Show errors]
end
P --> C([Confirmation])
E --> UIInteraction with alternatives:
sequenceDiagram
actor User
participant App
participant Auth
User->>App: Submit credentials
App->>Auth: Create session
alt Valid credentials
Auth-->>App: Access token
App-->>User: Open dashboard
else Invalid credentials
Auth-->>App: 401
App-->>User: Show error
endChart with named series and non-zero axes:
---
config:
themeVariables:
xyChart:
plotColorPalette: "#2563eb, #dc2626, #16a34a"
---
xychart
title "API latency under load"
x-axis "Requests per second" 200 --> 1200
y-axis "Latency, ms" 50 --> 700
line "p50" [85, 95, 115, 150, 205, 290]
line "p95" [145, 170, 220, 310, 455, 640]
line "SLO" [300, 300, 300, 300, 300, 300]Protocol layout:
packet-beta
0-3: "Version"
4-7: "IHL"
8-13: "DSCP"
14-15: "ECN"
16-31: "Total Length"
32-47: "Identification"
48-50: "Flags"
51-63: "Fragment Offset"Lifecycle with explicit transitions:
stateDiagram-v2
[*] --> Draft
Draft --> Review : submit
Review --> Draft : changes requested
Review --> Approved : approve
Approved --> Published : publish
Published --> Archived : retire
Archived --> [*]Relational data model:
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ ORDER_ITEM : contains
PRODUCT ||--o{ ORDER_ITEM : references
CUSTOMER {
uuid id PK
string email UK
}
ORDER {
uuid id PK
uuid customer_id FK
string status
}
ORDER_ITEM {
uuid order_id PK, FK
uuid product_id PK, FK
int quantity
}
PRODUCT {
uuid id PK
string name
}Schedule with dependencies and a milestone:
gantt
title Release plan
dateFormat YYYY-MM-DD
excludes weekends
section Discovery
Specification :done, spec, 2025-03-03, 3d
section Build
Backend API :crit, api, after spec, 5d
Web UI :ui, after spec, 7d
section Release
Launch :milestone, after ui, 0dHierarchy and decomposition:
mindmap
root((Product launch))
Product
Research
MVP
Go-to-market
Content
Sales
Operations
Support
ReliabilityPrioritization by two dimensions:
quadrantChart
title Feature priorities
x-axis Low effort --> High effort
y-axis Low impact --> High impact
quadrant-1 Strategic bets
quadrant-2 Quick wins
quadrant-3 Fill-ins
quadrant-4 Avoid
Better search: [0.25, 0.82]
Enterprise SSO: [0.55, 0.76]
New UI themes: [0.35, 0.28]
Custom chat: [0.82, 0.22]Work moving through stages:
kanban
backlog[Backlog]
task1[Define API contract]
task2[Prepare migration]
doing[In progress]
task3[Implement backend]
review[Review]
task4[Security review]
done[Done]
task5[Create dashboard]Part-to-whole comparison:
pie showData
title Infrastructure cost
"Compute" : 42
"Databases" : 24
"Network" : 14
"Storage" : 11
"Monitoring" : 9Architecture with explicit boundaries:
architecture-beta
group edge(cloud)[Edge]
group app(cloud)[Application]
service client(internet)[Client]
service gateway(server)[Gateway] in edge
service api(server)[API] in app
service db(database)[Database] in app
client:R --> L:gateway
gateway:R --> L:api
api:R --> L:dbDocumentation
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.

