agentleFS
yigitcanozdemiryigitcanozdemir/full-stack-project-template/.agents/skills/adr/SKILL.md

adr

Skill0 starsChanged 2 months agoMITView on GitHub

Propose an Architecture Decision Record in docs/adr/ for a choice that is expensive to reverse or easy to misread later — a dependency, a stack slot, a data-model constraint, a security boundary, a rejected approach — with options, drivers and how the decision will be checked, then stop for a human decision before coding it. Use when the user asks for an ADR or decision record, or when a task hits such a choice that no PRD, architecture page or existing ADR already settles.

35 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use coverage, observability and 8 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.
  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    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 5 projects that use this

  • MongoDBSkill

    jira

    Use this skill for any Jira operation in the DOCSP project — creating, viewing, searching, updating, transitioning, commenting on, or linking tickets. Also handles follow-up ticket creation to manage scope creep. TRIGGER when: user mentions a DOCSP-XXXXX ticket number or any Jira ticket URL; user asks to view, open, check, update, transition, close, comment on, link, or search tickets; user references \"the ticket\", \"the Jira\", or \"open a ticket\". SKIP: GitHub issues; non-Jira platforms; questions unrelated to ticket operations.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 6 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 5 projects that use this

  • 0xSeroSkill

    security

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No for routine work that follows existing rules — most tasks need none.

    line 21
  2. Very specific:

    Status: always Proposed. Only a human moves it on.

    line 32
  3. Very specific:

    Index: add the row to docs/adr/README.md and bump the "next free number" line.

    line 33

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

Write an ADR

An ADR records one non-obvious decision and why, so that a choice which looks arbitrary later — an unused field, a chosen library, a rejected approach — can be understood without re-running the discussion. The format follows the useful parts of MADR 4: drivers, options side by side, and how the decision is confirmed.

Is an ADR needed?

Yes when the choice is not already settled — check the index in docs/adr/README.md, docs/architecture/ and docs/product/ first — and it is expensive to reverse or easy to misread. Typical triggers: adding or rejecting a dependency, choosing or changing a stack slot, a schema decision that constrains the future, a security or trust boundary, generalising a mechanism, reserving something for a capability not built yet.

No for routine work that follows existing rules — most tasks need none. Do not write one to look thorough.

Steps

  1. Read first: the PRD requirements the decision serves (docs/product/), the ADRs it touches, and the code it affects. An ADR that contradicts an accepted one must supersede it explicitly.
  2. Number: the next free number is stated at the bottom of the index in docs/adr/README.md — use it, not the file listing (numbers can be retired or reserved). Zero-pad to four digits.
  3. File: docs/adr/NNNN-short-kebab-title.md, from the template below. About a page; if it needs more, it is probably two decisions.
  4. Status: always Proposed. Only a human moves it on.
  5. Index: add the row to docs/adr/README.md and bump the "next free number" line.
  6. Stop. Show the human the decision, the strongest rejected option, and the main cost — then wait for a decision before writing code that depends on it.
  7. After the human decides, set the status. Accepted, or Rejected — a rejected proposal stays in the index, because "we considered X and said no" is exactly what the next person asks.

Statuses

Proposed → Accepted | Rejected. Later: Superseded by ADR-NNNN (a newer ADR replaces it) or Deprecated (no longer relevant, nothing replaces it). The status line and index row are the only edits an accepted ADR ever receives; the old ADR and its successor both link each other.

Rules

  • One decision per record. Two decisions are two ADRs.
  • Accepted ADRs are immutable; revise by writing a new one that supersedes it.
  • An ADR never cites a plan (docs/plans/). A plan closes; the ADR outlives it. Cite PRD requirement IDs, other ADRs, architecture pages or code.
  • Name things as the code names them, so grep finds them.
  • At least two real options, including "do nothing / keep what we have" when that is viable. A decision with no downside has not been thought through.
  • Confirmation is concrete — a test, a lint rule, a CI job, a review rule in AGENTS.md — or it says honestly that the decision is checked only by review.

Template

# ADR-NNNN — <short title: the decision, not the topic>

- **Status:** Proposed
- **Date:** YYYY-MM-DD
- **Relates to:** <PRD requirement IDs, ADRs, architecture pages; "supersedes ADR-MMMM" if it does>

## Context

What forces the decision now: the problem, the constraints, and what is already fixed elsewhere.

## Decision drivers

- <the requirement, quality or constraint that decides between the options>

## Considered options

1. **<option>** — one line on what it is.
2. **<option>**
3. **Keep what we have** — if viable.

## Decision

What we are doing, stated plainly. Numbered if it has parts.

## Consequences

- **Good:** what this makes easy.
- **Bad:** what this makes hard, and what it commits us to.

## Confirmation

How we will know it is followed: the test, lint rule, CI job or review rule that enforces it.

## Options compared

| Driver | <option 1> | <option 2> | <option 3> |
|---|---|---|---|
| <driver> | … | … | … |

For each rejected option, one line on why it lost.

## Revisit when

The observable change that should reopen this (a scale threshold, a new requirement, a dependency's
end of life).

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.