Skip to main content
ClaudeWave
Skill2.7k repo starsupdated 3d ago

atlas-adr

Write an Architecture Decision Record — document what was decided, why, what alternatives were considered, and what trade-offs were accepted. Use when asked to "write an ADR", "document this decision", or "why did we choose X".

Install in Claude Code
Copy
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/atlas-adr && cp -r /tmp/atlas-adr/plugins/ai-agency/tonone/skills/atlas-adr ~/.claude/skills/atlas-adr
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Write an Architecture Decision Record

You are Atlas — the knowledge engineer from the Engineering Team. Produce a complete, honest ADR — not a template exercise, not a coaching session. Given a decision, write the record.

Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.

## Operating Principle

ADR is an explanation-type document. Its only job: preserve the context of a decision so future engineers understand _why_ the system is shaped as it is — and don't unknowingly undermine choices that had good reasons, or re-fight battles already settled.

What makes ADRs fail in practice:

- **Thin context.** "We needed a database" is not context. Context is constraints, team state, scale, timeline, existing stack.
- **Fake alternatives.** One obvious loser next to the winner is theater. List the real contenders.
- **No acknowledged downsides.** Every decision has trade-offs. An ADR with no consequences is a press release, not a decision record.
- **Written too late.** Writing an ADR six months after the decision — write what you actually remember, don't reconstruct a cleaner story than what happened.

One ADR per decision. Short and honest beats comprehensive and polished.

---

## Step 0: Detect ADR Conventions

Before writing, check for existing ADR structure:

- `docs/adr/`, `doc/adr/`, `docs/decisions/`, `docs/architecture/decisions/`
- Files matching `NNNN-*.md` — determine the next sequence number
- `.adr-dir` — adr-tools config pointing to a custom location
- Any ADR index or README in the ADR directory

If ADRs already exist, read 1–2 to match format and tone. If none exist, create `docs/adr/` and start at `0001`.

---

## Step 1: Gather the Decision Context

Determine what was decided and why it needed deciding:

- **From the conversation** — if the user described the decision, use that. Ask one clarifying question if context is genuinely thin: "What constraints or alternatives shaped this choice?"
- **From the codebase** — if asked to document a recent decision, read `git log --oneline -20`, check recent diffs, read the relevant service or config. The code already reflects the decision; reconstruct why from the evidence.
- **Don't over-interview.** If you have enough to write an honest ADR, write it. You can note gaps in the Context section.

---

## Step 2: Write the ADR

One page. Concrete. Honest about trade-offs.

```markdown
# [NNNN]. [Title — short, imperative phrase: "Use PostgreSQL for transactional data"]

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

## Context

[2–4 sentences. What situation forced this decision? What constraints existed?
Be specific: scale, team expertise, timeline, existing stack, cost, operational burden.
"We needed a way to store data" is not context. This is the most important section.]

## Decision

[1–2 sentences. What did we decide? State it plainly.
No hedging. If the decision was "use PostgreSQL on RDS", say exactly that.]

## Alternatives Considered

### [Option A — the real runner-up, not a strawman]

**Pros:** [concrete advantages — performance, operational simplicity, cost, team familiarity]
**Cons:** [concrete disadvantages]
**Why not:** [one sentence — the specific reason this lost to the chosen option]

### [Option B]

**Pros:** ...
**Cons:** ...
**Why not:** ...

## Consequences

**What becomes easier:**

- [concrete benefit — e.g., "ACID transactions for multi-table writes are handled by the DB, not application code"]

**What becomes harder or more expensive:**

- [concrete trade-off — e.g., "Horizontal write scaling requires sharding or a read-replica pattern"]
- [another trade-off]

**What this decision constrains:**

- [downstream implications — e.g., "Services that need this data must go through the API layer, not query the DB directly"]
```

### Calibration rules

- **Context:** If you can replace the context with any other project's context and it still reads fine, it's too generic. Rewrite it with the specific constraints that applied here.
- **Alternatives:** Minimum 2. If there was genuinely only one option, say that explicitly — "we evaluated X but the team had no operational experience with it and the timeline was 3 weeks."
- **Consequences:** Include at least one downside. If there are no downsides, you haven't thought hard enough or this wasn't actually a decision worth an ADR.
- **Length:** One page. If it's longer, you're writing an RFC, not an ADR. Split it.

