Write a design note or decision record for a technical change, covering the problem, constraints, quality goals, two or three options with costs, a recommendation, affected modules and data, risks, rollout and steps. Documentation only, no application code. Use for "design this", "write an architecture decision record", "how should we build", "compare the options for", "technical design for".
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 Design Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kinzarra-design-architecture)
---
name: design-architecture
description: Write a design note or decision record for a technical change, covering the problem, constraints, quality goals, two or three options with costs, a recommendation, affected modules and data, risks, rollout and steps. Documentation only, no application code. Use for "design this", "write an architecture decision record", "how should we build", "compare the options for", "technical design for".
---
# Design architecture
The result is a design note that lets the owner make the decision in one reading and lets a developer start work from it. It contains no application code and changes none.
## 1. Understand the problem before the solution
- Read the task and write the problem as what hurts and for whom, with numbers when they exist: "imports over 50,000 rows time out after 30 seconds; 12 percent of imports are that large". A solution stated as a problem ("we need a queue") is traced back to what it is for.
- Read the current system where the change lands: the modules, their responsibilities, the data model, the interfaces between them, how it is deployed and run. Draw the current state in a few lines before proposing a new one.
- Read the existing decision records and design notes, and follow their format and numbering. Check whether this question was decided before, and why.
- List what is not known. Ask the questions that change the design; state assumptions for the rest.
## 2. Constraints and quality goals
- **Constraints** are fixed and not up for debate: the existing stack and hosting, team size and skills, deadline, budget, legal and data residency rules, compatibility with existing clients and data, what must keep running during the change.
- **Quality goals** are ranked, at most 3 to 5, each with a measurable target: performance (response time at a percentile, throughput), availability, data durability and consistency, security, cost per month, time to change, operability.
- Rank them. A design cannot maximize all; the ranking is what decides between the options. Take it from the task or propose it and mark it as an assumption.
- State the scale to design for: the current numbers and the expected numbers in 12 months. Do not design for a hundred times that.
- **Non-goals**: what this design deliberately does not solve.
## 3. Options
- Describe 2 or 3 real options. One is the smallest change to what exists, or doing nothing, so that the cost of acting is visible. No straw options that exist only to lose.
- For each option:
- How it works, in one paragraph and a small diagram in text if it helps.
- What changes: modules, interfaces, data, infrastructure, dependencies.
- How it scores against each ranked quality goal.
- Cost: effort to build as a rough size (days or weeks), cost to run, new things the team must learn and operate.
- Risks, and what is hard to undo later.
- Prefer what the project already uses over something new, and the boring proven choice over the novel one, unless a ranked goal cannot be met otherwise. A new technology must name the goal that requires it.
- Verify claims about third-party tools in their own documentation and name the version checked. Mark anything unverified as an assumption.
- Where one unknown decides between options, propose a small time-boxed experiment and say what result picks which option.
## 4. Recommendation
- Name one option and the reason in 2 to 4 sentences, tied to the ranked goals and the constraints.
- State the trade-off accepted: what gets worse and why that is acceptable.
- State what would change the decision: "if imports grow beyond 1 million rows, revisit option C".
## 5. The design in detail (for the recommended option)
- **Modules**: what is added, changed and removed; the responsibility of each in one line; what depends on what. No cyclic dependencies.
- **Interfaces**: each new or changed interface with its operations, inputs, outputs, errors, and who calls it. Signatures and schemas as a specification, not as an implementation.
- **Data**: new and changed entities, fields and relations; who owns each piece of data; migration of existing data; retention and deletion; consistency rules and what happens when two writers collide.
- **Failure behaviour**: for each external call and each new component, what happens when it is slow, down or returns bad data: timeouts, retries, idempotency, fallbacks.
- **Security and privacy**: who may do what, where secrets live, which personal data is touched.
- **Observability**: the logs, metrics and alerts that show the thing works.
## 6. Risks, rollout and rollback
- **Risks**: a table with the risk, its likelihood, its impact, how it is reduced and how it would be noticed.
- **Rollout**: in stages that each deliver something and can be stopped: behind a flag, for a small share of users or data first, the old and new path running side by side while results are compared.
- **Rollback**: for each stage, how to return to the previous state and what happens to data written in between. Name any one-way step.
- **Steps**: an ordered list of tasks, each small enough to review alone, with dependencies between them, a rough size, and the role fit for it. The first step is the one that removes the most uncertainty.
## 7. Output
Save the note where the project keeps its design documents (follow the existing folder and naming; otherwise `docs/decisions/YYYY-MM-DD-short-title.md`) with these sections: Status (proposed), Context and problem, Constraints, Quality goals, Non-goals, Options, Recommendation, Design, Risks, Rollout and rollback, Steps, Open questions.
Give in the answer: the recommendation in 3 to 5 sentences, the main trade-off, the open questions that need the owner's decision, and the path of the file.
Rules: documentation only. Do not write or change application code, configuration, schema or dependencies. Illustrative snippets inside the note are limited to interfaces and data shapes. Do not commit or push unless the task says so. Keep the note to what a reader finishes in 10 to 15 minutes. When a decision belongs to the owner, list it as an open question instead of deciding silently.