Source profileQuality 79/100

affaan-m/ECC/skills/architecture-decision-records/SKILL.md

architecture-decision-records

Capture architectural decisions made during Claude Code sessions as structured ADRs. Auto-detects decision moments, records context, alternatives considered, and rationale. Maintains an ADR log so future developers understand why the codebase is shaped the way it is.

Source repository stars
234,327
Declared platforms
1
Static risk flags
0
Last source update
2026-07-27
Source checked
2026-07-28

Decision brief

What it does—and where it fits

Capture architectural decisions as they happen during coding sessions. Instead of decisions living only in Slack threads, PR comments, or someone's memory, this skill produces structured ADR documents that live alongside the code.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeDeclaredSource recordInstall path and trigger
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/affaan-m/ECC --skill "skills/architecture-decision-records"
    Safe inspection promptEditorial

    Inspect the Agent Skill "architecture-decision-records" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/skills/architecture-decision-records/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Workflow

      When a decision moment is detected:

      Initialize (first time only) — if docs/adr/ does not exist, ask the user for confirmation before creating the directory, a README.md seeded with the index table header (see ADR Index Format below), and a blank template.…Identify the decision — extract the core architectural choice being madeGather context — what problem prompted this? What constraints exist?
    2. 02

      When to Activate

      User explicitly says "let's record this decision" or "ADR this"

      User explicitly says "let's record this decision" or "ADR this"User chooses between significant alternatives (framework, library, pattern, database, API design)User says "we decided to..." or "the reason we're doing X instead of Y is..."
    3. 03

      ADR Format

      Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:

      Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:
    4. 04

      ADR-NNNN: [Decision Title]

      Date: YYYY-MM-DD Status: proposed | accepted | deprecated | superseded by ADR-NNNN Deciders: [who was involved]

      Pros: [benefits]Cons: [drawbacks]Why not: [specific reason this was rejected]
    5. 05

      Context

      What is the issue that we're seeing that is motivating this decision or change?

      What is the issue that we're seeing that is motivating this decision or change?[2-5 sentences describing the situation, constraints, and forces at play]

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score79/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars234,327SourceRepository attention, not individual Skill quality
    Compatibility1 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    affaan-m/ECC
    Skill path
    skills/architecture-decision-records/SKILL.md
    Commit
    4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    Architecture Decision Records

    Capture architectural decisions as they happen during coding sessions. Instead of decisions living only in Slack threads, PR comments, or someone's memory, this skill produces structured ADR documents that live alongside the code.

    When to Activate

    • User explicitly says "let's record this decision" or "ADR this"
    • User chooses between significant alternatives (framework, library, pattern, database, API design)
    • User says "we decided to..." or "the reason we're doing X instead of Y is..."
    • User asks "why did we choose X?" (read existing ADRs)
    • During planning phases when architectural trade-offs are discussed

    ADR Format

    Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:

    # ADR-NNNN: [Decision Title]
    
    **Date**: YYYY-MM-DD
    **Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
    **Deciders**: [who was involved]
    
    ## Context
    
    What is the issue that we're seeing that is motivating this decision or change?
    
    [2-5 sentences describing the situation, constraints, and forces at play]
    
    ## Decision
    
    What is the change that we're proposing and/or doing?
    
    [1-3 sentences stating the decision clearly]
    
    ## Alternatives Considered
    
    ### Alternative 1: [Name]
    - **Pros**: [benefits]
    - **Cons**: [drawbacks]
    - **Why not**: [specific reason this was rejected]
    
    ### Alternative 2: [Name]
    - **Pros**: [benefits]
    - **Cons**: [drawbacks]
    - **Why not**: [specific reason this was rejected]
    
    ## Consequences
    
    What becomes easier or more difficult to do because of this change?
    
    ### Positive
    - [benefit 1]
    - [benefit 2]
    
    ### Negative
    - [trade-off 1]
    - [trade-off 2]
    
    ### Risks
    - [risk and mitigation]
    

    Workflow

    Capturing a New ADR

    When a decision moment is detected:

    1. Initialize (first time only) — if docs/adr/ does not exist, ask the user for confirmation before creating the directory, a README.md seeded with the index table header (see ADR Index Format below), and a blank template.md for manual use. Do not create files without explicit consent.
    2. Identify the decision — extract the core architectural choice being made
    3. Gather context — what problem prompted this? What constraints exist?
    4. Document alternatives — what other options were considered? Why were they rejected?
    5. State consequences — what are the trade-offs? What becomes easier/harder?
    6. Assign a number — scan existing ADRs in docs/adr/ and increment
    7. Confirm and write — present the draft ADR to the user for review. Only write to docs/adr/NNNN-decision-title.md after explicit approval. If the user declines, discard the draft without writing any files.
    8. Update the index — append to docs/adr/README.md

    Reading Existing ADRs

    When a user asks "why did we choose X?":

    1. Check if docs/adr/ exists — if not, respond: "No ADRs found in this project. Would you like to start recording architectural decisions?"
    2. If it exists, scan docs/adr/README.md index for relevant entries
    3. Read matching ADR files and present the Context and Decision sections
    4. If no match is found, respond: "No ADR found for that decision. Would you like to record one now?"

    ADR Directory Structure

    docs/
    └── adr/
        ├── README.md              ← index of all ADRs
        ├── 0001-use-nextjs.md
        ├── 0002-postgres-over-mongo.md
        ├── 0003-rest-over-graphql.md
        └── template.md            ← blank template for manual use
    

    ADR Index Format

    # Architecture Decision Records
    
    | ADR | Title | Status | Date |
    |-----|-------|--------|------|
    | [0001](0001-use-nextjs.md) | Use Next.js as frontend framework | accepted | 2026-01-15 |
    | [0002](0002-postgres-over-mongo.md) | PostgreSQL over MongoDB for primary datastore | accepted | 2026-01-20 |
    | [0003](0003-rest-over-graphql.md) | REST API over GraphQL | accepted | 2026-02-01 |
    

    Decision Detection Signals

    Watch for these patterns in conversation that indicate an architectural decision:

    Explicit signals

    • "Let's go with X"
    • "We should use X instead of Y"
    • "The trade-off is worth it because..."
    • "Record this as an ADR"

    Implicit signals (suggest recording an ADR — do not auto-create without user confirmation)

    • Comparing two frameworks or libraries and reaching a conclusion
    • Making a database schema design choice with stated rationale
    • Choosing between architectural patterns (monolith vs microservices, REST vs GraphQL)
    • Deciding on authentication/authorization strategy
    • Selecting deployment infrastructure after evaluating alternatives

    What Makes a Good ADR

    Do

    • Be specific — "Use Prisma ORM" not "use an ORM"
    • Record the why — the rationale matters more than the what
    • Include rejected alternatives — future developers need to know what was considered
    • State consequences honestly — every decision has trade-offs
    • Keep it short — an ADR should be readable in 2 minutes
    • Use present tense — "We use X" not "We will use X"

    Don't

    • Record trivial decisions — variable naming or formatting choices don't need ADRs
    • Write essays — if the context section exceeds 10 lines, it's too long
    • Omit alternatives — "we just picked it" is not a valid rationale
    • Backfill without marking it — if recording a past decision, note the original date
    • Let ADRs go stale — superseded decisions should reference their replacement

    ADR Lifecycle

    proposed → accepted → [deprecated | superseded by ADR-NNNN]
    
    • proposed: decision is under discussion, not yet committed
    • accepted: decision is in effect and being followed
    • deprecated: decision is no longer relevant (e.g., feature removed)
    • superseded: a newer ADR replaces this one (always link the replacement)

    Categories of Decisions Worth Recording

    CategoryExamples
    Technology choicesFramework, language, database, cloud provider
    Architecture patternsMonolith vs microservices, event-driven, CQRS
    API designREST vs GraphQL, versioning strategy, auth mechanism
    Data modelingSchema design, normalization decisions, caching strategy
    InfrastructureDeployment model, CI/CD pipeline, monitoring stack
    SecurityAuth strategy, encryption approach, secret management
    TestingTest framework, coverage targets, E2E vs integration balance
    ProcessBranching strategy, review process, release cadence

    Integration with Other Skills

    • Planner agent: when the planner proposes architecture changes, suggest creating an ADR
    • Code reviewer agent: flag PRs that introduce architectural changes without a corresponding ADR

    Alternatives

    Compare before choosing