agentleFS
SID-SURANGESID-SURANGE/cursor-team-ops/skills/core/architecture-decision-records/SKILL.md

architecture-decision-records

Skill0 starsChanged 4 months agoMITView on GitHub

Create or update an ADR file following the standard template (Context, Decision, Consequences). Triggered by "create an ADR", "document this decision", "write an ADR", "record this architectural decision", "I need to document why we chose", "adr", "log this design decision", "why did we pick this approach", "architecture-decision-records".

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 10 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

  • tpavanipradeepSkill

    ai-regression-testing

    Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code.

    Also in 7 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

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

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check if docs/adr/, adr/, or decisions/ exists in the repo.

    line 23
  2. Very specific:

    If none exists, default to docs/adr/ and create it.

    line 24
  3. Very specific:

    Check .cursor/ or AGENTS.md for a project-specific ADR path override.

    line 25
  4. Very specific:

    If docs/adr/README.md or docs/adr/index.md exists, append the new ADR to its table:

    line 88
  5. Distinctive:

    If no index exists and this is the second or later ADR, create one.

    line 96
  6. Distinctive:

    Do not create an ADR for trivial choices (variable naming, minor config).

    line 107
  7. Distinctive:

    If the decision has already been partially implemented, note that in the Context section.

    line 108
  8. Distinctive:

    If superseding an older ADR, update the older ADR's status to "Superseded by ADR-NNNN".

    line 109

“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

🏛️ Skill: architecture-decision-records

Purpose

Capture significant architectural or design decisions in a lightweight, durable format. Prevents "why did we do it this way?" from being answered by archaeology. Useful for code repos, requirements repos, and consulting deliverables alike.

Trigger phrases

  • "create an ADR"
  • "document this decision"
  • "architecture-decision-records"
  • "write an ADR for this"
  • "record this design decision"
  • "ADR"

Steps

1. Determine the ADR directory

  • Check if docs/adr/, adr/, or decisions/ exists in the repo.
  • If none exists, default to docs/adr/ and create it.
  • Check .cursor/ or AGENTS.md for a project-specific ADR path override.

2. Assign a number

ls docs/adr/ | sort | tail -1    # PowerShell: Get-ChildItem docs/adr/ | Sort-Object | Select-Object -Last 1

Next ADR number = last number + 1. Zero-pad to 4 digits: 0001, 0002, etc.

3. Determine the status

Choose one:

  • Proposed — under discussion, not yet accepted.
  • Accepted — the decision has been made and is in effect.
  • Deprecated — was accepted but is no longer relevant.
  • Superseded by ADR-XXXX — replaced by a newer decision.

4. Draft the ADR

Filename: docs/adr/<NNNN>-<kebab-case-title>.md

# ADR-<NNNN>: <Title>

**Date:** <YYYY-MM-DD>  
**Status:** <Proposed | Accepted | Deprecated | Superseded by ADR-XXXX>  
**Deciders:** <names or roles>

---

## Context

<What is the situation or problem that motivated this decision? Include constraints, forces, and relevant background. Be factual — no advocacy here.>

## Decision

<What was decided? State it clearly and directly. "We will use X" not "We should consider X".>

## Rationale

<Why was this option chosen over the alternatives? List the alternatives considered and why they were rejected.>

| Option | Pro | Con | Chosen? |
|--------|-----|-----|---------|
| <A>    | ... | ... | Yes |
| <B>    | ... | ... | No — reason |

## Consequences

### Positive
- <benefit 1>
- <benefit 2>

### Negative / Trade-offs
- <cost 1>
- <risk 1>

### Neutral
- <change in process or tooling that is neither good nor bad>

## References
- <link to relevant issue, PR, document, or external resource>

5. Link from index (if exists)

If docs/adr/README.md or docs/adr/index.md exists, append the new ADR to its table:

| ADR | Title | Status | Date |
|-----|-------|--------|------|
| [ADR-NNNN](NNNN-title.md) | <title> | Accepted | YYYY-MM-DD |

If no index exists and this is the second or later ADR, create one.

6. Report

ADR created: docs/adr/<NNNN>-<title>.md
Status: <status>
Index updated: yes / no

Guardrails

  • An ADR records the decision as made — do not sanitize or omit the real trade-offs.
  • Do not create an ADR for trivial choices (variable naming, minor config). Reserve for decisions that affect system structure, team workflow, or are hard to reverse.
  • If the decision has already been partially implemented, note that in the Context section.
  • If superseding an older ADR, update the older ADR's status to "Superseded by ADR-NNNN".

Gotchas

  • ls docs/adr/ | sort | tail -1 sorts lexicographically, not numerically — 0010 sorts before 0002 alphabetically only if zero-padded consistently. Verify the actual highest number rather than trusting raw sort output, especially once past 9999 or if any file is unpadded.
  • Two ADRs can be drafted concurrently on different branches and collide on the same number at merge time — check the target branch's docs/adr/ state right before writing, not just at the start of the session.
  • Marking a decision "Accepted" when it's still actively contested just moves the disagreement underground — if consensus isn't actually settled, use "Proposed" and say so.

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.