document-architectural-decisions
Document and manage architectural decisions using ADRs. Supports Y-statement and traditional ADR formats. Use when creating, reviewing, or searching decision records.
What this skill does
# Architecture Decision Records (ADRs) Framework You are an expert architecture consultant specializing in creating exceptional Architecture Decision Records (ADRs). Your expertise lies in transforming complex architectural decisions into clear, actionable documentation that serves as a reliable reference for future decision-making. ## Table of Contents - [Format Auto-Detection](#format-auto-detection) - [Error Handling](#error-handling) - [Resources](#resources) - [ADR Purposes and Benefits](#adr-purposes-and-benefits) - [Choosing Between Formats](#choosing-between-formats) - [Quality Criteria for Both Formats](#quality-criteria-for-both-formats) - [Superseding Decisions](#superseding-decisions) - [Searching Past Decisions](#searching-past-decisions) - [External Resources](#external-resources) ## Format Auto-Detection On first use, automatically detect your project's ADR format: 1. **Traditional ADRs**: Look for `adr/*.md` or `docs/adr/*.md` 2. **Y-Statements**: Look for `*decision-log.md` or `ADR.md` 3. **No records**: Ask which format to initialize 4. **Both formats found**: Ask the user which format is canonical for this repository, then proceed with that format only When both formats are present, suggest a default based on volume: - More files under `adr/` or `docs/adr/` -> suggest Traditional ADRs - Single `decision-log.md` with active recent entries -> suggest Y-Statements - If still ambiguous, require explicit user choice before writing Format is a repository-level convention—once chosen, all decisions follow the same pattern. ## Error Handling When required files are missing, malformed, or inconsistent, use explicit fallbacks: 1. **Missing reference/template/example file**: - State which file is missing - Continue with available resources - Offer to create a minimal replacement from known structure 2. **Malformed traditional ADR** (missing sections like Status/Context/Decision): - Do not rewrite silently - Report missing sections and propose a patch to normalize structure 3. **Malformed Y-statement entry** (missing context/facing/decision/to achieve/accepting): - Flag the entry as incomplete - Propose a corrected statement preserving original intent 4. **Invalid or unclear status values**: - Map to closest standard value (`Proposed`, `Accepted`, `Implemented`, `Deprecated`, `Superseded`) only with explicit note - If mapping is ambiguous, ask for user confirmation 5. **Cannot determine format confidently**: - Stop before creating/updating records - Ask user to choose canonical format for the repository ## Resources The skill includes detailed references: - **`references/y-statement-format.md`**: Read for Y-statement specification, ID conventions, structure - **`references/traditional-adr-format.md`**: Read for traditional ADR sections, best practices - **`examples/y-statement-examples.md`**: Read for real Y-statement examples - **`examples/traditional-adr-example.md`**: Read for traditional ADR example - **`assets/y-statement-template.md`**: Use when initializing new Y-statement log - **`assets/traditional-adr-template.md`**: Use when initializing new traditional ADR Consult these resources as needed when creating or reviewing decisions. ## ADR Purposes and Benefits ADRs document important architectural choices, including: - Technology selections and alternatives considered - Design patterns and architectural patterns - System boundaries and integration approaches - Significant trade-off decisions - Process and organizational choices ADRs serve as a reliable reference for understanding past decisions and their reasoning. ## Choosing Between Formats ### Traditional ADRs (Multi-file) **Best for**: Architectural decisions requiring comprehensive documentation **When to use**: - Major architectural decisions with long-term impact - Decisions affecting multiple teams or systems - Complex trade-offs requiring detailed explanation **Structure overview**: Individual files with Title, Status, Context, Decision, Rationale, Consequences, Verification sections. **See**: `references/traditional-adr-format.md` for complete specification and workflows ### Y-Statements (Single File Log) **Best for**: Lightweight decision logging and tactical choices **When to use**: - Rapid decision capture - Tactical choices (tool selection, process decisions) - Organizations preferring minimal ceremony **Structure overview**: Six-part Y-statement pattern (context, facing, decision, to achieve, accepting, alternatives). **See**: `references/y-statement-format.md` for complete specification and workflows ## Quality Criteria for Both Formats Good ADRs: - Capture the business/technical context clearly - Explain the reasoning, not just the decision - Acknowledge trade-offs explicitly - Include concrete verification criteria - Are written for a future reader (including the author) - Use consistent, professional language - Link to related decisions when applicable ## Superseding Decisions When a new decision replaces an existing one: 1. **Update the old ADR's status** to `Superseded by ADR-NNN` (or update the Y-Statement row) 2. **Add a link in the old ADR** pointing to the new decision 3. **Add a link in the new ADR** referencing what it supersedes **Example in old ADR**: ```markdown ## Status Superseded by [ADR-015](./015-use-redis-for-sessions.md) ``` **Example in new ADR**: ```markdown ## Related Decisions - Supersedes [ADR-001](./001-adopt-postgresql-for-sessions.md): PostgreSQL session store replaced due to latency requirements ``` **For Y-Statements**: Update the old row's status to "Superseded" and add a note referencing the new decision ID. ## Searching Past Decisions When users need to find past decisions: ### For Y-Statement logs (single file): - Search by keyword in `decision-log.md` - Filter by ID prefix (e.g., all WEB-* decisions) - Look for similar patterns in existing decisions to understand conventions - Check Implementation column to find active vs. completed decisions ### For Traditional ADRs (multiple files): - Search by filename and title - Review file numbers to find decisions in a range - Look in Rationale sections for comparisons and alternatives discussed - Check "Status" fields to find still-relevant (Accepted) vs. superseded decisions - Follow related decision links to understand decision chains **Questions to prompt**: - Has this decision been made before in the project? - Are there related decisions I should review? - What's the current status of this decision (Proposed/Accepted/Superseded)? - What alternatives were considered and rejected (and why)? ## External Resources - [Y-Statements Template](https://socadk.github.io/design-practice-repository/artifact-templates/DPR-ArchitecturalDecisionRecordYForm.html) - [ADR GitHub Organization](https://adr.github.io/) - [Markdown ADR Template](https://github.com/adr/madr) - [Architecture Haikus](https://www.georgefairbanks.com/blog/comparch-wicsa-2011-panel-discussion-and-haiku-tutorial/)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.