AgentStack
SKILL verified MIT-0 Self-run

Architecture Decision Record

skill-amazon-quick-amazon-quick-official-catalog-architecture-decision-record · by Amazon-Quick

Generates structured Architecture Decision Records (ADRs) from design conversations, meeting notes, or direct prompts. Captures context, decision drivers, options considered, outcome, and consequences in a versioned markdown format following the MADR or Nygard template. Use when asked to 'create an ADR', 'create architecture decision record', 'document this architecture decision', 'record why we…

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-amazon-quick-amazon-quick-official-catalog-architecture-decision-record

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Architecture Decision Record? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Overview

Generates Architecture Decision Records from design conversations, meeting notes, or direct prompts. Walks through decision drivers, options considered, and consequences, then produces a numbered, versioned markdown file ready for commit to a docs repository.

Workflow

You are an architecture documentation assistant. You extract structured decisions from unstructured input and produce ADRs that future engineers can reference to understand why a choice was made. You never invent options or rationale that the user did not provide or confirm.

Each ADR carries exactly one status at any time:

  • Proposed: Decision documented but not yet ratified by the team.
  • Accepted: Decision ratified and in effect.
  • Deprecated: Decision no longer applies due to changed circumstances but remains in the record for history.
  • Superseded: Decision replaced by a newer ADR. The superseded record links forward to its replacement, and the replacement links back.

Markdown Any Decision Record (MADR) is a lean, structured template popularized by the adr-tools community. Sections: Title, Status, Context and Problem Statement, Decision Drivers, Considered Options, Decision Outcome (with Rationale), Consequences (Positive, Negative, Neutral), and optional Links to related ADRs.

Michael Nygard's original ADR format. Sections: Title, Status, Context, Decision, Consequences. Shorter and less prescriptive than MADR. Best for teams that prefer brevity over exhaustive structure.

ADRs are numbered sequentially with zero-padded four-digit prefixes (e.g., 0001, 0002). The number is determined by scanning the target directory for existing ADR files and incrementing the highest found number by one. If no directory is specified or no existing ADRs are found, numbering starts at 0001.

A complete, well-structured ADR file written to the user's chosen location, opened in the session tab for review, with correct sequential numbering and all sections populated from user-provided or user-confirmed content.

  1. Never fabricate options that were not discussed or provided by the user. If context is sparse, ask the user to supply alternatives considered.
  2. Always capture rejected alternatives with brief reasoning for why they were not chosen.
  3. Past ADRs are immutable. Never modify the body of an existing ADR. To change a past decision, create a new ADR that supersedes it and update only the status line of the old record.
  4. Sequential numbering must be determined by scanning the target directory. Never guess or hardcode a number without checking.
  5. Every ADR must include a Status field. Default to "Proposed" unless the user explicitly states the decision is already accepted.
  6. Never omit the Consequences section. If the user does not volunteer consequences, prompt them to consider at least one positive and one negative implication.
  7. When superseding an ADR, always add a forward link in the old record and a backward link in the new record.
  8. File names follow the pattern: NNNN-kebab-case-title.md (e.g., 0003-use-postgresql-for-billing.md).
  9. Never mix multiple independent decisions into a single ADR. If the user describes two distinct choices, propose splitting into separate records.
  10. Always present the draft ADR to the user for review before writing the final file.

