NetFabric/NetFabric.Numerics / .agents/skills/mermaid-diagrams
mermaid-diagrams
VerifiedAuthor Mermaid diagrams inside ```mermaid fenced code blocks in markdown files (README, AGENTS.md, PR descriptions, chat responses). Covers every stable, non-experimental diagram type: flowchart, sequence, class, state, entity relationship, user journey, Gantt, pie, quadrant, requirement, gitGraph, block, packet, kanban, XY chart, event modeling. Use when: picking a diagram type; writing correct fence syntax; documenting architecture, processes, timelines, schemas, or data relationships compactly for humans and agents alike, since a diagram conveys structure in far fewer tokens than prose. DO NOT USE FOR: the Mermaid Live Editor or mermaid.ai chat (fence syntax only); experimental or beta diagrams (swimlanes, mindmap, timeline, sankey, architecture, radar, treemap, venn, ishikawa, wardley, cynefin, treeView, ZenUML, C4); general Markdown formatting (use markdown-best-practices).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| references/charts-and-comparison.md | markdown | 2.5 KB |
| references/planning-and-tracking.md | markdown | 2.5 KB |
| references/process-and-time.md | markdown | 2.9 KB |
| references/structure-and-data.md | markdown | 3.8 KB |
references/charts-and-comparison.md
View on GitHub# Charts and Comparison Diagrams
Pie, Quadrant, XY Chart, and Packet diagrams visualize numeric data, prioritization, or binary layout rather than process or structure.
## Pie Chart
**When to use:** proportions of a whole across a small number of categories.
````markdown
```mermaid
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
```
````
Each line is `"label" : value` (value must be a positive number; slices are ordered clockwise as listed). Optional `showData` (after `pie`) prints the raw value next to each legend entry. Set `donutHole` via config to render as a donut instead of a full pie.
## Quadrant Chart
**When to use:** plotting items across two axes to prioritize or categorize them — e.g. an Eisenhower urgent/important matrix, or a reach-vs-engagement chart.
````markdown
```mermaid
quadrantChart
title Reach and engagement of campaigns
x-axis Low Reach --> High Reach
y-axis Low Engagement --> High Engagement
quadrant-1 We should expand
quadrant-2 Need to promote
quadrant-3 Re-evaluate
quadrant-4 May be improved
Campaign A: [0.3, 0.6]
```
````
`x-axis`/`y-axis` set axis labels (left/right, bottom/top); `quadrant-1..4` label each quadrant (1 = top-right, going counter-clockwise). Each point is `Name: [x, y]` with `x`/`y` in `0`–`1`.
## XY Chart
**When to use:** plotting numeric bar and/or line series across two axes — the general-purpose bar/line chart when pie/quadrant don't fit.
````markdown
```mermaid
xychart
title "Sales Revenue"
x-axis [jan, feb, mar, apr]
y-axis "Revenue" 4000 --> 11000
bar [5000, 6000, 7500, 8200]
line [5000, 6000, 7500, 8200]
```
````
`x-axis` takes either a category list `[a, b, c]` or a numeric range `title min --> max`. `y-axis title min --> max` sets the numeric range (auto-computed from data if omitted). `bar [...]` and `line [...]` each take a numeric array; add `xychart horizontal` (before other statements) to flip orientation.
## Packet Diagram
**When to use:** the byte/bit layout of a network packet, file header, or any binary format — useful for protocol or wire-format documentation.
````markdown
```mermaid
---
title: "TCP Packet"
---
packet
0-15: "Source Port"
16-31: "Destination Port"
32-63: "Sequence Number"
```
````
Each line is `<start>-<end>: "label"` (bit positions, inclusive) or `+<count>: "label"` to auto-advance from the previous field's end by `<count>` bits — mixing both forms in the same diagram is fine.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |