agent-builder
Build AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK, claude -p, SDK MCP servers, hooks,…
Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for".
$ npx -y skills add Mathews-Tom/armory --skill adr-writer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/adr-writerContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for".
name: adr-writer description: 'Generates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for".' metadata: version: 1.1.1 category: operations tags: [architecture, decision-record, documentation, adr] difficulty: intermediate phase: plan
Captures architecture decisions in a lightweight, structured format that preserves context, rationale, alternatives, and consequences. Produces numbered ADR documents with proper status lifecycle — preventing the "why did we do it this way?" problem when revisiting decisions months later.
| File | Contents | Load When | | ------------------------------------- | -------------------------------------------------------------- | ------------------------------------- | | `references/adr-template.md` | Standard ADR template with field explanations and examples | Always | | `references/status-lifecycle.md` | Status transitions, supersession rules, deprecation process | ADR references existing decisions | | `references/context-capture.md` | Techniques for eliciting and documenting decision context | Complex or multi-stakeholder decision | | `references/alternatives-analysis.md` | Framework for evaluating and documenting rejected alternatives | Multiple options being considered |
1. **What choice was made?** — Extract the core architectural decision. If the user describes a problem, help them articulate the decision that resolves it. 2. **Is this decision-worthy?** — ADRs are for decisions that:
3. **What triggered this decision?** — New requirement, performance issue, scaling concern, security audit finding, tech debt, team growth.
Document the forces that shaped this decision:
1. **Requirements** — What functional or non-functional requirements drive this? 2. **Constraints** — What limits the solution space? (budget, timeline, team expertise, existing infrastructure, regulatory requirements) 3. **Current state** — What exists today? What is the pain point? 4. **Stakeholders** — Who is affected by this decision? Who needs to agree?
For each alternative considered:
1. **Name it clearly** — "PostgreSQL" not "Option A" 2. **List concrete pros** — Specific, measurable benefits 3. **List concrete cons** — Specific, measurable drawbacks 4. **State the rejection reason** — Why this alternative was not chosen. Be specific: "Does not support our required throughput of 10K ops/sec" not "Too slow."
State the chosen option and why it was selected given the context and constraints. The decision should follow logically from the context + alternatives analysis.
Document what this decision makes easier and harder:
1. **Positive consequences** — What improves? 2. **Negative consequences** — What tradeoffs are accepted? What tech debt is incurred? 3. **Neutral consequences** — Side effects that are neither good nor bad.
1. **Number** — Sequential: ADR-001, ADR-002, etc. Check existing ADRs for the next number. 2. **Status** — Initial status is usually "Proposed" or "Accepted" 3. **Date** — Date the ADR was written 4. **Author** — Who authored this ADR 5. **Supersedes/Superseded-by** — Link to related ADRs if this replaces an earlier decision
# ADR-{NNN}: {Descriptive Title}
**Status:** {Proposed | Accepted | Deprecated | Superseded by ADR-XXX}
**Date:** {YYYY-MM-DD}
**Author:** {name}
**Supersedes:** {ADR-XXX (if applicable)}
## Context
{What situation requires a decision? What constraints exist? What forces are at play?
Write in present tense — describe the situation as it exists at decision time.}
## Decision
{State the decision clearly and concisely. "We will use X for Y because Z."
One to three sentences. The reader should understand the decision without reading
the rest of the document.}
## Alternatives Considered
### {Alternative 1 Name}
- **Pros:** {specific benefits}
- **Cons:** {specific drawbacks}
- **Rejected because:** {concrete, specific reason tied to context}
### {Alternative 2 Name}
- **Pros:** {specific benefits}
- **Cons:** {specific drawbacks}
- **Rejected because:** {concrete, specific reason tied to context}
## Consequences
### Positive
- {Concrete benefit 1}
- {Concrete benefit 2}
### Negative
- {Concrete tradeoff 1 — acknowledged and accepted}
- {Technical debt incurred — with plan to address if applicable}
### Neutral
- {Side effect that is neither positive nor negative}
## References
- {Link to related issue, discussion, document, or prior ADR}1. **Context is king.** The Context section is the most important part. A decision without context is just an assertion. Future readers need to understand WHY, not just WHAT. 2. **Specific rejection reasons.** "Not suitable" is not a rejection reason. "Does not support transactions across partitions, which we need for order processing" is. 3. **Honest consequences.** Every decision has downsides. If the Negative section is empty, the ana
Curated, production-grade skills, agents, hooks, rules, commands, utilities, and presets for AI coding agents. No magic, no demos — battle-tested workflows built for developers who use AI seriously.
Repo: Mathews-Tom/armory
Build AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK, claude -p, SDK MCP servers, hooks,…
Audits and enhances FastAPI and REST API documentation: missing descriptions, response codes, examples, docstrings, Pydantic models, OpenAPI spec. Triggers on:…
Generate architecture diagrams as fully editable SVG with native AWS, Azure, and GCP icons for cloud diagrams, or hand-drawn generic icons for everything else.…
Architecture reviews across 7 dimensions (structural, scalability, enterprise readiness, performance, security, ops, data) with scored reports. Triggers on:…
Optimize and prepare figures for arXiv submission: format conversion (EPS/PDF/PNG/JPG), size reduction, metadata stripping, processor compatibility (DVI vs…
Package a TeX/LaTeX project into a clean tarball or zip for arXiv upload: file selection, build-artifact exclusion, 00README.XXX generation, ancillary file…