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.

66 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use nuxt4-patterns, pytorch-patterns 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.
  • loulanyueSkill

    nuxt4-patterns

    Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.

    Also in 7 projects that use this

  • Yog-SothoSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading. Always activate when the user is writing PyTorch models or training scripts, reviewing deep learning code, debugging training loops or data pipelines, optimizing GPU memory or training speed, setting up reproducible experiments, implementing transfer learning or fine-tuning, or asks anything about nn.Module, DataLoader, autograd, AMP, or torch.compile.

    Also in 10 projects that use this

  • royaluniondesign-sysSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 10 projects that use this

  • junimnjwSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 7 projects that use this

  • junimnjwSkill

    carrier-relationship-management

    Codified expertise for managing carrier portfolios, negotiating freight rates, tracking carrier performance, allocating freight, and maintaining strategic carrier relationships. Informed by transportation managers with 15+ years experience. Includes scorecarding frameworks, RFP processes, market intelligence, and compliance vetting. Use when managing carriers, negotiating rates, evaluating carrier performance, or building freight strategies.

    Also in 6 projects that use this

  • royaluniondesign-sysSkill

    deployment-patterns

    Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.

    Also in 18 projects that use this

  • +1 more from junimnjw

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 62 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 62 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.