/agent-skills:diagrammingfrom agent-skills
Draws architecture and flow diagrams as code using Mermaid, C4, sequence, ER, and state diagrams. Helps visualize systems, architectures, and processes with version-controlled, diffable diagrams.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
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:
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.
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.
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.
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
end
Useful 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.
Done when: the diagram lives in version control next to what it describes.
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.
fill: or color: in classDef or style lines. A fixed fill with a
theme-driven text colour produces black-on-navy or white-on-creamThe 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
60 skills in this plugin
/accessibility-reviewReviews an interface for barriers that stop people using it — keyboard operation, screen reader support, contrast, focus management, and form semantics. Use this whenever the user is building or reviewing UI, mentions accessibility, a11y, WCAG, screen readers, or keyboard navigation, and proactively when a change adds a modal, a custom control, a form, or anything interactive. For general code correctness, use code-review./agent-deploymentShips an agent to production — packaging, config and secrets, staged rollout, and the rollback plan — for a system whose failures are usually silent rather than loud. Use this whenever the user is deploying an agent or LLM feature, planning a rollout or canary, moving an agent from prototype to production, or asking how to release a prompt or model change safely. For monitoring it once live, use agent-observability./agent-designDesigns an agent's architecture — the tool surface, context strategy, control flow, and model choice — from a scoped set of jobs. Use this whenever the user is deciding how an agent should be built rather than what it should do — choosing tools, wiring up an agent loop, deciding single-agent vs multi-agent, picking a model, or planning what goes in the context window. Also use when an existing agent is unreliable and the cause looks structural rather than a prompt problem. For deciding what the agent is for, use agent-scoping first./agent-evaluationBuilds an eval set for an agent or LLM feature, writes graders, establishes a baseline, and reads the results honestly. Use this whenever the user wants to measure whether an agent works, asks if a prompt or model change was an improvement, mentions evals, LLM-as-judge, regression testing for AI, or is about to ship an agent on the strength of a few manual tries. Also use before any prompt or model change, since without a baseline no change can be judged./agent-hardeningMakes an agent safe to run with real permissions on real data — scoping what it can do, handling prompt injection, adding confirmation and dry-run for irreversible actions, and bounding cost. Use this whenever an agent is about to touch production, act autonomously, handle untrusted input, or use credentials, and whenever the user asks about agent safety, guardrails, permissions, or prompt injection. Also use when an agent has broad API access that nothing in code restricts./agent-implementationBuilds an agent from a design — the loop, the tools, the prompts, the schema validation, and the traces you will need later. Use this whenever the user is writing agent code — implementing tool calling, wiring an agent loop, building an MCP server or tool layer, writing system prompts for an agent, or turning a prototype agent into something maintainable. For deciding the architecture first, use agent-design; for measuring whether it works, use agent-evaluation.npx claudepluginhub arjunprabhulal/agent-skills --plugin agent-skillsOther plugins' skills for the same job