Skip to content
Back to skills

New Adr

ASecurity

Creates a new Architecture Decision Record (ADR) in docs/decisions/. Auto-numbers the file based on the highest existing ADR number. Use when asked to "create an ADR about X", "record the decision to use X", "document the architecture decision for X", "add to the decision log", "write an ADR for X", or "record why we chose X".

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsgogit

Works with

  • claude code

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add OmarSaleh506/skills --skill new-adr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of New Adr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for New Adr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/omarsaleh506-new-adr/badge)](https://www.skillsdirectory.com/skills/omarsaleh506-new-adr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: new-adr
description: >-
  Creates a new Architecture Decision Record (ADR) in docs/decisions/.
  Auto-numbers the file based on the highest existing ADR number.
  Use when asked to "create an ADR about X", "record the decision to use X",
  "document the architecture decision for X", "add to the decision log",
  "write an ADR for X", or "record why we chose X".
---

# new-adr

Creates a properly-numbered ADR file in `docs/decisions/`.

## Steps

1. **Determine the next number**
   - List all files matching `docs/decisions/[0-9]*.md`
   - Extract the leading `NNNN` from each filename
   - Take the highest number and add 1 (pad to 4 digits)
   - If no files exist yet, start at `0002` (0001 is the bootstrap ADR)

2. **Build the filename**
   - Slugify the decision title: lowercase, spaces → hyphens, remove
     punctuation
   - Filename: `docs/decisions/NNNN-<slug>.md`

3. **Write the ADR** using the template below, filled in with the decision
   context the user provided. Leave `[date]` as today's ISO date and
   `[author]` as "Claude Code" unless the user specifies otherwise.

4. **Update the architecture doc** (optional)
   - If `docs/architecture.md` has a "Key Design Decisions" section,
     append a link row. If the section doesn't exist, skip this step.

5. **Report** the file path created and the ADR's title + number.

## ADR Template

```markdown
# ADR-NNNN: [Decision Title]

- **Status:** Draft
- **Date:** [YYYY-MM-DD]
- **Author:** [author]

## Context

_What situation or requirement forced this decision?_

## Decision

_What was decided, stated directly: "We will ..."_

## Consequences

- **Good:** ...
- **Trade-off:** ...
- **Risk:** ...
```

## Rules

- **Never overwrite** an existing ADR — create a new "Supersedes ADR-XXXX" one instead.
- **Status is "Draft"** unless the user explicitly says it's accepted.
- Keep ADRs short. If context needs more than 150 words, summarise.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.