diagramming
Skill4 starsChanged 4 months agoMITView on GitHub
Draws architecture and flow diagrams as code — Mermaid, C4, sequence, ER, and state diagrams that stay in version control and do not go stale. Use this whenever the user asks for a diagram, wants to visualise an architecture or flow, mentions Mermaid or C4, or is explaining a system that would be clearer drawn. For the prose around the diagram, use markdown-docs; for charts of quantitative data, use the dataviz guidance.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- ArvindChander/skill-labtheir own version, first seen Jul 27, 2026
- CtriXin/diagramming-skilltheir own version, first seen Mar 28, 2026
- tEhThing/claude-skills-diagrammingtheir own version, first seen Dec 8, 2025
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- CtriXin/diagramming-skill★ 4same name
- tEhThing/claude-skills-diagramming★ 2same name
- ArvindChander/skill-lab★ 1same name
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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 49
Done when: every box on the diagram is the same kind of thing.
- Distinctive: line 55
When you exceed it: split into several diagrams at different levels, collapse a group into one labelled box, or cut everything not needed …
- Distinctive: line 70
Done when: every arrow says what crosses it.
- Distinctive: line 133
Where emphasis matters, use shape or line style: instead: a different node shape, a dashed edge, a subgraph boundary.
- Distinctive: line 143
Add a one-line text summary beneath any non-trivial diagram — it serves screen readers, it appears where Mermaid does not render, and …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagramming
A diagram earns its place by answering one question faster than a paragraph could. A diagram showing everything answers nothing — it is the visual equivalent of a page with no headings.
Draw diagrams as code. A Mermaid block in the repository is diffable, reviewable, and edited by whoever changes the system. An exported PNG from someone's laptop is wrong within a month and nobody can fix it.
1. Decide the question, then pick the type
Match the diagram to what the reader is asking:
| Reader's question | Diagram |
| What are the pieces and how do they connect? | Component / C4 container |
| What happens, in what order, between whom? | Sequence |
| What states can this be in, and what moves it? | State |
| How is the data shaped and related? | ER |
| What are the steps and decisions? | Flowchart |
| Who depends on whom for deployment? | Deployment |
Choosing wrong is the most common failure. Component diagrams are drawn for questions that are really about ordering, and a sequence diagram would have answered them in half the space.
Done when: you can state the one question this diagram answers.
2. Pick one level of abstraction and stay there
Mixing levels is what makes diagrams unreadable — a box for "Payments" next to a box for "validate_card()" gives the reader no consistent scale to reason at.
The C4 levels are a useful discipline even without adopting the notation:
- Context — your system and the people and systems around it. One box for you
- Container — the deployable pieces: services, databases, queues, front ends
- Component — inside one container
- Code, usually better generated than drawn
Most useful diagrams are level 1 or 2. Level 3 dates fast; level 4 almost never earns its maintenance.
Done when: every box on the diagram is the same kind of thing.
3. Keep it under about nine boxes
Past roughly nine elements, a reader stops seeing structure and starts tracing lines.
When you exceed it: split into several diagrams at different levels, collapse a group into one labelled box, or cut everything not needed for this diagram's question. Splitting is almost always better than shrinking the font.
Done when: the structure is visible without tracing.
4. Label the arrows
An unlabelled arrow is the most common defect in architecture diagrams. It could mean HTTP, async event, dependency, or data flow, the reader cannot tell.
Label with what and how: "POST /charge (sync)", "OrderPlaced → Kafka", "reads replica". Direction should mean one thing consistently across the diagram, usually the direction of the request, not the data.
Done when: every arrow says what crosses it.
5. Write it in Mermaid
Renders natively in GitHub, GitLab, and many docs tools, so it lives next to the code.
flowchart LR
User([Customer]) --> CDN[CDN]
CDN --> API[API Gateway]
API -->|POST /orders| Orders[Order Service]
Orders -->|writes| DB[(Postgres)]
Orders -->|OrderPlaced| Bus[[Event Bus]]
Bus --> Email[Email Service]
Orders -.->|sync, 2s timeout| Pay{{Payment Provider}}sequenceDiagram
autonumber
participant C as Client
participant A as API
participant P as Payment Provider
C->>A: POST /orders
A->>P: charge()
alt charge succeeds
P-->>A: 200 authorised
A-->>C: 201 Created
else timeout
P--xA: no response (2s)
A-->>C: 202 Accepted, pending
Note over A: reconciled by the retry job
endUseful conventions: [(...)] for datastores, [[...]] for queues, {{...}} for external
systems, dashed arrows for async or unreliable calls, and alt/else in sequence diagrams for
the failure path.
The failure path is the part worth drawing. Everyone can imagine the happy path; the diagram earns its keep by showing what happens on timeout.
Done when: the diagram renders and shows at least one failure case.
6. Keep it from going stale
- Store it beside the code it describes, not in a wiki
- One diagram per question, so a change touches one file
- Date architecture diagrams, or reference the version they describe
- Review it when the system changes: a diagram is documentation and rots the same way
- Delete diagrams you no longer maintain. A confidently wrong diagram is worse than none, because it is believed and it is fast to read
Done when: the diagram lives in version control next to what it describes.
Don't set colours
The most common way a Mermaid diagram looks wrong is hand-set fills. A pastel fill chosen against a white editor becomes unreadable on a dark background, and readers pick the theme, not you.
- Leave the default theme alone. It is already adjusted for both light and dark rendering
- Never hardcode
fill:orcolor:inclassDeforstylelines. A fixed fill with a theme-driven text colour produces black-on-navy or white-on-cream - Where emphasis matters, use shape or line style instead: a different node shape, a dashed edge, a subgraph boundary. Those survive every theme
- If you must use colour, set foreground and background together so contrast is fixed, and check both themes before committing
The same applies to the diagram's size. A wide flowchart LR gets scaled down to fit the page
and the labels become unreadable; flowchart TD usually survives narrow columns better.
Accessibility and rendering
Add a one-line text summary beneath any non-trivial diagram — it serves screen readers, it appears where Mermaid does not render, and writing it is a good test of whether the diagram has a clear point. If you cannot summarise it in a sentence, it is probably answering more than one question.
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.

