lawrencehua/skills-log/architecture-decision-records
Claude Code and agent skill by lawrencehua/skills-log
- community
Checking that the SKILL.md file is still in the repository.
Capture architectural decisions as structured ADRs (Michael Nygard format) the moment they're made — auto-detects decision moments, extracts context/alternatives/consequences, and only ever writes a file after explicit user approval, maintaining a version-controlled index.
Install
npx vskill@latest install lawrencehua/skills-log/architecture-decision-recordsSKILL.md
The same SKILL.md was published earlier as lawrencehua/skills-log/architecture-decision-records.
architecture-decision-records
"Why did we choose X over Y?" is a question that should have a one-file answer. Without a habit of capturing decisions at the moment they're made, the answer ends up scattered across commit messages, chat history, and memory nobody trusts a year later. This captures the decision in structured form right when it happens, gated on explicit approval so nothing gets written without a human actually reading and agreeing to the draft.
The method
1. Detect the decision moment. Trigger on: explicit user phrasing ("let's record this decision," "ADR this"), the user choosing between named alternatives (a framework, library, pattern, or architectural approach), the user saying "we decided to...", the user asking "why did we choose X," or a planning pass that surfaces multiple options and a chosen one.
2. Gate initialization on consent. If no ADR directory exists yet, ask before creating one — "this project has no ADR directory; should I create it with an index and a template?" Never create the directory or its first file without an explicit yes.
3. Extract the decision in structured form. For each detected decision, pull out:
- Title — a short noun phrase
- Context — the situation, constraints, and forces at play, in a few sentences
- Decision — the actual choice, stated in one to three sentences
- Alternatives considered — at least two, each with pros, cons, and why it was rejected
- Consequences — positive, negative, and risks, stated honestly rather than only justifying the choice made
4. Draft in a fixed format (Michael Nygard's ADR format, adapted with an explicit alternatives section):
5. Approval gate before any write. Present the draft; write the file only after explicit approval. On rejection, discard the draft without writing anything — don't save a "maybe" version anywhere.
6. Maintain the index. Append every accepted ADR to a table in the directory's index file (ADR | Title | Status | Date), append-only — never rewrite prior entries.
7. Serve lookups from the index. When someone asks "why did we choose X," check the index first; if there's a match, read that ADR and present its Context and Decision directly rather than reconstructing the answer from memory. If there's no match, offer to record one now.
When to use
- Choosing between significant alternatives — a framework, library, pattern, or architecture.
- Someone says "we decided to..." or asks "why did we choose X?"
- During a planning pass that surfaces and resolves multiple architectural options.
Not for a minor implementation choice (a variable name, a function's internal shape) or a bug fix with no architectural impact — check for an existing ADR before writing a new one for something already recorded.
How to use
Install: copy this folder into ~/.claude/skills/architecture-decision-records/ for personal use, or .claude/skills/architecture-decision-records/ inside a project repo shared with a team.
Invoke:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/architecture-decision-records/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lawrencehua/skills-log/architecture-decision-records)