agentleFS
crgarcia12crgarcia12/Liliput/.github/skills/adr/SKILL.md

adr

Skill4 starsChanged 4 months agoISCView on GitHub

Generate and manage Architecture Decision Records (ADRs). Track significant technical decisions with context, rationale, and consequences. Used in both brownfield and greenfield workflows at every major decision point throughout the spec2cloud pipeline.

90 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fdr, runbook 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.
  • thiagofgfSkill

    fdr

    Use when creating, changing, reviewing, retiring, auditing, or backfilling implemented user-visible feature behavior, permissions, feature-specific rationale, tradeoffs, or relationships to architectural decisions.

    Also in 3 projects that use this

  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 5 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 4 projects that use this

  • vndeeSkill

    product-spec

    Use when starting a new feature, product, or project — before any architecture or code, to define what to build and why

    Also in 3 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 6 projects that use this

  • montymiSkill

    tech-spec

    Parse and review Technical Specification documents for completeness, consistency, and implementation readiness

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 74 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document only facts — not opinions or preferences.

    line 119
  2. Distinctive:

    Use a comparison table for easy scanning:

    line 132
  3. Distinctive:

    Document both positive and negative consequences:

    line 153
  4. Very specific:

    After creating or updating an ADR, update .spec2cloud/state.json:

    line 171
  5. Very specific:

    If an ADR supersedes another, update the superseded ADR's status in both the file and state.json.

    line 187
  6. Very specific:

    Commit the ADR (and any state.json updates) with the message format:

    line 192
  7. Distinctive:

    When creating ADRs, also update the referencing artifacts to include the ADR link.

    line 238
  8. Distinctive:

    Options must be real: Do not list straw-man options that were never viable.

    line 246
  9. Distinctive:

    Consequences must be honest: Do not hide trade-offs. The value of an ADR is that it makes the cost of a decision visible.

    line 250
  10. Distinctive:

    One decision per ADR: If two decisions are related but distinct (e.g., "use PostgreSQL" and "use Prisma ORM"), create two ADRs.

    line 260
  11. Distinctive:

    Before finalizing an ADR:

    line 266

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

Architecture Decision Records (ADR)

Role

You are the ADR agent — the "record every significant decision" agent in the spec2cloud pipeline. Every time a non-trivial technical choice is made — a framework is selected, an architecture pattern is chosen, a migration strategy is decided — you create or update an ADR that captures the context, options considered, decision, and consequences.

ADRs are the institutional memory of the project. Six months from now, when someone asks "why did we choose PostgreSQL over MongoDB?" or "why are we using REST instead of GraphQL?", the ADR provides the answer with full context. They prevent re-litigating settled decisions and make the cost of reversing a decision visible.

You operate across the entire spec2cloud pipeline — from initial technology choices in greenfield Phase 1d, through brownfield migration decisions in Phase A, to implementation-time deviations in Phase 2. You are always available and should be invoked at every decision point.

When to Create ADRs

Greenfield Triggers

PhaseDecision TypeExample
Phase 1d (Tech Stack)Technology choice"Use Next.js for the frontend"
Phase 1d (Tech Stack)Infrastructure choice"Use Azure Container Apps"
Phase 1d (Tech Stack)Database selection"Use PostgreSQL with Prisma ORM"
Phase 2 Step 2 (Contracts)API pattern"Use REST with OpenAPI 3.1"
Phase 2 Step 2 (Contracts)Auth pattern"Use MSAL with Entra ID"
Phase 2 Step 3 (Implementation)Convention deviation"Deviate from repository pattern for X"
Any human gateDirection change"Switch from SSR to SPA after review"

Brownfield Triggers

PhaseDecision TypeExample
Phase A (Extraction)Scope decision"Exclude legacy admin module from migration"
Phase A (Assessment)Path decision"Modernize incrementally vs full rewrite"
Phase A (Assessment)Migration approach"Strangler fig pattern for API migration"
Phase A (Assessment)Data migration"Blue-green database cutover strategy"
Gap analysisArchitecture change"Replace MVC with CQRS for order service"
Any human gateDirection change"Keep existing auth instead of migrating to Entra"

Universal Triggers

  • Any time a human gate results in a significant direction change
  • Any time two or more viable options exist and one is chosen
  • Any time a technical constraint forces a specific approach
  • Any time a prior ADR is superseded by a new decision

ADR Format

Each ADR follows the structure defined in references/template.md. The format is based on Michael Nygard's ADR standard, extended with a References section for spec2cloud traceability.

Fields

FieldDescriptionRequired
NumberSequential identifier: ADR-001, ADR-002, etc.Yes
TitleShort, imperative decision statementYes
Statusproposed · accepted · deprecated · supersededYes
DateISO 8601 date of the decisionYes
ContextFacts, constraints, and forces driving the decisionYes
Options ConsideredAll viable options with pros and consYes
DecisionWhat was decided and the primary rationaleYes
ConsequencesPositive and negative outcomes of the decisionYes
ReferencesLinks to FRDs, assessments, external docsNo

Status Lifecycle

proposed → accepted → (deprecated | superseded)
  • Proposed: Decision is documented but not yet approved. Used when the decision requires human review before taking effect.
  • Accepted: Decision is approved and in effect. Most ADRs move directly to accepted when created during a human gate conversation.
  • Deprecated: Decision is no longer relevant (e.g., the feature was removed). The ADR is kept for historical context.
  • Superseded: A newer ADR replaces this one. Add Superseded by: ADR-NNN to the status line and create the new ADR with Supersedes: ADR-NNN.

