Architecture decisions — the question and constraints, an RFC with options and consequences (security, performance, cost, operations, reversibility), writing the ADR, technical design of a task, reviewing code or a specification against accepted ADRs. Use it when you need to choose an approach, add a dependency or infrastructure, design a task or check conformance to decisions (RFC, ADR, architecture review, technical design, trade-offs).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Architecture Decisions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-architecture-decisions)
---
name: architecture-decisions
description: Architecture decisions — the question and constraints, an RFC with options and consequences (security, performance, cost, operations, reversibility), writing the ADR, technical design of a task, reviewing code or a specification against accepted ADRs. Use it when you need to choose an approach, add a dependency or infrastructure, design a task or check conformance to decisions (RFC, ADR, architecture review, technical design, trade-offs).
metadata:
category: architecture
---
# Architecture decisions and review
## Purpose
This skill takes a decision from the question to an ADR and checks whether code or a specification conforms to accepted decisions. The owner chooses the decision. The skill prepares options and consequences, records the chosen option and finds discrepancies — it does not choose for the owner where documents are silent.
## Inputs
- Decision question, constraints, NFRs.
- Accepted ADRs and Project Brain.
## Outputs
- RFC (`templates/rfc.md`) and ADR (`templates/adr.md`) as `proposed`.
- Review against ADRs.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "architecture decision"` for prior decisions, patterns and lessons.
- [ADR rules and template](../../../docs/adr/README.md) — statuses, links between ADRs, numbering.
- [AGENTS.md](../../../AGENTS.md) — the project's [invariants](../../../AGENTS.md#invariants): a decision must preserve them.
- [Documentation table of contents](../../../docs/README.md) — architecture and technology stack, if the project has them (for example `docs/architecture.md`, `docs/tech-stack.md`).
- Accepted ADRs affected by the question.
- RFC and review report templates — [../../../templates/rfc.md](../../../templates/rfc.md).
## Steps
1. **Question.** State which decision is needed, why now and what breaks without it. Find the current ADRs and canonical documents.
**Rule:** if the decision is already made by an ADR, this is a review or a refinement, not a new choice.
Done when the question is written in one sentence with links to the affected ADRs.
2. **Constraints.** Invariants from `AGENTS.md`, accepted ADRs, security, privacy and performance requirements, external commitments.
Done when every constraint has a link to its source.
3. **Options.** At least two real options, including "change nothing". Consequences along the axes: correctness and invariants, security and data isolation, performance, cost, operations, complexity and maintenance, reversibility.
**Rule:** speed claims come with a measurement or a measurement plan; a new dependency, infrastructure or library — only via an ADR.
Done when the options table is filled in on every axis or marked "unknown, how to check".
4. **RFC and consultations.** Write the RFC. Collect the comments of the roles the decision affects: `security-architect`, `privacy-specialist`, `performance-engineer`, `devops-engineer`, `sre`.
Done when the RFC has consultants and their comments.
5. **Decision.** The choice is made by the architecture owner; a fundamental decision — by a human. The agent does not choose silently.
Done when the RFC records the chosen option, who decided and the date.
6. **ADR.** Context, decision, consequences, rejected options — from the RFC; status `proposed` before the decision and `accepted` after. File format, number, index and links — per the [ADR rules](../../../docs/adr/README.md) and the `documentation` skill. Related documents link to the ADR instead of copying its rationale.
Done when `npm run check:docs` passes and the diff of accepted ADRs contains only a status or a link line.
7. **Technical design.** Modules and boundaries, data schema and migrations, API contract, transactions and concurrent access, asynchronous jobs, failures and recovery, observability, tests.
Done when every field of the task card from `delivery-planning` (file zone, input, criteria, reviewers) follows from the design with a link to its section.
8. **Review against ADRs.** Go through the applicable ADRs and record every discrepancy — file and line, which decision is violated, the consequence. A discrepancy is fixed in code or by a new ADR, not by a silent exception.
Done when the review report has a verdict for every applicable ADR.
## Best practices
- Include "change nothing" as an option.
- Major decisions go to the Architecture Council.
- State reversibility explicitly.
## Common mistakes
- ADR written after the code.
- Rewriting an accepted ADR.
- Options without cost and operations impact.
## Example
Uploads up to 5 GB: RFC compares proxy, pre-signed direct and resumable uploads; council 4–1 for pre-signed; ADR proposed.
## Reusable prompt
```text
Apply the architecture-decisions skill (.agents/skills/architecture-decisions/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Write the RFC with options and consequences, consult affected roles, and draft the ADR as proposed for the owner.
Cite evidence for every claim; list open questions separately.
```
## Checks
- [ ] Constraints have links; at least two options with consequences on every axis.
- [ ] The choice was made by the owner and recorded.
- [ ] The ADR follows the template, has the right status, is in the index; links to earlier ADRs go both ways.
- [ ] New dependencies, infrastructure and libraries are justified by an ADR.
- [ ] Related documents link to the ADR instead of repeating it.
- [ ] `npm run check:docs` without errors.
## Out of scope
- Product requirements — `product-requirements`; work plan — `delivery-planning`.
- Threat model — `threat-modeling`; performance measurements — `performance`.
- Independent security review — `independent-security-review`; document formatting — `documentation`.