Home / codenamev / ai-software-architect · skills/create-adr/SKILL.md · GitHub

create-adr skillA

create-adr is agent-read markdown (skill) from codenamev/ai-software-architect: Creates a NEW Architectural Decision Record (ADR) documenting a specific architectural decision. Use when the user requests "Create ADR for [topic]", "Document decision about [topic]", "Write ADR for [choice]", or when documenting technology choices, patterns, or architectural approaches. Do NOT use for reviews (use architecture-review or specialist-review), checking existing ADRs (use architecture-status), or general documentation..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Create Architectural Decision Record (ADR)

Creates structured ADRs following the framework's template.

## Process

### 1. Gather Context
Ask if needed:
- What decision is being made?
- What problem does it solve?
- What alternatives were considered?
- What are the trade-offs?

### 2. Generate ADR Number
```bash
# Find highest ADR number
ls .architecture/decisions/adrs/ | grep -E "^ADR-[0-9]+" | sed 's/ADR-//' | sed 's/-.*//' | sort -n | tail -1
```
New ADR = next sequential number (e.g., if highest is 003, create 004)

### 3. Validate and Sanitize Input
**Security**: Sanitize user input to prevent path traversal and injection:
- Remove or replace: `..`, `/`, `\`, null bytes, control characters
- Convert to lowercase kebab-case: spaces → hyphens, remove special chars
- Limit length: max 80 characters for filename portion
- Validate result: ensure filename contains only [a-z0-9-]

### 4. Create Filename
Format: `ADR-XXX-kebab-case-title.md`

Examples:
- `ADR-001-use-react-for-frontend.md`
- `ADR-002-choose-postgresql-database.md`

**Valid input**: "Use React for Frontend" → `use-react-for-frontend`
**Invalid blocked**: "../etc/passwd" → sanitized or rejected
…

Read the whole file at its exact version.

How to install

Latest version
mdr add codenamev/ai-software-architect/create-adr@git:20260504.d1d5014
Exact content
mdr add codenamev/ai-software-architect/create-adr@sha256:1f55c9d8dfe33cbf

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ambtnzbr3i3aayzr.svg)](https://markdownregistry.com/a/art_ambtnzbr3i3aayzr)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260504.d1d5014 latest2026-05-04 d1d5014 4,508 BA view · diff
git:20260504.27ad56d2026-05-04 27ad56d 4,474 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4508 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

codenamev/ai-software-architect · 78 stars · license none · pushed 2026-09-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ambtnzbr3i3aayzr
GET https://markdownregistry.com/api/v1/resolve?ref=codenamev/ai-software-architect/create-adr
GET https://markdownregistry.com/api/v1/blob/1f55c9d8dfe33cbf9b26612507c5a3c2ca6f534276f95ab7deff8e3e1c3f8cb5

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from codenamev/ai-software-architect

AGENTS.md@.architecture/templates agents
codenamev/ai-software-architect · .architecture/templates/AGENTS.md
git:20251204.37685d4 · audit A · 78 stars
CLAUDE.md@.coding-assistants/claude claude
codenamev/ai-software-architect · .coding-assistants/claude/CLAUDE.md
git:20250523.71cdbef · audit A · 78 stars
AGENTS.md agents
codenamev/ai-software-architect · AGENTS.md
git:20260819.01d777e · audit A · 78 stars
CLAUDE.md claude
codenamev/ai-software-architect · CLAUDE.md
git:20260723.a1c9603 · audit A · 78 stars
architecture-review skill
codenamev/ai-software-architect · skills/architecture-review/SKILL.md · Conducts a comprehensive multi-perspective architecture review using ALL architecture team members. Use when the user…
git:20260504.de7ccc8 · audit A · 78 stars
architecture-status skill
codenamev/ai-software-architect · skills/architecture-status/SKILL.md · Reports on the health and state of architecture documentation (counts of ADRs, reviews, activity levels, documentation…
git:20260504.27ad56d · audit A · 78 stars
list-members skill
codenamev/ai-software-architect · skills/list-members/SKILL.md · Displays the roster of architecture team members with their specialties and expertise areas. Use when the user asks…
git:20260504.27ad56d · audit A · 78 stars
pragmatic-guard skill
codenamev/ai-software-architect · skills/pragmatic-guard/SKILL.md · Enables and configures Pragmatic Guard Mode (YAGNI Enforcement) to prevent over-engineering. Use when the user requests…
git:20260504.d1d5014 · audit A · 78 stars
setup-architect skill
codenamev/ai-software-architect · skills/setup-architect/SKILL.md · Sets up and installs the AI Software Architect framework in a NEW project for the FIRST time. Use when the user…
git:20260723.a1c9603 · audit A · 78 stars
specialist-review skill
codenamev/ai-software-architect · skills/specialist-review/SKILL.md · Conducts a focused review from ONE specific specialist's perspective (e.g., Security Specialist, Performance Expert)…
git:20260504.de7ccc8 · audit A · 78 stars

Every file in codenamev/ai-software-architect

Browse by kind, by grade A, or by owner.