adr-index
4
总安装量
1
周安装量
#51854
全站排名
安装命令
npx skills add https://github.com/studiojin-dev/adr-index-skill --skill adr-index
Agent 安装分布
opencode
1
codex
1
claude-code
1
antigravity
1
gemini-cli
1
Skill 文档
ADR Index
Workflow
- Run the generator/validator:
python .codex/skills/adr-index/scripts/build_adr_index.py
- Review the short summary output (ADR count + whether index.json changed).
ADR Rules (enforced by script)
- First line must be
# ADR-YYYYMMDD-####-XXX: <title>(date, 4 digits, 3 random chars, non-empty title). - Optional metadata lines within the first ~40 lines:
Tags: a, b, cStatus: Proposed | Accepted | DeprecatedDate: YYYY-MM-DDTL;DR: one short sentence
Output
- Writes
docs/adr/index.jsonwith fields: id, title, tags[], status, date, tldr, path. - Sorts by date desc, then id desc.
- Prints only a short summary line.
Guardrails
- Never append done-logs to
AGENTS.md; decisions belong in ADRs. - Ensure
AGENTS.mdincludes the Documentation Workflow policy block below; add it if missing.
AGENTS.md Policy Block
## Documentation Workflow
The following terms are to be interpreted as described in RFC 2119:
âMUSTâ, âMUST NOTâ, âSHOULDâ, and âMAYâ.
1. ADRs MUST be written in `docs/adr/*.md`.
2. When an ADR is added or modified, `docs/adr/index.json` MUST be updated accordingly.
3. The ADR index MUST be generated using the `adr-index` skill.
4. AGENTS.md MUST NOT accumulate completed work logs.
Architectural decisions MUST be recorded in ADRs.
AGENTS.md MAY contain only links to ADRs or brief summaries.
### ADR Detection Rule
If you make or rely on a decision that:
- introduces architectural constraints,
- involves trade-offs,
- or is not obvious from code alone,
you MUST pause and explicitly state:
"An ADR is required for this decision."