Skip to content

Add ADR skill for architecture decision records - #29

Merged
5uck1ess merged 7 commits into
mainfrom
feat/coding-rules-and-adr
Apr 6, 2026
Merged

Add ADR skill for architecture decision records#29
5uck1ess merged 7 commits into
mainfrom
feat/coding-rules-and-adr

Conversation

@5uck1ess

@5uck1ess 5uck1ess commented Apr 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • ADR skill (skills/adr/): Context-activated skill for generating Architecture Decision Records in docs/adr/. Captures the why behind technical choices so agents and humans don't reverse intentional decisions.
  • Follows standard Nygard ADR format (Context, Decision, Alternatives Considered, Consequences)
  • Deterministic numbering via grep -oE + sort -n
  • Scoped supersede rules: substantive content is immutable, only Status line can be updated

Note: This PR was part of a larger effort that also installed language-specific coding rules at ~/.claude/rules/ (Go, TypeScript, Python, Rust, Shell). Those are user-level config outside the repo, not part of this merge.

Test plan

  • Say "create an ADR" and verify the skill generates docs/adr/0001-*.md
  • Say "document why we chose X" and verify context-activation triggers
  • Create a second ADR and verify numbering increments to 0002
  • Supersede an ADR and verify old Status line is updated

5uck1ess added 5 commits April 6, 2026 13:26
Coding rules (rules/) auto-activate per file type via Claude Code
native globs: frontmatter. Each complements existing hooks — rules
guide how to write, hooks catch what you missed. Covers Go, TypeScript,
Python, Rust, and Shell.

ADR skill (skills/adr/) generates Architecture Decision Records in
docs/adr/ for capturing the why behind technical choices.
Plugins don't support a rules/ directory — only commands/, agents/,
skills/, hooks/. Rules need to live in ~/.claude/rules/ with paths:
frontmatter (not globs:) per Claude Code docs. Moved there directly
since this is personal tooling, not distributed.
Address review findings: ensure docs/adr/ exists before listing,
and clarify how to update old ADR status when superseding.
Address tri-review consensus finding — ls | tail is fragile for
determining next ADR number. Now extracts numeric prefixes and
sorts numerically.
The rule said "never modify" then immediately said "update the status
line" — contradiction. Now explicitly scopes the no-modify rule to
substantive content only. Also clarifies the empty-output signal for
the numbering command.
@5uck1ess 5uck1ess changed the title Add globs-scoped coding rules and ADR skill Add ADR skill for architecture decision records Apr 6, 2026
5uck1ess added 2 commits April 6, 2026 13:39
CI validate-counts requires README and ROADMAP to reflect actual
skill count (17 → 18 after adding ADR skill).
The bold header line also needed updating, not just the table row.
@5uck1ess
5uck1ess merged commit 7eafdbf into main Apr 6, 2026
3 checks passed
@5uck1ess
5uck1ess deleted the feat/coding-rules-and-adr branch April 6, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant