/crew:diagram <architecture | data-flow <area> | process <name> | sequence <flow> | refresh>from crew
Create or refresh diagrams from the actual code
Ships in crew. Installing the plugin adds it to Claude Code.
Diagram: $ARGUMENTS
crew:explorer to establish what is actually true. Never diagram from
the code map alone — check its anchors against HEAD first. A diagram inherits
the staleness of whatever it was drawn from.crew-diagrams skill. Ask me if the request is
ambiguous — "architecture diagram" means components to some people and
deployment topology to others, and drawing the wrong one wastes both our time.docs/diagrams/<name>.mmd, with the provenance
comment and anchor list at the top.
Add a %% Purpose: line: what a reader learns from the diagram, in a sentence.bash ${CLAUDE_PLUGIN_ROOT}/skills/crew-diagrams/scripts/render.sh docs/diagrams.
Beside each SVG it writes out/<name>.svg.src, the sha256 of its .mmd.python3 ${CLAUDE_PLUGIN_ROOT}/skills/crew-diagrams/scripts/diagram_check.py docs/diagrams/out.
A FAIL is not done: redraw (a loop back gets its own end box; over 15 boxes
splits along its subgraphs) and check again. If mmdc is not installed,
nothing was measured: say NOT VERIFIED and give me the install line.python3 ${CLAUDE_PLUGIN_ROOT}/skills/crew-diagrams/scripts/diagram_doc.py --dir docs/diagrams --write
writes docs/diagrams/README.md and index.html with every diagram embedded.
A stale .src hash shows "render out of date"; no .src says "(freshness by mtime only)".
Then python3 ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/crew_diagrams.py embed --root . writes
each diagram into the README nearest its %% Anchors: (%% Embed: <README> | none overrides).With refresh: for each existing .mmd, diff its anchor files against HEAD.
Re-verify and update only the ones whose anchors moved, then re-run embed. Report which
diagrams you left alone and which you could not verify.
If I ask for Visio, follow the Visio section of crew-diagrams — detect first,
and if it is absent offer the three alternatives rather than producing something
that is not a Visio file.
Anything you could not confirm from code goes in the diagram as a dashed edge
with a ? label, not as a confident solid line. A diagram that quietly guesses
is worse than one that admits a gap.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub mbadali25/useful-claude-add-ons --plugin crew40 commands in this plugin
/approveApprove a ticket's plan - only you can, by typing this; the prompt hook records the receipt/autopilot0. RouteReport a ticket (status), drive it until a human is needed (run), or run an approved set as parallel lanes (wave)/brainstorm1. Mint the ticketBrainstorm a request into an approved direction, before it becomes a specOther plugins' commands for the same job