Skip to content
architectural-decision-records logo

Architectural Decision Records (ADRs)

architectural-decision-records

Architecture Decision Records (ADRs) format, templates, and best practices for documenting technical decisions. PROACTIVELY activate for: (1) documenting significant technical decisions, (2) recording design trade-offs, (3) creating technology selection rationales. Triggers: "ADR", "decision reco...

SKILL.md

Full skill instructions

Architectural Decision Records (ADRs)

What is an ADR?

An ADR documents why a significant technical decision was made, not just what was decided.

When to Create an ADR

Create an ADR for:

  • Technology selection (Next.js vs Remix, Zustand vs Redux)
  • Architectural patterns (Server Components default, API design approach)
  • Data modeling decisions (SQL vs NoSQL, schema design)
  • Security patterns (authentication approach, authorization model)
  • Performance trade-offs (caching strategy, bundling approach)

Don't create ADRs for:

  • Routine code changes
  • Bug fixes
  • Refactoring without architectural impact

ADR Template

# ADR-[NUMBER]: [Title in Present Tense]

**Date**: YYYY-MM-DD
**Status**: [Proposed | Accepted | Deprecated | Superseded by ADR-XXX]
**Deciders**: [Names]

## Context

[What problem are we solving? What forces are at play? What constraints exist?]

## Decision

[What are we doing? Be specific and concrete.]

## Consequences

### Positive Consequences
- [Benefit 1]
- [Benefit 2]

### Negative Consequences
- [Cost/​Risk 1]
- [Cost/​Risk 2]

### Mitigation Strategies
- [How to address negative consequence 1]
- [How to address negative consequence 2]

## Alternatives Considered

### Alternative 1: [Name]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
- **Why Rejected**: [Specific reason]

### Alternative 2: [Name]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
- **Why Rejected**: [Specific reason]

## References

- [Documentation links]
- [Related ADRs]

Example ADR

# ADR-001: Adopt React Server Components as Default

**Date**: 2025-10-23
**Status**: Accepted
**Deciders**: Engineering Team

## Context

Next.js 14+ offers two component types: Server Components (default) and Client
Components. We must decide which to use as our default pattern.

Our goals:
- Minimize client-side JavaScript bundle size
- Improve page load performance
- Maintain developer productivity

Constraints:
- Team has React experience but limited RSC knowledge
- Some features require client-side interactivity

## Decision

We will use **React Server Components** as the default for all new components.
Client Components (marked with 'use client') will be used only for:
- Interactive UI (forms with local state, buttons with onClick)
- Browser API usage (localStorage, window)
- React hooks (useState, useEffect)

## Consequences

### Positive Consequences
- **50% smaller bundles**: Less JavaScript sent to client
- **Faster page loads**: Server-rendered HTML loads immediately
- **Better SEO**: Pre-rendered content is indexable
- **Direct database access**: No need for API layer in many cases

### Negative Consequences
- **Learning curve**: Team must understand Server vs Client boundaries
- **Debugging complexity**: Errors can occur in different environments
- **Third-party library compatibility**: Not all libraries work with RSC

### Mitigation Strategies
- Provide team training on Server Component patterns
- Create reusable templates for common scenarios
- Document compatible libraries in project wiki
- Use TypeScript strict mode to catch boundary violations early

## Alternatives Considered

### Alternative 1: Client Components Default (Traditional React)
- **Pros**: Team familiar with this approach, no learning curve
- **Cons**: Larger bundles, slower performance, more boilerplate
- **Why Rejected**: Doesn't leverage Next.js 14+ performance benefits

### Alternative 2: Mix without clear default
- **Pros**: Flexibility to choose per component
- **Cons**: Inconsistent codebase, harder to review/​maintain
- **Why Rejected**: Need clear patterns for team consistency

## References

- [React Server Components](https://react.dev/​reference/​rsc/​server-components)
- [Next.js App Router](https://nextjs.org/​docs/​app)

ADR Lifecycle

  1. Proposed - Decision under discussion
  2. Accepted - Decision approved and being implemented
  3. Deprecated - Decision no longer valid but kept for history
  4. Superseded by ADR-XXX - Decision replaced by newer ADR

Store ADRs in docs/​adr/ directory with sequential numbering.

For full examples and governance, use /​generate-adr command.

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View