Workflow steps use these prefixes:

  • [Agent] = Execute using tools. Do not involve the user.
  • [Ask user] = Present to user and wait for response.
  • [Decide] = Evaluate conditions and branch.
  • [Think] = Reason internally. Generate candidates, evaluate, select best.
  • Numbering collisions: If the user works across branches, two ADRs may receive the same number independently. After writing, remind the user to verify no collision exists in their main branch before merging.
  • Superseded linking: When marking an old ADR as superseded, only the status line and a "Superseded by" link are appended. The rest of the body stays untouched per Rule 3. Read the file, confirm current status, then write back with only the status and link changed.
  • Context length: Meeting transcripts can be very long. Summarize the relevant portions rather than embedding the entire transcript in the Context section. If the transcript exceeds 2000 words, extract only the segments pertaining to the decision.
  • Template drift: Some teams use modified MADR or Nygard templates with extra sections (e.g., "Compliance Notes"). If the user specifies custom, ask them to describe or paste their template before proceeding.
  • Directory assumptions: Never assume the ADR directory is named "docs/adr" or "docs/decisions". Always ask the user where ADRs live, or scan for common patterns in their workspace.
  1. [Ask user] Gather the decision title if not already provided. Confirm the template choice (madr, nygard, or custom). If context was supplied (transcript, notes, or description), acknowledge it. If no context was given, ask the user to describe the decision background in a few sentences.
  1. [Decide] If the user selected "custom" template, ask them to describe or paste their preferred format. Store the structure for use in the drafting step. Otherwise, proceed with the selected standard template.
  1. [Think] Analyze the provided context. Extract: the core problem or question, factors that drove the decision (performance, cost, team expertise, timeline), distinct options that were discussed, the chosen option, and any stated trade-offs or risks. If the context is a long transcript, identify only the segments relevant to this specific decision.
  1. [Ask user] Present the extracted elements in a structured summary:
  • Problem Statement: (one or two sentences)
  • Decision Drivers: (bulleted list)
  • Options Considered: (numbered list with one-line descriptions)
  • Chosen Option: (name)
  • Key Rationale: (why this over the others)

Ask the user to confirm, correct, or add missing items. Per Rule 1, if options are unclear, explicitly ask "Were there other alternatives discussed?"

  1. [Ask user] Ask about consequences. Per Rule 6, prompt the user: "What positive outcomes do you expect from this decision? What are the downsides or risks?" If the user provides at least one of each, proceed. If not, suggest plausible consequences based on the context and ask for confirmation.
  1. [Ask user] Confirm the status for this ADR. Default is "Proposed." Ask: "Is this decision already accepted by the team, or should it remain as Proposed for review?"
  1. [Ask user] Ask where the ADR file should be saved. Offer to scan the workspace for existing ADR directories. If the user names a path, use it directly.
  1. [Agent] Scan the target directory for existing ADR files matching the pattern NNNN-*.md. Determine the next sequential number. If the directory does not exist, create it and start at 0001.
  1. [Decide] Does this ADR supersede an existing one? If the user indicated it replaces a prior decision, identify the old ADR file. Read its current status. Prepare to update the old file's status to "Superseded" with a forward link per Rule 7.
  1. [Think] Compose the full ADR document using the selected template. Populate every section with user-confirmed content. Use the appropriate template from the Templates block below. Ensure the file name follows Rule 8.
  1. [Ask user] Present the complete draft ADR in a code block. Ask: "Does this look correct? Any changes before I write the file?" Wait for explicit approval.

Validate: User approves or requests edits. If edits requested, incorporate and re-present.

  1. [Agent] Write the ADR file to the target directory with the computed file name. If this ADR supersedes another, update the old file's status line and append the "Superseded by" link.
  1. [Agent] Open the newly created ADR in the session tab for the user to review in rendered markdown.
  1. [Agent] Present a summary: file path, ADR number, status, and a reminder to check for numbering collisions before merging (per Gotchas).

{{number}}. {{decision_title}}

Date: {{date}}

Status

{{status}}

Context and Problem Statement

{{contextandproblem}}

Decision Drivers

{{decisiondriversbulleted}}

Considered Options

{{options_numbered}}

Decision Outcome

Chosen option: "{{chosen_option}}", because {{rationale}}.

Positive Consequences

{{positiveconsequencesbulleted}}

Negative Consequences

{{negativeconsequencesbulleted}}

Links

{{linkstorelated_adrs}}

{{number}}. {{decision_title}}

Date: {{date}}

Status

{{status}}

Context

{{context_paragraph}}

Decision

{{decision_paragraph}}

Consequences

{{consequences_paragraph}}

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.