agentleFS
augments-labsaugments-labs/sdlc-skills/skills/design/architecture-decisions/SKILL.md

architecture-decisions

Skill1 starsChanged 4 months agoMITView on GitHub

Records a significant, hard-to-reverse technical decision and the options weighed. Use when a choice such as a datastore, sync versus async, a framework, a public contract, or an auth or security model is being weighed or has just been settled, when the user asks whether to use X or Y, when a choice is made in passing during discussion, or when an old decision is revisited. Skip easily reversible choices.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-response and observability.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    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. Distinctive:

    Skip: when any of the three is missing — a reversible, obvious, or inevitable choice (a variable name.

    line 13
  2. Very specific:

    Ask through the harness's user-input action when one exists, else print this block.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

Architecture Decisions

An ADR (Architecture Decision Record) captures why, not just what.

When to use

  • Record a decision only when all three hold: it's hard to reverse, it would be surprising without the rationale, and there were genuine trade-offs between real options — a datastore, a sync/async boundary, a framework, a public contract, a security model.
  • Skip when any of the three is missing — a reversible, obvious, or inevitable choice (a variable name; the only option that could work) is noise as an ADR.

Step 1: Draft the ADR

Open assets/adr-template.md before Step 1's actions; it owns the fields. Read references/adr-example.md when the first draft is written and needs comparing against a filled example.

  1. State the question, the artifact or system scope, the forces, and one accountable decision owner or the approvers with a conflict rule.
  2. Weigh at least two real options: assumptions, failure limits, disqualifiers, reversal cost, evidence. Evaluate status quo or deferring wherever viable; record the evidence when not.
  3. Give every assumption a stable ID and a way to be proved wrong.
  4. Record the proposed choice and each rejected alternative. Preserve rejections; never edit them away.
  5. Record consequences and reversal: commitments, data and migration consequences, how to undo, what it closes off. Only upsides → not examined.

Step 2: Persist, then challenge

  1. Append the immutable proposed ADR to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}.md or the user-set path, preserving what is there. Compute its identity (per template) now; the challenge binds to this path and identity.
  2. Fill assets/adr-challenger.md with that path and identity when the choice is irreversible — Step 1.5's reversal row says undo is impossible or unaffordable, not merely costly — and a dispatch action exists; then dispatch it per dispatching-parallel-agents Step 2 to a reviewer other than the sole author, who challenges options, assumptions, consequences, and reversal under the template's challenge contract. Otherwise write the strongest counter-case against that same contract yourself and label it self-challenge: a self-challenge never issues clear, so its residual risk goes to the decision owner in Step 3. Approval waits for clear on this ADR identity, or for the decision owner accepting a labelled self-challenge. Skip both only when a current independent design review covers this exact ADR identity.

Step 3: Present and track

  1. Present:

    ADR {{identity (per template)}}: {{question}}
    Proposed: {{choice}} — {{rationale, one line}}
    Rejected: {{alternatives}}  Reversal cost: {{one line}}
    
    1. Accept
    2. Reject in favor of {{other option}}
    3. Request changes
    4. Cancel
    
    Recommendation: {{option the recorded trade-offs support}} — {{one sentence}}.

    Ask through the harness's user-input action when one exists, else print this block; end the turn; clarifying-intent owns what closes it.

  2. Track decision and conformance separately. Acceptance puts nothing in force; conformance does. Retirement needs owner action and absence of the governed surface. Contradiction → reopen every affected owner.
  3. Return the recorded outcome to the skill that invoked this one.

Gotchas

  • An assumption's “way to be proved wrong” (Step 1) can succeed after the ADR is accepted — but the ADR itself is immutable and append-only (Step 2), so a disproven assumption is never fixed by editing the original. It needs a new ADR that supersedes the old one, the same way a rejected alternative is preserved rather than removed.
  • Step 2's reviewer-skip condition requires a current review of this exact ADR identity. A design review that covered an earlier draft — before an option was reweighed or an assumption added — no longer satisfies either word, even though it can feel like “we already reviewed this.”

Common mistakes

  • Treating “the code now does this” as owner approval or conformance proof.

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.