Memory Decide

VerifiedSafe

Creates Architecture Decision Records (ADRs) to document significant technical choices. Use it when you need to record the rationale behind a design or architecture decision, including context, options considered, and the chosen approach. It stores records in a structured markdown format in the project's memory system for future reference.

Sby Skills Guide Bot
DevelopmentIntermediate
706/2/2026
Claude Code
#architecture-decision-records#documentation#decision-making#adr#technical-decisions

Recommended for

Our review

Creates Architecture Decision Records (ADRs) to document important architectural and design decisions in a structured format.

Strengths

  • Clear, repeatable structure for documenting decisions
  • Numbering and slug system for easy retrieval
  • Supports quick inline input mode
  • Encourages consideration of alternatives and consequences

Limitations

  • Requires discipline to keep records up to date
  • Does not automatically handle retroactive changes or superseded decisions
  • Depends on user providing complete information
When to use it

Use this skill when making a significant technical decision that needs to be tracked and referenced later.

When not to use it

Avoid using it for trivial choices or quick notes that do not require formal documentation.

Security analysis

Safe
Quality score92/100

The skill only reads and writes files within a designated documentation directory (.claude/memory/decisions/). It does not execute any external commands, network calls, or destructive actions. File path sanitization (lowercase, underscore replacement, removal of special characters) reduces risk of path traversal. No sensitive data is exfiltrated. The operations are purely for creating decision records based on user input.

No concerns found

Examples

Create a new ADR for database choice
I need to document our decision to use PostgreSQL as the primary database. We considered MySQL and MongoDB but chose PostgreSQL for its advanced indexing and ACID compliance.
Quick mode inline ADR
/memory-decide Use JWT for API auth because it's stateless and works well with microservices. Considered session cookies but they don't scale across services.

description: Create decision records (ADRs) to document architectural and design decisions. Use when making significant technical choices.

Memory Decide

Create a new decision record (ADR) in the memory system.

Instructions

When this skill is triggered, perform the following steps:

Step 1: Find Next Decision Number

Scan the .claude/memory/decisions/ directory for existing decision files.

Decision files follow the format: NNNN_decision_slug.md Examples:

  • 0001_database_choice.md
  • 0002_authentication_strategy.md

Find the highest existing number and increment by 1. If no files exist, start at 0001.

Step 2: Prompt for Decision Details

Ask the user for the following information:

Required:

  1. Decision Title: Brief title describing the decision
  2. Context: What problem or situation led to this decision?
  3. Options Considered: What alternatives were evaluated?
  4. Chosen Option: Which option was selected and why?

Optional: 5. Consequences: What changes as a result of this decision? 6. Status: Accepted (default), Superseded, or Deprecated

Example prompt:

To create a decision record, please provide:

1. **Title** (required): What is this decision about?
   Example: "Use PostgreSQL for primary database"

2. **Context** (required): What problem are we solving?

3. **Options** (required): What alternatives did you consider?
   Format each option with pros/cons if possible

4. **Decision** (required): What did you choose and why?

5. **Consequences** (optional): What changes as a result?

Step 3: Generate Slug

Create a URL-friendly slug from the title:

  • Convert to lowercase
  • Replace spaces with underscores
  • Remove special characters
  • Limit to 50 characters

Step 4: Create Decision File

Create the file at .claude/memory/decisions/NNNN_slug.md using this template:

# Decision NNNN: [Title]

**Date**: YYYY-MM-DD
**Status**: Accepted

## Context
[What issue are we facing? What motivated this decision?]

## Options Considered

### Option 1: [Name]
[Description]
- **Pros**: [advantages]
- **Cons**: [disadvantages]

### Option 2: [Name]
[Description]
- **Pros**: [advantages]
- **Cons**: [disadvantages]

## Decision
[What we chose and the rationale behind the choice]

## Consequences
[What changes as a result of this decision]
- [Positive consequence]
- [Negative consequence or trade-off]
- [Required follow-up actions]

Step 5: Confirm Creation

Display confirmation to user:

## Decision Record Created

**File**: `.claude/memory/decisions/NNNN_slug.md`
**Title**: Decision NNNN: [Title]
**Date**: YYYY-MM-DD
**Status**: Accepted

### Summary
[Brief summary of the decision]

### Options Evaluated
1. [Option 1 name]
2. [Option 2 name]

### Chosen: [Selected option]

---
Decision recorded. Reference this as "Decision NNNN" in future discussions.

File Paths

  • Decisions directory: .claude/memory/decisions/
  • File format: NNNN_slug.md (zero-padded 4-digit number)

Error Handling

  • If .claude/memory/decisions/ doesn't exist, create it
  • If user provides incomplete info, ask follow-up questions
  • If slug collision occurs, append number: 0005_api_design_2.md

Quick Decision Mode

If user provides all info inline, skip the prompts and create directly:

User: /memory-decide Use JWT for API auth because it's stateless and works well with microservices. Considered session cookies but they don't scale across services.

Claude parses the input and creates the record immediately.

Related skills