From a question to a document

document-design-system is a plugin for Claude Code. A plugin adds commands to it; this one adds commands for writing documents: decision papers, runbooks, postmortems, status reports and thirty more kinds.

You say who will read the document and what they need to decide or do. The plugin picks the document's shape, writes it from facts that can be checked, and, if you want a designed page, gives it a voice that suits the audience.

  1. You typeA command or a sentence"Write the cutover plan for RFC 014."
  2. It choosesA shape and a voiceThe reader's question picks the first, the audience picks the second.
  3. You getA document in your repositoryMarkdown by default; designed HTML or PDF when you ask.

What you type

There are two ways in, and they end in the same place. Neither needs you to know the vocabulary on this page.

A command

One command per kind of document, named for it. Use compose when no kind fits.

/document-design-system:runbook
/document-design-system:postmortem
/document-design-system:compose

Thirty-four commands, one per preset, plus compose. The common names such as HLD, PRD or RAID route to the right one.

What happens to a request

Seven steps, in this order. The only step that depends on you is the first; the choice that matters most is the third, and it comes from the reader's question.

How a request becomes a document A request splits two ways: it matches a type and uses that preset, or no type fits and the plugin composes from a pattern. Both routes meet at the pattern and its opening, the choice the reader's question makes and the only accented step. The flow then continues to modules, then to theme and voice for HTML or PDF, then to checks, and ends as a document in the repository. Underneath the pattern, modules and theme, evidence states mark every claim as verified, provided, inferred, unresolved or recommended. 1 2 2 3 4 5 7 6 a document in your repository Your request in plain words A type fits use that preset No type fits compose from a pattern Pattern, opening the reader's question Modules only those it allows Theme, voice HTML or PDF only Checks fail the build Evidence states label every claim verified · provided · inferred · unresolved · recommended Read left to right. The accent marks the one choice the reader's question makes; every other step follows from it.
  1. Step 1: Your request

    You name a document, a reader or a question, as a command or in plain words. Nothing else is needed: no template to fill in and no vocabulary to learn.

    The two ways to ask

  2. Step 2: A type fits, or it is composed

    If the request matches a type, or one of its familiar names such as HLD or PRD, that type is used. If nothing fits, the plugin composes: it picks the pattern from the reader's question and borrows the nearest type's section discipline. A one-off request never adds a type.

    Find your question on the Patterns page

  3. Step 3: Pattern and opening

    The pattern fixes the reading order: where the answer sits, what repeats and what the reader does last. Each pattern also owns its opening, so the first screen suits the reader.

    In the examples. A runbook opens on a precondition checklist; a postmortem opens on a severity band with the impact numbers.

    Four openings side by side

  4. Step 4: Modules

    Reusable parts such as an ask band, a timeline or a checkpoint. A pattern may use only the modules its entry in the registry allows, so a runbook cannot grow a decision rail.

    All seventy-eight modules, each with a specimen

  5. Step 5: Theme and voice

    Only for designed HTML or PDF. The audience picks a theme, which sets type, colour and density through tokens. Changing the theme never moves a section.

    One proposal in three voices

  6. Step 6: Evidence states

    Every claim a reader might not be able to check carries one of five states. A missing fact stays unresolved; it is never filled in.

    The five states

  7. Step 7: Checks

    The examples in this repository are built under checks that fail on a problem: twenty-one geometry and markup rules on every figure, contrast for every text pair in each of eight themes, and every page rendered at 1280px, 390px and in print to catch clipping.

    The ledger of checks

Every claim says how sure it is

A document is only as good as the facts under it. The plugin marks each claim a reader might not be able to check with one of five evidence states, and a fact it does not have stays an open question instead of becoming a guess.

  • VerifiedState as fact, cite a repo-relative path.
  • ProvidedAttribute to the stakeholder; cannot prove runtime.
  • InferredLabel it and list supporting evidence.
  • UnresolvedOpen questions; do not pick an answer.

Two choices, kept apart

A document's shape and its voice are decided separately. Change one and the other stays put, which is why a postmortem can be re-skinned without moving a section, and why two documents with the same look can still read in different orders.

Axis twoTheme

One proposal, written once, in three voices. The sections, the order and the facts are identical; type, colour and density are not. The third is a client's own brand, turned into a theme.

A third, smaller switch is width. A designed page uses its pattern's reading column unless you ask for a full-width page; then maps, tables and figures use the whole screen while prose keeps its comfortable line length. It changes neither the pattern nor the theme, and the wide architecture page is the same document as the architecture page.

Six words, plainly

These are the only terms you need. Each links to a page that shows the thing itself.

Pattern data-pattern
The reading order of a document: where the answer sits, what repeats and what the reader does last. There are eleven, and each owns its opening. See the patterns.
Preset also called a type
A ready-made kind of document inside a pattern, such as a runbook or a decision record, with its own command and sections. There are thirty-four. See the presets and their common names.
Module
A reusable part of a page, such as an ask band, a timeline or a checkpoint. A pattern may use only the modules it allows. There are seventy-eight. See every module.
Theme data-theme
A document's voice: type, colour and density, set through tokens and chosen by audience. It never changes the order of the sections. Compare the themes.
Evidence state
A label on a claim that says how sure it is: verified, provided, inferred, unresolved or recommended. See the five states.
Compose
To build a document straight from a pattern when no preset fits. The question picks the pattern, and only that pattern's modules are used. See a composed document.

Install it

You need Claude Code. Inside it, add the catalog and install the plugin; the name appears twice because the @ reads "from".

/plugin marketplace add Avinava/document-design-system
/plugin install document-design-system@document-design-system

Then type one of the commands above, or just describe the document you need. Prefer plain skills without the plugin system? Each of the six skills installs on its own with npx skills add Avinava/document-design-system.

Where to go next