/diagram-skills:diagram-decisionfrom Diagram Skills
Explain and diagram a technical decision - the question, the options considered, the trade-off of each and the path chosen - for an architecture decision record (ADR), a Quest decision (DEC-N) or a design discussion, plus how decisions relate over time (supersedes, requires). Reads the real ADR and Quest decision, so the chosen path in the picture always matches the record, and pairs the diagram with a plain-English explanation at the reader's level. Use this skill whenever someone asks to visualise or explain an ADR or design decision, compare options with a diagram, show why we chose X over Y, write up a decision for stakeholders, show which decisions superseded which, or add a diagram to an ADR - even if they just say "make the trade-off clear". For the system the decision is about use diagram-architecture; for task plans use diagram-plan.
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 did we decide, against which options, and why?" A decision diagram earns its place when a reader must see the alternatives side by side and see which branch was taken. The record is the authority. The diagram draws the ADR's options and its Decision exactly, and the checks fail if it marks a different path as chosen.
<engine> is ${CLAUDE_SKILL_DIR}/../diagram-review/scripts; shared rules
live in ${CLAUDE_SKILL_DIR}/../diagram-review/references/.
lore query "<decision topic>" --type ADR --limit 5
lore read adr/<id>
quest decision list --json # or: quest decision view DEC-N --json
Take the options from the ADR's Context (or MADR's Considered Options), the
outcome from its Decision section, and the status from its Status section.
A Quest decision gives title, context, outcome and status
(proposed, accepted or superseded). An ADR that mirrors a Quest decision
carries a dec-N tag. If the ADR and the Quest decision disagree, report
the disagreement; do not draw either side.
If there is no record yet, as in a live design discussion, draw from what
the user stated. Mark the decision proposed, and offer to record it
(lore new adr, quest decision create).
| The reader needs | Form |
|---|---|
| The options and the chosen one, with trade-offs | Options view: flowchart TD, question → options → outcome |
| A choice that depends on conditions | Decision tree: flowchart TD with diamond conditions |
| How decisions replaced or depend on each other | History view: flowchart LR of ADRs with supersedes and requires edges, from lore graph --json |
flowchart TD
accTitle: Diagram notation decision
accDescr: We needed one notation for diagrams; Mermaid was chosen over D2 because GitHub renders it natively.
%% level: intermediate
q{"Which diagram notation?"}
a["Mermaid in Markdown (chosen)<br/>renders on GitHub; weaker C4"]
b["D2 with committed renders (rejected)<br/>better layout; renders nowhere natively"]
q -- "option A" --> a
q -- "option B" --> b
classDef chosen fill:#e6f4ea,stroke:#1e6b34,stroke-width:3px,color:#111111
classDef rejected fill:#ffffff,stroke:#8a1c1c,stroke-dasharray:2 2,color:#111111
class a chosen
class b rejected
%% ref q = quest:DEC-1
%% ref a = lore:adr/0001-use-mermaid-in-markdown-as-the-diagram-notation
%% ref b = lore:adr/0001-use-mermaid-in-markdown-as-the-diagram-notation
Run the three checks in checks.md. Then confirm by reading: the node
marked chosen is the option the ADR's Decision section names, and the status
in the prose matches the ADR's Status. This is the one error this skill
exists to prevent.
Lead with the decision in one sentence, then why, in one or two. After the diagram, give each option's trade-off in plain words and what the choice costs us. A beginner gets "we picked the one GitHub shows without extra work"; an advanced reader gets the version pin and what would reopen it.
A decision diagram belongs inside its ADR, under Context or Decision
(persisting.md). Keep the ADR's required sections intact. Run lore check.
From ${CLAUDE_SKILL_DIR}/../diagram-review/references/:
accessibility.md: the chosen and rejected classes; legends.levels.md: caps and explanation patterns per reader.truth.md: quest: and lore: refs; the prose-agreement checklist.mermaid-profile.md: parse traps (quote every label).checks.md: the parse, lint and truth loop.persisting.md: diagrams inside ADRs; dec-N tags.In this skill: examples/ holds a worked options view of a real ADR.
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