agentleFS
yeaight7yeaight7/agent-powerups/skills/architecture-decision-records/SKILL.md

architecture-decision-records

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Use when a significant architectural choice is being finalized, revisited, or reversed -- technology selection, structural patterns, or trade-offs that future maintainers or agents might unknowingly undo.

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pytorch-patterns, adding-docker and 9 more.

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.
  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 6 projects that use this

  • witi-projectsSkill

    adding-docker

    Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore. Use when the user says "/adding-docker", "adding docker", or asks about adding docker.

    Also in 3 projects that use this

  • witi-projectsSkill

    adding-error-tracking

    Add Sentry error tracking, performance monitoring, and source maps to a web application. Use when the user says "/adding-error-tracking", "adding error tracking", or asks about adding error tracking.

    Also in 3 projects that use this

  • InfopibeSkill

    continuous-agent-loop

    Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.

    Also in 7 projects that use this

  • +7 more from witi-projects

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 1

    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:

    Handle supersession explicitly: When reversing a decision, do NOT edit history: write a new ADR, mark the old one "Superseded by" with a …

    line 50

“Common” is measured: kept by at least 6 in 10 of the 40 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

Purpose

Code tells you how a system works. ADRs tell you why it works that way, preventing future maintainers (and AI agents) from suggesting "improvements" that were already tried and discarded.

When to Use

  • Finalizing a major design decision (e.g., "Choosing Postgres over MongoDB", "Using custom event bus over Redis")
  • Reversing or superseding a previous decision
  • A reviewer or agent proposes a change that contradicts an existing constraint

Inputs

  • The decision, the alternatives considered, and the constraints that drove it
  • The ADR directory (conventionally docs/adr/)

Workflow

  1. Check for an existing ADR first — the decision may already be recorded or superseded:

    ls docs/adr/                          # existing records
    rg -ln "<topic keyword>" docs/adr/    # is this decision already covered?
  2. Create the record at docs/adr/YYYY-MM-DD-<short-title>.md — date-prefixed for ordering, kebab-case title.
  3. Fill the structure — keep it under 300 words; focus on constraints, not theory:

    # <Decision title>
    
    ## Status
    Accepted | Superseded by <newer ADR filename>
    
    ## Context
    What is the problem? What constraints apply?
    
    ## Decision
    What are we doing?
    
    ## Consequences
    What trade-offs are we accepting? What becomes harder?
  4. Handle supersession explicitly. When reversing a decision, do NOT edit history: write a new ADR, mark the old one "Superseded by" with a link to the new file, and state what changed.
  5. Link from where the decision bites — a one-line pointer near the affected module or in the architecture doc, so the why is discoverable from the how.

Output

  • A dated ADR file with Status / Context / Decision / Consequences
  • Superseded ADRs updated with forward links — never deleted or rewritten

Verification

  • File saved under docs/adr/ with a date-prefixed kebab-case name
  • Status, Context, Decision, and Consequences sections all present; body under ~300 words
  • Consequences state real trade-offs, not just benefits
  • Superseded decisions marked and forward-linked, not edited or removed
  • Decision discoverable from the affected code or architecture doc

Failure Modes

  • Retroactive rewriting — editing an old ADR to match a new decision destroys the historical why; supersede instead.
  • Theory essays — pages of architecture philosophy nobody reads; constraints fit in 300 words.
  • Consequence-free records — a Decision without trade-offs is advocacy, not a record.
  • Orphaned ADRs — records nobody can find from the code they govern.

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.