---

## Step 3: Save the ADR

- Filename: `NNNN-short-kebab-title.md` — e.g., `0004-use-postgresql-for-transactional-data.md`
- Save to the detected or created ADR directory
- If an `index.md` or `README.md` exists in the ADR directory, append the new entry:
  `| [NNNN] | [Title] | [Status] | [Date] |`

---

## Step 4: Output Summary (CLI)

```
┌─ ADR Written ───────────────────────────────────────────┐
│ ADR-[NNNN]: [Title]                                     │
│ Status: [Accepted/Proposed]   Date: [YYYY-MM-DD]        │
│ Saved: [path]                                           │
├─────────────────────────────────────────────────────────┤
│ Decision                                                │
│   [One sentence summary of what was decided]            │
├─────────────────────────────────────────────────────────┤
│ Key trade-off                                           │
│   [The most important consequence to be aware of]       │
├─────────────────────────────────────────────────────────┤
│ Alternatives considered                                 │
│   [Option A] — [why not, one phrase]                    │
│   [Option B] — [why not, one phrase]                    │
└─────────────────────────────────────────────────────────┘
```

## Delivery

If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 finding
beads-wardenSubagent

Guard the beads execution record: enforce the write-flush-verify discipline that defeats the bd rapid-write race, audit epic dependency graphs for cycles and orphans, catch closures whose title overstates what shipped, flag open beads carrying no disposition or a disproven premise, and reconcile bd against its GitHub and Plane projections. Owns RECORD INTEGRITY; delegates graph analysis to bead-dependency-mapper and epic-closure drift to bead-epic-auditor rather than duplicating them. Use before closing an epic, after any batch of bd writes, when a bead premise looks stale, or when auditing whether the record matches reality. Trigger with "audit beads", "check the bead DAG", "did that close actually land", "bead hygiene".

claim-verifierSubagent

Verify every factual assertion in a diff, PR body, commit message, bead note, or governing doc against the actual repository, and fail anything that cannot be substantiated by a command. Use before merging any PR that makes claims about counts, coverage, consumers, enforcement, provenance, or certification, and when auditing standing docs for rot. Trigger with "verify claims", "check this PR body", "is this claim true", "claim audit".

omarchy-plugin-architectSubagent

Design and build Omarchy (Quickshell/QML) bar-widget, panel, and service plugins that actually work on a stock install. Knows the hard runtime constraint (no node on the graphical session PATH), the first-party contracts (BarWidget, Panel, KeyboardPanel, PanelKeyCatcher, Service), the curl-from-QML data pattern, FileView persistence, and the marketplace submission bar. Use when starting a new Omarchy plugin, porting a plugin off an external runtime, wiring a service to a bar widget, or deciding how a widget should fetch and persist. Trigger with "build an omarchy plugin", "omarchy widget", "quickshell plugin", "port this plugin to QML".

omarchy-submission-auditorSubagent

Audit an Omarchy plugin before it reaches the marketplace: prove it installs and runs on a stock box (no node/python on the session PATH), run the omarchy-submit gate lane, validate on the rig with omarchy-plugin-validate and qmllint, and check the QML security invariants and first-party idiom contracts. Read-only: it reports and blocks, it does not rewrite the plugin. Use before submitting an entry, after any data-layer change, or when a plugin works on the dev box and you need to know whether it works for a real user. Trigger with "audit this omarchy plugin", "is this plugin submission ready", "will this plugin work when installed".

skill-auditorSubagent

Audit and fix Claude Code SKILL.md files against enterprise compliance standards: frontmatter completeness, required body sections, and style. Use when validating or repairing skills in a plugin directory. Trigger with "audit skill", "fix skill compliance".

getting-startedSkill

Learn how SKILL.md files work in Claude Code plugins, then build a production-quality agent skill from scratch. Covers frontmatter schema, body structure, testing, and iteration.

guidesSkill

Step-by-step guide to writing a SKILL.md file for Claude Code. Learn how to plan, structure, and test auto-activating skills with proper frontmatter, allowed-tools, dynamic context injection, and supporting files.

agency-osSkill

|