docs-adr

docs-adr is a skill for Claude Code, Codex from kensaurus/cursor-kenji. It costs 66 tokens per session (1,705 once invoked), scanned A, original, MIT.

A set of files for recording important software architecture decisions, including why a choice was made and which alternatives were rejected.

In plain words
What is it for?
Use it when setting up or maintaining Architecture Decision Records (ADRs), documenting a major design choice, or preserving the reasoning behind a change.
Why use it?
It prevents future coding-agent sessions from repeatedly proposing options the team has already ruled out. The decision stays available even when the original discussion is forgotten.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kensaurus/cursor-kenji/docs-adr
Any agent
npx skills add kensaurus/cursor-kenji --skill docs-adr
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-adr

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/docs-adr.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/docs-adr)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/docs-adr"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/docs-adr.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00066 $0.01705
Opus 5 $0.00033 $0.00852
Sonnet 5 $0.00013 $0.00341
Haiku 4.5 $0.00007 $0.00170

Measured yesterday against content hash 530fc9b7965e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-adr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docs-adr/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docs-adr — Decision memory the next session can load

Degree of freedom: MIXED — T1 is the priority. What to record [HIGH freedom]; format, supersede-not-edit, and present-backfill-first [LOW freedom — run exactly].

Install and maintain the repo's decision memory. Code shows what was decided; nothing shows why, or what was rejected — so every new agent session is free to "improve" its way back to an alternative you already ruled out. Re-litigated decisions are the slowest form of drift. An ADR makes the decision durable and its reversal deliberate.

This skill vs neighbors

Skill Owns
docs-adr (this) Why we chose X; rejected alternatives; INDEX.md
plan-docs-sync Docs vs what the code is — not why
handoff Session state for the next chat — not permanent decisions
docs-writer Tutorials / README prose
enhance-arch-boundaries Mechanical layering; this records the model
workflow-housekeep Periodic index / status sweep
housekeep-backlog Parked-work register (BACKLOG.md), not decisions

How to reason

  1. Observe — the decision, the rejected alternative, who already tried to reverse it
  2. Interpret — would a fresh agent "improve" back to the rejected option?
  3. Classify — ADR / not-an-ADR (linter already enforces, routine impl)
  4. Severity — load-bearing unusual choice first

Worked example

Observe: agent PR re-proposes Zustand; repo uses React context for session by choice; no ADR. Interpret: the rejection is oral memory — the next session will retry. Classify: ADR — stack choice with a rejected alternative. Write: "We use React context for session. Rejected Zustand: duplicate store vs server session." Present the backfill list before writing files.


Phase 0 — Set up the system (once per repo) [LOW freedom — INDEX.md + statuses]

  • docs/adr/NNNN-short-title.md, numbered sequentially, plus docs/adr/INDEX.md — one line per ADR (NNNN | title | status | one-line decision). The index is the agent-facing surface: small enough to load every session.
  • Reference the index from agent rules: "Before proposing a change to architecture, dependencies, conventions, or data models, read docs/adr/INDEX.md; do not contradict an Accepted ADR without flagging it explicitly to the user."
  • Statuses: Proposed → Accepted → Superseded by NNNN / Deprecated. Never edit an Accepted ADR's decision — supersede it with a new one that links back. History is the point.

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 169 lines · 66 tokens per session scan A 530fc9b7965e

Subscribe to this mod's changes

docs-adr is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 7d ago), licensed MIT. It adds 66 tokens to every session and 1,705 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.