/docflow:new-adrfrom docflow
Authors a new Architecture Decision Record (ADR) in a documentation-led repo. Picks the next number, selects capability vs technology shape, fills the template, sets status Proposed, regenerates INDEX, updates domain READMEs, handles supersede/deprecate linkage, and commits.
Ships in docflow. 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.
Author one new ADR, consistent with this repo's conventions.
AGENTS.md, CONVENTIONS.md, and
an adr/ directory with at least adr/0000-template.md must exist.
If not, stop and offer to run the bootstrap skill first.CONVENTIONS.md to learn this repo's choices: the ADR shape
scheme — a single shape, or two shapes (capability and technology)
declared by a shape: field in each ADR's metadata block; there is
no number boundary to read — status lifecycle, language mandate (if
any), whether domains/ groupings exist (and, if so, which domain this ADR belongs to — ask if
it isn't obvious), the multi-agent mode, and the artefact root
(default: repository root) — resolve adr/ and INDEX.md against it
(AGENTS.md/CLAUDE.md stay at the repo root).
Legacy range encoding. A repo scaffolded before the shape became
a declared field encodes it in the number instead — §ADR Shapes
records a cutoff, or adr/ holds a template numbered other than
0000 (e.g. adr/0100-template.md); either signal alone identifies
it. Say so, and offer the migration onto the declared field (the
audit skill carries the procedure) before authoring. If the
operator declines, author under the repo's own rules: read the cutoff
and place this ADR on its side of it — capability below, technology
at or above, next contiguous within that block — using the
boundary-numbered template for a technology ADR, and write no
shape: field, which that repo does not use. If the block this ADR
belongs to has reached the cutoff, stop and say so: the range is full,
and the remedy is the migration, never crossing the boundary.INDEX.md and ls adr/ to learn existing numbers and titles.
Ignore every adr/0000-*.md file — the templates are not decisions
and hold no number in the sequence. Under the legacy range encoding,
ignore the boundary-numbered template the same way: it is a template,
not the first technology ADR.federation.md exists, this repo is part of a multi-repo
product. Note the identity scheme and the home it records —
they govern numbering and cross-repo references below.Run the shared assessment protocol before authoring:
Reuse supplied answers first. Treat applicable choices already supplied in the request or this session, including depth, as answered. Summarise them without asking again; defaults never replace explicit choices. If every material choice is supplied, proceed. Ask only about a material missing or conflicting choice. A repository preference alone is not a current answer or execution grant.
Depth selector for unresolved choices. If depth is not supplied and
choices remain, ask how deep this assessment should go:
express — every choice takes its recommended default; only
questions with no derivable default (the free-text essentials) are
still asked; guided — only the questions marked high-impact
below, plus the free-text essentials; full — every question
below. If the repo's CONVENTIONS.md records an Assessment depth:,
pre-select it as the recommended option when asking; a recorded depth
is never applied silently. Otherwise
recommend full when the request arrived with little or no
context and express when it is already fully specified. At any
question the operator may answer "defaults from here" or "go
deeper"; honour the switch immediately.
Ask the questions below one at a time, each with a recommended option and a one-line reason; wait for each answer.
Use structured selection (single- or multiple-choice). If the host exposes a structured single-/multi-select question tool, use it and mark the recommended option; otherwise list options A/B/C in plain text and name the recommended one. Use free text only where an enumerable set is impossible (e.g. the title).
The operator decides. Never proceed past a question without an answer, and never guess scope when invoked with no context.
Questions (skip any the request already answers):
shape: field. Recommended: per the
request's intent.Implemented, Revision History
citing the implementing commits and noting it was recorded after the
fact, and write a matching plan/done entry.adr/0000-template.md and write no shape: field. If it declares two
shapes, ask capability or technology — decide from the user's
intent (what the system must do → capability; how it is built →
technology) and confirm with the user if ambiguous. Then use the
matching template — adr/0000-template.md for capability,
adr/0000-template-technology.md for technology — and write the
chosen value into the ADR's shape: field. Both templates are
numbered 0000 and are never themselves catalogue entries.
Legacy range encoding (migration declined): the repo has two shapes
but declares neither. Still ask which one, then take the template from
the repo's own scheme — adr/0000-template.md for capability, the
boundary-numbered template for technology — and write no
shape: field. Introducing the field on one ADR would leave the
catalogue with two rival encodings, which is the state neither rule
set describes.0000- template counts towards it.
Legacy range encoding: the number is instead the next contiguous one
within this ADR's block, per Step 0 item 2.
In a federation (a federation.md exists), number contiguously
within this repo — numbers are not unique across the federation.
The ADR's federation identity is the recorded scheme applied to this
number (default repo-prefixed slug <repo-id>/NNNN-slug).Ask for the pieces the chosen template needs, one prompt at a time:
Honour the language mandate if one is set.
If this ADR replaces an existing one:
supersedes: on the new ADR and superseded-by: on the old.status: to Superseded, append a Revision
History row noting the successor.adr/NNNN-*.md). In a
federation, a link to an ADR in another repo uses the logical
identity (<repo-id>/NNNN-slug), resolved via the member index along
repo-id → Pointer → adr/NNNN-*.md — not a relative path.Deprecated
with a Revision History row — and is usually done directly, not via
this skill.Proposed,
today's date, owner = current agent/human. In a two-shape repo, set
shape: to the shape chosen in Step 1; in a single-shape repo — and
in a legacy range-encoded one, where the number carries the shape —
omit the field entirely.r1 — Initial draft row. Leave the
Approvals table empty (it populates on Accepted).INDEX.md from ADR metadata, retaining every existing decision
row. Link each row's number or title to its actual ADR file relative to
INDEX; verify every destination exists and its title, status and date
agree with the row. In a two-shape repo the table
carries a Shape column, filled from each ADR's shape: field (an
absent field renders as capability); a single-shape repo has none,
and neither does a legacy range-encoded one — its shape is read from
the range, so adding the column would encode it twice. Neither 0000-
template is a catalogue entry, so neither appears; under the legacy
encoding the boundary-numbered template is excluded the same way.domains/ exists, add the ADR to the owning domain's README.md
ADR list. If you assign the ADR to a domain that doesn't exist yet, offer
to create domains/<slug>/README.md (at the recorded artefact root) and
add the ADR to it — this enables the domains layer._agent/LOCKS.md before editing, remove the row on commit. In
separate worktrees there is no ledger — your branch is the claim.Conventional Commit, Rationale: footer (this touches an ADR). No
Co-Authored-By trailer unless the repo's Git contract requires one.
A new ADR is Proposed, not actionable yet. Offer to:
Accepted (populate Approvals, change status, regen INDEX)
when the user is ready; andplan/todo/ item for it (hand off to the new-plan skill).Name the authored decision, status, numbering and INDEX result; do not imply implementation.
End every run, including blocked, failed and stopped runs, with a section headed exactly Status at a glance, containing these three labels:
Routine progress messages need no block. Keep final results brief and distinguish work prepared on a PR from work confirmed shipped.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub evolvehq/docflow --plugin docflow14 skills in this plugin
/add-conventionAssess and add a CONVENTION (a reusable rule, practice, or naming/process standard) to a documentation-led repo — decides FIRST whether it is worth codifying at all, then routes it to the right home (AGENTS.md hard rule, CONVENTIONS.md guidance, GLOSSARY term, or to /new-adr if it is really a one-off decision). Pushes back on premature or duplicate conventions. Use when the user says "add a convention", "make this a rule", "document this practice", "we should always X", or invokes /add-convention. NOT for recording a single architectural/product decision (use /new-adr) and NOT for queueing work (use /new-plan)./agent-waveRun a bounded wave over the plan/todo queue in a documentation-led repo, using available parallel agents or sequential execution. Establishes width, budget and supervision; isolates work and collects verified outcomes. Use for "spawn a wave of agents", "run the queue in parallel", "fan out the work", or "agent wave", not for authoring a decision or queuing a new item./auditAudit a documentation-led repo against its own conventions — contiguous ADR numbering, INDEX sync, plan/ coverage, required sections, status validity, cross-reference resolution, language mandate, ADR-privacy leaks into user-visible code, cross-worktree collisions (duplicate numbers, duplicate plan ownership, same ADR edited on two branches), and — for a multi-repo product — cross-repo federation checks (bidirectional membership, identity collisions, dangling cross-repo references, roll-up drift, convention drift). Reports a punch list and offers to fix the mechanical issues. Use when the user says "audit the ADRs", "lint the conventions", "check repo consistency", or "are the ADRs in sync".Other plugins' skills for the same job