/tools:diagramfrom tools
Draw, edit, and review diagrams using Mermaid for flowcharts/sequences/architecture and Excalidraw for mind maps/sketches. Covers layout routing, SVG/PNG rendering, visual QA, and PKB sync.
Ships in tools. 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.
Mermaid and Excalidraw diagramming standards, layout routing, and visual invariants.
Identify the chart's core objective (the action or decision it enables) and reader context before drawing.
| Reader question | Layout family | Guidance |
|---|---|---|
| "What do I do next?" | Containment + state | Group by navigation paths; emphasize active items. |
| "How does this work?" | Flow / sequence | Directional arrows; default to Mermaid. |
| "Where does this fit?" | Containment / nesting | Boundary nesting up to ~3 levels deep. |
| "How do these compare?" | Matrix / grid | Uniform grid with comparable cells. |
| "What changed / is off?" | Anomaly / comparison | Highlight outliers without data smoothing. |
| "When does this happen?" | Timeline | Position strictly encodes chronological time. |
| "What is central here?" | Radial / hub | Focal node centered with balanced spokes. |
LR (TD only for wide fan-outs; direction TB inside subgraphs). Link subgraph to subgraph rather than internal nodes to external nodes.layout: elk, mergeEdges: true, nodePlacementStrategy: SIMPLE). Group 10+ steps into numbered phases (① ② ③) colored start (green) -> work (gold) -> end (gray).Before editing or validating .excalidraw JSON, read references/excalidraw-reference.md.
pkb-excalidraw first: Prefer pkb-excalidraw over raw JSON edits because mutations refuse to save invalid files. When updating an existing canvas, edit in place (move-elem, set-text/fit, update, delete-elem) to preserve every id for pkb excalidraw diff/sync; never draw a parallel duplicate system alongside old elements.pkb.create, pass the canvas's PKB-relative path as source (or set parent to a node in that directory).Render every finished canvas and inspect the rendered image directly when visual verification is part of the workflow or task:
pkb-excalidraw FILE screenshot --out <path>.svg --format svg
# Or when PNG is required: pkb-excalidraw FILE screenshot --out <path>.png --format png
pkb-excalidraw is missing or fails, halt and report verbatim -- never substitute ad-hoc SVG or canvas scripts. If --format png falls back to SVG because no system rasterizer (resvg, rsvg-convert, magick) is on PATH, inspect the SVG fallback unless PNG was explicitly required (then halt).libraries/banners.excalidrawlib (opens in a new tab)libraries/calendar.excalidrawlib (opens in a new tab)libraries/clouds.excalidrawlib (opens in a new tab)libraries/data-processing.excalidrawlib (opens in a new tab)libraries/flow-chart-symbols.excalidrawlib (opens in a new tab)libraries/mathematical-symbols.excalidrawlib (opens in a new tab)libraries/organization-chart.excalidrawlib (opens in a new tab)libraries/simple-sticky-notes.excalidrawlib (opens in a new tab)libraries/stick-figures-collaboration.excalidrawlib (opens in a new tab)libraries/stick-figures.excalidrawlib (opens in a new tab)references/excalidraw-reference.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
15 skills in this plugin
/analystRun academic research data analysis reproducibly -- research data immutability, canonical absolute path resolution, source-derived parity checks, transformation vs presentation layer separation, and defensible statistical methodology. Use for empirical research pipelines, modifying models/marts, data-quality testing, or result documentation. Engine details in dbt, streamlit, and python-viz skills./argument-auditFormally audit and stress-test a scholarly, legal, policy, or qualitative argument using Chained Toulmin Argdown -- identifying logical gaps, hidden assumptions, overclaiming (scope and construct drift), methodological mismatches, and under-explored rival explanations at a controlled granularity floor. Use for "audit this argument", "check if this argument holds up", "find the gaps in this chapter/thesis", "evaluate argument strength", or "what assumptions are missing". Not for reconstruction alone (use argument-extraction), for a readable map page with open issues (use argument-map), or for agent handback reports (use premise-check)./argument-extractionExtract and reconstruct the argument a text or draft makes -- main conclusion, chained premises, warrants, and evidence traceability -- and emit it as parser-valid Chained Toulmin Argdown at a controlled level of granularity. Use for "extract the argument", "map the argument", "reconstruct the reasoning", "argdown this". Not for evaluating the argument (use argument-audit), for a readable map with gaps tagged (use argument-map), or for agent handback reports (use premise-check).npx claudepluginhub nicsuzor/academicops --plugin tools