agentleFS
dagarre00dagarre00/claude-code-template/.claude/skills/decision-recording/SKILL.md

decision-recording

Skill1 starsChanged 29 days agoMITView on GitHub

Subagent-side (loaded on demand by developer) or conductor. How to file an Architectural Decision Record (ADR) in docs/wiki/decisions/ for a non-trivial design choice between reasonable alternatives. Trigger on "ADR", "decision", "design choice", "why we picked".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Never rewrite an accepted ADR's body.

    line 66

≈ “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

Recording a Decision

ADRs record non-obvious design choices in docs/wiki/decisions/<YYYY-MM-DD-short-kebab-name>.md. They are superseded rather than edited in place.

When

File an ADR when choosing between reasonable alternatives that shape future work, when a constraint forces a non-obvious design, when implementation departs from the wiki, or when changing an architecture rule (rule 23). Skip for choices already dictated by requirements.md/architecture.md, internal refactors, or upstream bug workarounds (gotchas.md).

Procedure

  1. Create docs/wiki/decisions/YYYY-MM-DD-<short-kebab-name>.md:

    ---
    aliases: []
    type: decision
    domains: [<domain>]
    status: accepted          # proposed | accepted | superseded | deprecated
    sources:
      - docs/raw/<file>       # if applicable
    supersedes: []            # e.g. - "[[decisions/<previous-slug>]]"
    superseded_by: []
    contradicts: []
    open_questions: []
    created: YYYY-MM-DD
    updated: YYYY-MM-DD
    ---
    
    # <Title — one line>
    
    > [!abstract] Essence
    > What was decided and why it matters, in one or two sentences.
    
    ## Context
    
    Two to four sentences: the problem, the forces, the constraints.
    
    ## Decision
    
    "We will use X for Y because Z."
    
    ## Consequences
    
    - **Positive:** …
    - **Negative:** …
    - **Follow-ups:** the todos this creates.
    
    ## Alternatives considered
    
    - **Option A:** rejected because …
  2. Backlink from the active entity page (frontmatter relation or body link) so the ADR is not an orphan. Queue cross-links from out-of-scope pages in wiki-todos.md (via Follow-ups: if running as a subagent).
  3. Queue any follow-up work for docs/wiki/todos.md (Follow-ups: if subagent).
  4. Ship with the code change that made the decision (include the ADR path in the case's changed files).
  5. Architecture rule changes (architecture.md § Layers) always require human approval + an ADR; subagents report the need rather than editing rule files.

Superseding

Never rewrite an accepted ADR's body. Create a new ADR with supersedes: ["[[decisions/<old-slug>]]"], update the old ADR to status: superseded and superseded_by: ["[[decisions/<new-slug>]]"] with **Superseded by [[decisions/<new-slug>]] on YYYY-MM-DD.** at the top of its body, and update backlinks on the active entity page.

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.