agentleFS
mikejhillmikejhill/agent-skills/skills/architecture-decisions/SKILL.md

architecture-decisions

Skill0 starsChanged 3 days agoMITView on GitHub

Create, review, and refine Architecture Decision Records (ADRs) through independent research, drafting, and critique, with real alternatives, falsifiable drivers, and concrete trade-offs. Use when the user wants an ADR written, reviewed, superseded, or reconstructed for a past decision.

7 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

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every rejected option has a reason tied to a driver.

    line 21
  2. Distinctive:

    Use the template in adr-template.md: the full one by default, the minimal one for low-impact decisions.

    line 26

“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

Record why a decision was made: the forces, the real alternatives, and the trade-offs accepted. The human team makes the decision; the agent researches, drafts, and critiques.

Content rules

  • One decision per ADR. If the title needs "and", split it and cross-link.
  • At least two genuine options, none of them strawmen. If only one option is viable, say why, and consider whether this is a requirement rather than a decision.
  • Decision drivers are specific and falsifiable: "p99 latency stays under 200 ms at current load", not "performance".
  • Context states scope: which components, services, and boundaries are affected.
  • Every rejected option has a reason tied to a driver. The outcome traces back to the drivers.
  • Consequences name at least one good and one bad effect, each with a mechanism or metric. No "improves maintainability".
  • Post-hoc ADRs reconstruct the real reasoning from history. If no formal evaluation happened, say so. Never invent rationale or list people who were not involved.
  • Metadata uses the frontmatter in adr-template.md, adjusted to any documentation metadata standard the user has: decision statuses, evidence-based review, and no timestamp fields. Keep historical dates as sourced text in Context, and preserve existing records.
  • Accepted content is immutable. Only lifecycle metadata (status, superseded_by) changes; a changed decision gets a new superseding ADR.
  • Use the template in adr-template.md: the full one by default, the minimal one for low-impact decisions.

Workflow

To review an existing ADR, run step 3 for facts when the system's code is at hand (otherwise omit the critique prompt's facts section and say the system claims are unverified), then step 6 with that ADR as the draft. Return the findings and stop. Revise only when the user asks; an accepted ADR changes only through a superseding ADR.

  1. Find existing ADRs (docs/decisions/, docs/adr/, or NNNN-*.md files) and read them for history, numbering, and conflicts. If none exist, propose docs/decisions/ and offer an ADR-0000 recording the adoption of ADRs.
  2. Ask for related artifacts such as an RFC or design doc, and read them.
  3. Research with an independent subagent using the research prompt in prompts.md. It gets the topic only, not your opinion. For a post-hoc ADR, ask it for the historical context around the decision date.
  4. Frame the decision: one sentence, 2-4 genuine options, and the forces that separate them. If the request hides several decisions, propose splitting. Present this to the user and get confirmation before drafting.
  5. Draft: next free number, file NNNN-title-with-dashes.md, status proposed. Write Context first and the outcome last. Write each option's pros and cons independently. Consequences are commitments in this system, not a repeat of the pros and cons.
  6. Critique with a second independent subagent using the critique prompt. It gets the facts from research, not your preferred option. Fix every point, or tell the user why one does not apply. Re-critique after substantial changes, three cycles at most in total.
  7. Review with the user: the draft, the critique points addressed, and open questions. If the user rejects a critique point without a reason, raise it once more, then defer.
  8. Write the file, and advise on next steps (adr-guide.md): who to consult, linking implementing PRs, updating superseded ADRs in the same PR, and options for a deadlocked team.

Confirm decision-makers, status, and scope with the user before marking an ADR accepted.

Checklist

  • Two or more genuine options, each rejection tied to a driver.
  • Drivers falsifiable (full template); consequences specific, good and bad.
  • One decision; scope stated; outcome traces to drivers.
  • Number unused; filename lowercase and hyphenated; status proposed unless the user said otherwise.
  • Metadata valid with no timestamps; only real participants listed.

References

  • adr-template.md: read when drafting. Full and minimal templates with field guidance.
  • prompts.md: read before launching the research or critique subagent.
  • adr-guide.md: read when advising on when to write an ADR, scoping, lifecycle, post-hoc ADRs, or team process.
  • examples.md: read for annotated full, minimal, and post-hoc examples.

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.