/diagram-skills:diagram-processfrom Diagram Skills
Explain and diagram how something happens - a workflow, request path, pipeline, approval process, incident runbook or object lifecycle - as a Mermaid flowchart (with swimlanes for who does what), sequence diagram (who calls whom, in what order, including the error path) or state diagram (the states something moves through). Every step is traced to the code, runbook or spec that defines it, and the diagram ships with a plain-English walkthrough at the reader's level. Use this skill whenever someone asks how a process, flow, request, job, deploy, checkout, login, retry or approval works, what happens when X, what order things run in, what states an order or ticket goes through, or wants a flowchart, sequence diagram, swimlane or state machine - even if they only say "walk me through it". For the static structure of a system use diagram-architecture; for decisions use diagram-decision; for data models use diagram-data.
Ships in Diagram 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.
Read when SKILL.md points to them.
Answers "what happens, in what order, and who does it?" Processes are where diagrams beat prose: order, branching and hand-offs are hard to hold in a paragraph. They are also where models drop the steps that matter. Error paths and activations are the weakest dimension in MermaidSeqBench, so this skill makes you look for them.
<engine> is ${CLAUDE_SKILL_DIR}/../diagram-review/scripts; shared rules
live in ${CLAUDE_SKILL_DIR}/../diagram-review/references/.
| The question is about | Form | Header |
|---|---|---|
| Steps, decisions and who owns each step | Flowchart, with one lane per owner | flowchart TD with a subgraph per lane |
| Messages between parts, in time order | Sequence | sequenceDiagram |
| The states one thing can be in, and what moves it | State machine | stateDiagram-v2 |
If the question has two of these, draw two diagrams. A beginner gets one: the
flowchart, in plain words. Set the level as in levels.md.
file#symbol for each step: you will
cite it.lore query "<process>" --limit 5, then
lore read <id>. Each numbered step is a node.Flowchart (BPMN-lite): a start and an end as stadiums (["..."]),
steps as boxes, decisions as diamonds {"..."} with a labelled edge per
outcome, and one subgraph lane per owner. Hand-offs between lanes are
the edges worth labelling.
Sequence: declare participants in the order they first act. Use ->>
for a call and -->> for a reply. Show the error path with
alt / else / end. Write a semicolon as #59;.
State: [*] for start and end. Every transition is a --> b : event;
a line without --> silently becomes two unrelated states.
Quote every flowchart label. Give every node, participant or state a
%% ref to the code or doc that defines it (truth.md). Start from a
template in mermaid-profile.md, section 3.
Run the three checks in checks.md on a scratch .md with the lead
sentence, the diagram and the explanation. Repair from the error lines.
Lead with the one-line answer ("A refund waits for the warehouse to confirm
the return"). Walk the diagram in the order things happen. Name the branch
that fails and what the user sees then. Say who acts at each hand-off. Keep
to the reader's level: a beginner gets "the payment step checks the card
with the bank", an advanced reader gets charge() and the timeout value.
A lifecycle or workflow that will stay true belongs in its Spec or Runbook
(persisting.md). Name the Quest task it serves, and run lore check.
From ${CLAUDE_SKILL_DIR}/../diagram-review/references/:
mermaid-profile.md: templates for flowchart, sequence and state; parse traps.levels.md: caps and explanation patterns per reader.truth.md: citing each step with %% ref; the prose-agreement checklist.accessibility.md: accTitle/accDescr, legends, palette.checks.md: the parse, lint and truth loop.persisting.md: where process diagrams live in lore.In this skill: examples/ holds a worked lifecycle from a real repository.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/diagram-architectureExplain and diagram a software system's architecture as C4 views - system context, containers, components - drawn from the actual repository, manifests, compose files and lore docs, never from a generic template. Produces a Mermaid diagram plus a plain-English explanation pitched to the reader (beginner, intermediate or advanced), with every box traced to a real path. Use this skill whenever someone asks how a system or repo is structured, what talks to what, for an architecture overview or C4 diagram, to onboard someone to a codebase, to document services for an arc42 or lore reference doc, or says "draw the architecture", "show me the big picture" or "what are the moving parts" - even if they never say C4 or diagram. For step-by-step flows or lifecycles use diagram-process; for database tables use diagram-data; for task plans use diagram-plan./diagram-dataExplain and diagram the shape of an application's data - tables, entities, keys and the relationships between them - as a Mermaid ER or class diagram generated or traced from the real schema (SQL migrations and DDL, Prisma, Django, SQLAlchemy, ActiveRecord or TypeScript models), with cardinality read from the schema rather than guessed, and a plain-English explanation at the reader's level. Use this skill whenever someone asks what the data model or database schema looks like, how tables or entities relate, what an order or user record holds, for an ER diagram, entity-relationship or schema diagram, a class diagram of domain models, or wants to document the data layer for onboarding or a spec - even if they only say "what do we store". For services and infrastructure use diagram-architecture; for how records change state use diagram-process.Other plugins' skills for the same job
diagram-skills@opum is listed by opum-ai/opum-marketplace — review the source before installing
npx claudepluginhub opum-ai/opum-marketplace --plugin diagram-skills