adr-writing: a skill that makes ADRs decision paths, read whole by the agents bound by them (refs B011)

Open
#2,898 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
markdown
Domain
documentation

Research direction

Read the writing-skills procedure and the ADR read contract in AGENTS.md and docs/standards/naming.md; inspect the ADRs, especially docs/adr/0011 and ADRs 0046–0047. Create .claude/skills/adr-writing/SKILL.md using the referenced cut tree, which the issue says is not in the repository. Done means a fresh agent produces a version of ADR 0011 at most a quarter of its original size while preserving every decision fact, and follows the whole-read contract when refusing the forbidden task.

Written by the indexing model from the issue text.

Description

backlog

Outcome: an agent that writes, rewrites, splits or reviews an ADR does it in the decision-path form, and an agent bound by an ADR reads it whole before it acts.

Evidence at 65630999e

  • docs/adr/: 52 files, 1,090,880 bytes in total. Smallest 2,561, median 13,125, largest 166,754 (docs/adr/0003-quest-networking-port.md). Measured with wc -c docs/adr/*.md.
  • The read contract is a frontmatter line: AGENTS.md:8 (read-contract: whole) and docs/standards/naming.md:67 (read: whole).
  • No hook that enforces the whole read was found in the tree: git grep -n -i 'read-contract\|read_contract' -- tools .claude matches nothing.
  • Baseline (not re-run here): 17 rewrites under "keep every detail" came back 0.2% to 7% smaller and kept the backstory. Basis: nevr-pm's research record, which is not in this repository; not read by this seat.

Not shown

  • The draft cut tree that the skill is built on (a keep, move and cut tree for ADRs). Not in this repository.
  • Whether an enforcement hook exists outside the repository.
  • The size limit, and whether an ADR may carry a "Mistakes this prevents" section: both open for the owner.

Falsifier

A fresh agent, given a task that an ADR forbids (building a store-base Quest APK and calling it the combat build, ADR 0046 and 0047, #1994), reads the ADRs as the skill directs and still does the forbidden task.

Work

  1. RED: the baseline above (already run; cited, not repeated).
  2. Write .claude/skills/adr-writing/SKILL.md on the cut tree, under the writing-skills procedure.
  3. GREEN: a fresh agent applies the skill to docs/adr/0011. Pass: at most a quarter of the original size, every fact the decision rests on kept (a fresh checker lists them), the cut list present.
  4. GREEN, reading: the same fresh agent, given the forbidden task above, reads every ADR it could be bound by, whole, and refuses; the same agent without the skill does the task.
  5. Enforcement: the skill names the read contract. Check that a hook covers docs/adr/*.md; if none does, file it as a separate issue.

Platform parity: not applicable (documentation and a skill; no player-facing behaviour).

Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.