Skip to content
Back to skills

Living Docs

ASecurity

Run a project's engineering decisions as a living log — MADR-lite ADRs (edited in place, retired with Deprecated, never deleted) for decisions expensive to reverse, issues for the work (and its cheap-to-reverse choices), research artifacts, an optional PRD, a project constitution, and living Mermaid architecture views, where every record has exactly one home, indexes never drift, and a record is earned by materiality, not written per layer. Use when setting up or maintaining project docs, wri...

  • 14 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added August 30, 2026
ai-agentsgotestinggitdocumentation

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add ejklock/living-docs-skill --skill living-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Living Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Living Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ejklock-living-docs/badge)](https://www.skillsdirectory.com/skills/ejklock-living-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: living-docs
description: Run a project's engineering decisions as a living log — MADR-lite ADRs (edited in place, retired with Deprecated, never deleted) for decisions expensive to reverse, issues for the work (and its cheap-to-reverse choices), research artifacts, an optional PRD, a project constitution, and living Mermaid architecture views, where every record has exactly one home, indexes never drift, and a record is earned by materiality, not written per layer. Use when setting up or maintaining project docs, writing an ADR/PRD/constitution/issue/research note, drawing or updating an architecture diagram, or enforcing the no-drift maintenance rule.
version: "0.38.1"
metadata:
  type: skill
  layer: procedural
  tags: [documentation, adr, prd, constitution, issues, research, architecture]
---

# Living Docs

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.

---

## Using this skill (progressive disclosure)

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.

- An MCP client can call the same verbs as tools: `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).
- The spine invariants → `living-docs read guide spine`.
- Authoring mechanics — CLI owns every deterministic step, you write only the prose →
  `living-docs read guide procedure`.

## The one rule that decides whether to write a record

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.

## Working through the MCP server

- **Read before deciding.** Call `read` with `topic` for the subject, and with `links_to` or `impact` on a record before you change or retire it.
- **A mid-work choice** goes into the active issue's Decision section the moment you make it: `write` with operation `set`, the issue's reference, heading `Decision` and the whole new section text, since it replaces the section, so pass the section as it should read now: keep the bullets that still hold, rewrite or drop a bullet the new choice replaces, then add the new one; git history keeps the earlier text. 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.

---

## When to invoke

- Standing up documentation for a project (creating `docs/` structure, the docs index, ADR/issue directories) → `living-docs read guide procedure`.
- **Adopting living-docs in an existing/brownfield project** (decisions already made but undocumented) → `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`.
- Writing or editing an **ADR** (a decision expensive to reverse, with its rejected alternatives) → `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.
- Writing or editing a **PRD** (an optional product/feature spec: who asked, what is out of scope, what success looks like) → `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.
- Establishing or amending the **constitution** (foundational scope, non-negotiables) → `living-docs read guide constitution` (load `read guide procedure` first).
- Creating or editing an **issue/ticket** (the unit of work; it carries any cheap-to-reverse decision inline) → `living-docs read guide issue-workflow` (load `read guide procedure` first).
- Recording **research** (technology evaluation, external trade-offs) → load the **`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.
- Drawing or updating an **architecture, data-flow, or tool-calling diagram** → `living-docs read guide architecture-diagrams`.
- Recording a **domain term or business rule** (`docs/context/`, `write new domain [--dir]`, a `###` heading per rule linked by anchor) → `living-docs read guide domain`.
- A doc has grown too large or mixes concerns → **split into a semantic index** → `living-docs read guide semantic-index`.
- **Reading the corpus as an agent** (what governs X *now*) → run `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.
- Handing the **search of the bundle and code** to a cheaper subagent (it returns `TYPE/NNNN` refs with quotes; the session reads them) → `living-docs read guide delegated-exploration`.
- Sizing a record's body (aim ~100 lines, `check` advises at 120; research exempt; never trim a load-bearing rationale) → `living-docs read guide size-targets`.
- Enforcing the **no-drift maintenance rule** after any structural change → run `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`.
- Authoring or checking the **OKF format** of any doc (frontmatter `type`, reserved `index.md`/`log.md`, relative links, `# References`) → `living-docs read guide okf-format`.
- Understanding the **doc trail** (constitution → PRD → ADR → issues → code) and which record type answers which question → `living-docs read guide doc-trail`.

Files in this skill

  • SKILL.md7.3 KB
  • hooks/block-docs-handwrite.sh4.3 KB
  • hooks/pre-commit1.1 KB
  • hooks/session-context.sh1.5 KB
  • rules/about.md2.5 KB
  • rules/adr-conventions.md5.5 KB
  • rules/architecture-diagrams.md7.4 KB
  • rules/bdr-conventions.md7.6 KB
  • rules/check.md4.3 KB
  • rules/citation-conventions.md4.1 KB
  • rules/constitution-conventions.md3.3 KB
  • rules/doc-language.md2.6 KB
  • rules/doc-trail.md2.7 KB
  • rules/enforcement-modes.md5.4 KB
  • rules/glossary-conventions.md3 KB
  • rules/issue-workflow.md2.7 KB
  • rules/maintenance-invariant.md3.6 KB
  • rules/migration.md4.1 KB
  • rules/okf-format.md3.3 KB
  • rules/prd-conventions.md5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.