agentleFS
MicrosoftKnown publishermicrosoft/devsquad-copilot/.github/plugins/devsquad/skills/adr-workflow/SKILL.md

adr-workflow

Skill50 starsChanged 16 days agoMITView on GitHub

Complete workflow for creating and managing ADRs (Architecture Decision Records). Includes duplicate checking, status determination, Microsoft documentation lookup, Azure cost estimates, and completeness validation. Use when you need to create or update ADRs during planning. Do not use for decisions that don't need an ADR (use conventions in plan.md).

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before creating any ADR, check if an ADR already exists in the same domain.

    line 10
  2. Distinctive:

    If a Proposed ADR exists: recommend reviewing and accepting the existing one before creating a new one.

    line 12
  3. Distinctive:

    If an Accepted ADR exists: if the decision has changed, use "Superseded by NNNN".

    line 13
  4. Distinctive:

    If no existing ADR exists in the domain:

    line 19
  5. Distinctive:

    Never invent options from templates, generic READMEs, or placeholder content.

    line 30
  6. Very specific:

    Use microsoft_docs_search to look up limits, SLAs, pricing tiers, comparisons

    line 35
  7. Very specific:

    Use microsoft_docs_fetch for full content of relevant pages

    line 36
  8. Very specific:

    Use azure/pricing when cost is a ranked priority or the user asks about pricing

    line 40
  9. Distinctive:

    Do not block creation if the tool is unavailable: record "pricing not verified"

    line 41
  10. Very specific:

    Use azure/cloudarchitect (design) for Azure architecture recommendations

    line 44
  11. Very specific:

    Use azure/deploy (architecture diagram) for Mermaid topology diagram

    line 45
  12. Distinctive:

    Use the decision domain, not the choice made (e.g., "Data Persistence", not "Use PostgreSQL")

    line 53
  13. Distinctive:

    Before considering the ADR complete, verify:

    line 58
  14. Distinctive:

    If there are missing fields, request information from the user.

    line 64

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

Creation Flow

1. Check for duplicates

Before creating any ADR, check if an ADR already exists in the same domain.

If a Proposed ADR exists: recommend reviewing and accepting the existing one before creating a new one. If an Accepted ADR exists: if the decision has changed, use "Superseded by NNNN".

Options: [R] Review existing / [S] Supersede (create new ADR) / [C] Create separate (different domain).

2. Determine status

If no existing ADR exists in the domain:

  • [A] Decision already made: ask for the final decision and options considered. Create with Accepted status (but recommend Proposed for team review).
  • [B] Needs discussion: ask for options to consider. Create with Proposed status.

3. Options and recommendations

Options preferably come from the user. Offer suggestions only if:

  • The user explicitly asks
  • The user has no options or has only 1

Never invent options from templates, generic READMEs, or placeholder content.

4. Tool consultation (when available)

Microsoft Documentation (for decisions involving Microsoft/Azure services):

  • Use microsoft_docs_search to look up limits, SLAs, pricing tiers, comparisons
  • Use microsoft_docs_fetch for full content of relevant pages
  • Incorporate data into the ADR options evaluation

Azure Cost Estimate (if Azure MCP Server is available):

  • Use azure/pricing when cost is a ranked priority or the user asks about pricing
  • Do not block creation if the tool is unavailable: record "pricing not verified"

Azure Cloud Architect (if Azure MCP Server is available and the project deploys to Azure):

  • Use azure/cloudarchitect (design) for Azure architecture recommendations
  • Use azure/deploy (architecture diagram) for Mermaid topology diagram
  • Present as options for the ADR, not as a final decision
  • Options: [S] Incorporate / [M] Modify first / [I] Ignore

5. Format and naming

  • Template: docs/architecture/decisions/ADR-TEMPLATE.md
  • Naming: NNNN-domain.md (e.g., 0001-data-persistence.md)
  • Use the decision domain, not the choice made (e.g., "Data Persistence", not "Use PostgreSQL")
  • Sequential numbering (0001, 0002, etc.)

6. Completeness validation

Before considering the ADR complete, verify:

  • Context filled in
  • At least 2 options documented
  • Decision with justification
  • Pros and cons for each option

If there are missing fields, request information from the user.

Common Rationalizations

RationalizationReality
"ADRs are overhead"A 10-minute ADR prevents a 2-hour debate about the same decision six months later.
"The code is self-documenting"Code shows what was built. It does not show why, what alternatives were rejected, or what constraints applied.
"We will document the decision later"Decisions made without records get re-debated. Later never comes.
"Nobody reads ADRs"Future agents read them to avoid re-deciding. Future engineers read them to understand context.
"This decision is obvious, no ADR needed"Obvious decisions still have alternatives. Recording the reasoning prevents someone from proposing the discarded alternative later.

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.