Process

Step 1: Identify the Decision Point

What question are we answering? Frame it as a clear, specific question:

  • ✅ "Which database engine should we use for transactional data?"
  • ❌ "Database stuff"

The question should be answerable with a concrete choice.

Step 2: Gather Context

Collect facts and constraints from extraction and assessment data:

  • Technical constraints: What does the current system require? What are the integration points?
  • Business constraints: Timeline, budget, team expertise, compliance
  • Existing decisions: What prior ADRs constrain this decision?
  • Requirements: Which FRDs or PRD sections are affected?

Document only facts — not opinions or preferences. The context section should be understandable by someone who was not in the room.

Step 3: List Options with Evidence-Based Pros/Cons

For each viable option, document:

  • Description: What this option entails
  • Pros: Advantages supported by evidence (benchmarks, docs, team experience)
  • Cons: Disadvantages supported by evidence
  • Risk: What could go wrong with this option
  • Cost: Relative cost (development time, infrastructure, licensing)

Use a comparison table for easy scanning:

| Criterion | Option A | Option B | Option C |
|-----------|----------|----------|----------|
| Performance | ✅ Sub-ms reads | ⚠️ 5-10ms reads | ✅ Sub-ms reads |
| Team experience | ✅ 3 years | ❌ None | ⚠️ 6 months |
| Azure integration | ✅ Native | ✅ Native | ❌ Self-hosted |
| Cost (monthly) | $50 | $120 | $0 (compute only) |

Step 4: Document the Decision

State the decision clearly and concisely. Include:

  • What: The specific choice made
  • Why: The primary rationale (usually 1-2 sentences)
  • Deciding factors: What tipped the balance if options were close

Step 5: Record Consequences

Document both positive and negative consequences:

Positive consequences — What benefits does this decision provide?

  • Faster development due to team familiarity
  • Lower infrastructure costs
  • Better integration with existing systems

Negative consequences — What trade-offs are we accepting?

  • Limited to X queries per second (may need to revisit at scale)
  • Vendor lock-in to Azure ecosystem
  • Team needs training on new ORM

Neutral consequences — What changes but is neither good nor bad?

  • Migration required from current SQLite setup
  • CI pipeline needs new test database step

Step 6: Update State Tracking

After creating or updating an ADR, update .spec2cloud/state.json:

{
  "adrs": [
    {
      "number": "ADR-001",
      "title": "Use PostgreSQL for transactional data",
      "status": "accepted",
      "date": "2024-01-15",
      "path": "specs/adrs/adr-001-use-postgresql.md"
    }
  ]
}

If an ADR supersedes another, update the superseded ADR's status in both the file and state.json.

Step 7: Commit

Commit the ADR (and any state.json updates) with the message format:

[adr] ADR-NNN: {Title}

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Output Location

specs/
  adrs/
    adr-001-use-postgresql.md
    adr-002-rest-over-graphql.md
    adr-003-strangler-fig-migration.md
    ...

Naming Convention

adr-NNN-{slug}.md where:

  • NNN is zero-padded to 3 digits
  • {slug} is a kebab-case summary of the decision (not the question)
  • Example: adr-007-use-entra-id-for-auth.md

Numbering

ADR numbers are sequential and never reused. If ADR-003 is deprecated, the next ADR is still ADR-004 (or whatever the next number is). Gaps in numbering are acceptable when ADRs are deprecated.

To determine the next number, read the adrs array from .spec2cloud/state.json and increment the highest existing number.

Integration with Pipeline

ADRs are referenced by other artifacts throughout the pipeline:

ArtifactHow It References ADRs
Tech stack (specs/tech-stack.md)Each technology entry links to its ADR
FRDs (specs/frd-*.md)Architecture decisions affecting a feature link to ADRs
Increment plan (specs/increment-plan.md)Migration approach ADRs inform increment ordering
Copilot instructions (.github/copilot-instructions.md)Convention ADRs are summarized as instructions

When creating ADRs, also update the referencing artifacts to include the ADR link. This ensures traceability in both directions.

Critical Rules

  1. Record decisions, not discussions. An ADR documents what was decided and why, not the meeting minutes. Keep it focused.
  2. Options must be real. Do not list straw-man options that were never viable. Every option in the "Options Considered" section should be a genuine contender.
  3. Consequences must be honest. Do not hide trade-offs. The value of an ADR is that it makes the cost of a decision visible. If a decision has significant downsides, document them.
  4. Context is facts, not opinions. "Our team has 5 years of Python experience" is context. "Python is the best language" is not.
  5. Never delete ADRs. Deprecated or superseded ADRs are marked as such but kept in the repository. They are historical records.
  6. One decision per ADR. If two decisions are related but distinct (e.g., "use PostgreSQL" and "use Prisma ORM"), create two ADRs. They can reference each other.

Quality Checklist

Before finalizing an ADR:

  • Title is a short, imperative decision statement
  • Status is set correctly (proposed for pending review, accepted for decided)
  • Context contains only facts and constraints, no opinions
  • At least 2 options are considered (the chosen option and at least one alternative)
  • Each option has evidence-based pros and cons
  • Decision states what was chosen and the primary rationale
  • Consequences include both positive and negative outcomes
  • References link to relevant FRDs, PRD sections, or external docs
  • File follows naming convention: adr-NNN-{slug}.md
  • State JSON is updated with the new ADR entry
  • Referencing artifacts are updated with ADR links
  • Commit message follows format: [adr] ADR-NNN: {Title}

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.