/living-docs:living-docsfrom living-docs
Maintains a living decision log with MADR-lite ADRs, issues, research artifacts, PRDs, and Mermaid architecture views. Use when recording engineering decisions, writing ADRs, or enforcing documentation drift rules.
Ships in living-docs. 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; scripts run unread.
Living Docs is a decision log with a gate. It records the engineering decisions a future reader would pay to rediscover, traces each from its rationale to the code, and refuses to let a record exist unindexed, untyped, or silently rewritten. The spine — every piece of knowledge has exactly one home, that home is indexed, and a material decision ships with its record — carries a small set of record types: ADRs, issues, research, a constitution, an optional PRD, living architecture views, and domain records.
This skill is stack-agnostic. It governs how decisions are recorded and maintained, never what technology a project uses.
This SKILL.md is a slim stub — a trigger plus a task→topic router. The living-docs CLI
holds the full, authoritative conventions and templates and discloses them progressively.
Before authoring anything, load the topic for your task and operate from it, not from this
stub:
living-docs read guide --list — discover every topic.living-docs read guide <topic> — load that topic's full rules (+ template).Piped output is minified JSON (machine default); --plain for human text, --json to force
JSON.
Write ONLY the body below the closing ---. Frontmatter and indexes are CLI-owned: living-docs write set. An Accepted ADR is a living record edited in place when the code moves; retire a decision with write set <ref> status Deprecated (ADR 0119). Existing Superseded records stay readable.
living-docs mcp --docs-dir docs serves them
over stdio (setup: claude mcp add living-docs -- living-docs mcp --docs-dir docs; the
mcpServers JSON and npx forms are in the README at https://github.com/ejklock/living-docs-skill).living-docs read guide spine.living-docs read guide procedure.Write an ADR when a future reader would pay to rediscover why you chose this over the alternatives — i.e. the decision is expensive to reverse. Otherwise put the choice in the issue that carries the work. When in doubt, it is an issue. A record is earned by materiality, never by the fact that a change touched structure or behavior — do not manufacture a record per layer.
read with topic for the subject, and with links_to or impact on a record before you change or retire it.write with operation set, the issue's reference, heading Decision and the whole new section text, since it replaces the section, so pass its current bullets plus the new one. The materiality test for an ADR: write an ADR only when a future reader would pay to rediscover the choice, that is, when it is expensive to reverse.Optional record types have triggers: an architecture change earns a view, a domain term or business rule a domain record, external evidence behind a choice a research note, and scope and non-negotiables the constitution; check advises when one is missing.
docs/ structure, the docs index, ADR/issue directories) → living-docs read guide procedure.living-docs read guide procedure, Adopting living docs in an existing project: inventory the decisions, confirm each with the user before recording any ADR, never back-fill by inference alone. A bundle authored under an older organization is brought current by living-docs manage index and living-docs manage fmt, then living-docs check.living-docs read guide adr (load read guide procedure first if not already loaded this session). A test-strategy decision (non-default level/technique, bar deviation) is an ADR tags: [testing], not a new record type.living-docs read guide prd (load read guide procedure first). A PRD without who-asked/out-of-scope is just a large issue — keep it an issue.living-docs read guide constitution (load read guide procedure first).living-docs read guide issue-workflow (load read guide procedure first).research-artifacts skill. It owns the OKF research-note format, the source discipline, and the research → decision → issue traceable chain, and links back here for the ADR/issue artifacts. Pairs with the deep-research skill.living-docs read guide architecture-diagrams.docs/context/, write new domain [--dir], a ### heading per rule linked by anchor) → living-docs read guide domain.living-docs read guide semantic-index.living-docs read records (active records only, supersede chains collapsed; superseded, deprecated, closed and done records are withheld and counted in withheld, and --all includes them, in --links-to and --impact too; --topic <term> to filter, --contract for the contract sections, --full for whole bodies — ADRs 0050, 0064), never index.md directly. Before an edit, run living-docs read records --links-to <TYPE/NNNN> (who links it) and --impact <TYPE/NNNN> (who reaches it through a chain, with distance) to see what to revisit. A raw record whose body opens with a SUPERSEDED or DEPRECATED callout is history — follow the successor link or discard it, never plan on it.TYPE/NNNN refs with quotes; the session reads them) → living-docs read guide delegated-exploration.check advises at 120; research exempt; never trim a load-bearing rationale) → living-docs read guide size-targets.living-docs check; treat a non-zero exit as blocked; treat each advisory (SIZE, OWNER, HEADING, LIVENESS stale-proposed, MOVED-SOURCE, LINK-STYLE, BLOCKED-BY; living-docs check --help lists them all) as work to schedule. Detail → living-docs read guide check; the maintaining loop → read guide procedure.type, reserved index.md/log.md, relative links, # References) → living-docs read guide okf-format.living-docs read guide doc-trail.hooks/decision-prompt.sh (opens in a new tab)hooks/pre-commit (opens in a new tab)hooks/session-context.sh (opens in a new tab)rules/adr-conventions.md (opens in a new tab)rules/architecture-diagrams.md (opens in a new tab)rules/check.md (opens in a new tab)rules/constitution-conventions.md (opens in a new tab)rules/delegated-exploration.md (opens in a new tab)rules/doc-trail.md (opens in a new tab)rules/domain.md (opens in a new tab)rules/issue-workflow.md (opens in a new tab)rules/okf-format.md (opens in a new tab)rules/prd-conventions.md (opens in a new tab)rules/procedure.md (opens in a new tab)rules/semantic-index.md (opens in a new tab)rules/size-targets.md (opens in a new tab)rules/spine.md (opens in a new tab)scripts/regen-views.sh (opens in a new tab)templates/adr.md (opens in a new tab)templates/architecture-view.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/living-docs-driftCheck whether the live records of a living-docs bundle still match the code they cite, and write a dated advisory drift report. Use when the owner asks whether the docs, architecture views, constitution, open issues or Accepted ADRs have drifted from the code. Runs a driver script that resolves each record's code anchors and asks a configurable judge command; never a gate./okf-knowledge-formatAuthor and validate knowledge as OKF (Open Knowledge Format) bundles — a directory of markdown files with YAML frontmatter, where every concept is one .md file with a REQUIRED `type` field, reserved index.md/log.md files, relative cross-links, and a permissive conformance model. Use when standing up or maintaining a knowledge bundle/catalog, writing or normalizing a concept document's frontmatter, deciding how to structure markdown knowledge for agents to consume, or checking a corpus against OKF conformance. The canonical spec is vendored under reference/SPEC.md and refreshed from GitHub via scripts/update-spec.sh./research-artifactsOrganize, format, and index research as OKF-conformant knowledge bundles — dated, sourced, append-only snapshots of the external evidence behind a decision (technology evaluations, library comparisons, industry-practice surveys). Use when recording research output, structuring a docs/research/ session, enforcing source discipline (primary sources, vendor-COI flags, inference-vs-fact labels, confidence levels), or wiring the research → decision → issue traceable chain. Pairs with deep-research (which gathers/verifies the evidence) and living-docs (which owns the ADR/issue artifacts research feeds into).npx claudepluginhub ejklock/living-docs-skill --plugin living-docsOther plugins' skills for the same job