agentleFS
aman-bhandariaman-bhandari/claude-code-agent-skills-framework/.claude/skills/adr-capture/SKILL.md

adr-capture

Skill0 starsChanged 7 months agoMITView on GitHub

ALWAYS activate when the student makes a high-level design choice -- library selection, database choice, mathematical approach, architecture pattern, or trade-off decision. Captures an Architectural Decision Record proving leadership-level thinking. Invoke with /adr.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every ADR is written to decisions/ADR-NNN-title.md with this structure:

    line 22
  2. Distinctive:

    When a design choice surfaces, STOP the student before they implement

    line 70
  3. Distinctive:

    Ask: "What are your options?

    line 71
  4. Distinctive:

    If the student can't name at least two options with trade-offs, they don't understand the decision space yet -- dig deeper

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Architectural Decision Record (ADR) Capture

When This Fires

Automatically when the student makes or discusses:

  • Choice of library, framework, or tool
  • Database or storage decision
  • Mathematical approach selection
  • Architecture pattern decision
  • Any trade-off where two valid options exist

Also manually via /adr.

The Mandatory ADR Format

Every ADR is written to decisions/ADR-NNN-title.md with this structure:

# ADR-NNN: [The Decision]

**Date:** YYYY-MM-DD
**Status:** Accepted | Superseded by ADR-NNN | Deprecated
**Topic:** [Which curriculum topic this relates to]

## Context

What is the technical constraint or problem that forced this decision? What were we trying to solve? What are the forces at play (performance, cost, complexity, maintainability, learning curve)?

## Options Considered

### Option A: [Name]
- Pros: [specific, measurable]
- Cons: [specific, measurable]
- Cost: [time, compute, complexity]

### Option B: [Name]
- Pros: [specific, measurable]
- Cons: [specific, measurable]
- Cost: [time, compute, complexity]

### Option C: [Name] (if applicable)

## Decision

What was chosen and WHY. Not "we chose X because it's popular" but "we chose X because [specific technical reason] given our constraint of [specific constraint]."

## Trade-offs

What did we sacrifice for what gain? Be explicit:
- Sacrificed: [Latency? Cost? Complexity? Flexibility?]
- Gained: [Performance? Simplicity? Maintainability? Learning value?]

## Verification

How did tests/benchmarks prove this was the right choice? Reference specific test files, benchmark results, or measured outcomes.

## Consequences

What does this decision make easier? What does it make harder? What future decisions does it constrain or enable?

Coach Protocol

  1. When a design choice surfaces, STOP the student before they implement
  2. Ask: "What are your options? What are the trade-offs?"
  3. If the student can't name at least two options with trade-offs, they don't understand the decision space yet -- dig deeper
  4. The student writes the ADR (not the coach)
  5. Coach reviews the ADR for: specificity of trade-offs, measurability of claims, honesty about sacrifices
  6. ADR must be committed alongside the implementation

Why This Matters

ADRs prove leadership thinking. A junior picks a tool. A lead documents WHY they picked it, what they sacrificed, and how they verified the choice. In 18 months, the decisions/ directory is a searchable record of engineering judgment that no interview question can replicate.

Portfolio Impact

Recruiters see: "This person doesn't just build. They make deliberate, documented trade-off decisions with measurable verification. This is how Staff engineers think."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.