/build-like-amazon:design-documentfrom build-like-amazon
Guides writing a technical design document that translates product requirements into an engineering plan with architecture, trade-offs, cost estimation, and operational concerns. Useful before starting significant implementation work.
Ships in build-like-amazon. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A design document is the bridge between "what we're building" (Working Backwards output) and "how we're building it." It forces the author to think deeply before writing code, surface trade-offs explicitly, consider operational reality, and invite scrutiny from peers. The document is not documentation—it is a thinking tool. If writing the design document doesn't change your approach at least once, you didn't think deeply enough.
A good design document answers: What problem are we solving? Why this approach over alternatives? What are we trading away? How will we know it's working? How will we operate it at scale?
At Amazon, writing is thinking. A design document is a 6-page narrative (not PowerPoint) that forces clarity of thought. The design document ties directly to the Working Backwards process: the PR/FAQ and PRFAQ define what and why for customers; the design document defines how for engineers. The Design Bar Raiser (DBR) review process ensures the document meets a high bar before implementation begins.
Design documents are living artifacts during the design phase but become historical records once approved. They capture the reasoning at a point in time—including constraints, assumptions, and rejected alternatives—so future engineers can understand why decisions were made, not just what was decided.
The standard flow: Working Backwards → Design Document → Design Bar Raiser Review → Implementation Plan → Code.
Every design document starts by referencing the approved Working Backwards artifact (PR/FAQ, PRFAQ, or one-pager). This section answers:
Do NOT re-argue the "what" or "why." That was settled in WB. If you find yourself re-litigating the problem statement, go back and update the WB document first.
List what the system must do. Each requirement should be:
Example format:
Cover these categories explicitly:
Describe the system using a clear diagram and narrative. Cover:
For each major component:
For each rejected alternative:
You must include at least 2 alternatives. If you can only think of one approach, you haven't explored the design space enough.
Common alternatives to address:
patterns/ catalog when applicable (see below)patterns/ as a source of alternativesThe patterns/ directory carries architectural patterns whose adoption propagates across the entire system (e.g., cell-based architecture, shuffle-sharding, static stability). Patterns are not a separate mandatory section — they enter the design as alternatives, evaluated against the data and the workload's actual requirements.
When generating alternatives, read patterns/INDEX.md (the lightweight catalog) and identify any pattern whose applies_when criteria plausibly match the workload's characteristics. Only then load the full patterns/<name>/PATTERN.md for matching patterns. A matching pattern becomes a real alternative — it competes with the baseline and other options on its own merits, with concrete pros/cons, cost, and operational impact.
Two important cases:
When a pattern is adopted, copy its Skill Impact Map into the relevant later sections (Architecture, Operational Concerns, Testing) — the map is the contract for how the pattern propagates through the rest of the design and into the specs.
State trade-offs explicitly using this format:
We are choosing X over Y because Z, accepting the consequence that W.
Examples:
Every non-trivial design has trade-offs. If your document has none, you're hiding them.
Use the AWS pricing calculator or equivalent. Show your math. Include both steady-state and peak costs.
Before submitting for Design BR review:
See the design-review skill for the full review process.
| Intention | Mechanism |
|---|---|
| "I'll think about alternatives" | Document requires at least 2 alternatives with genuine pros for each. When generating alternatives, read patterns/INDEX.md and pull in any pattern whose criteria plausibly fit the workload. |
| "I'll consider operational impact" | Mandatory operational concerns section with specific runbook references |
| "I'll come back and add cost estimates" | Cost section is a launch blocker for Design BR review |
| "I'll make sure it's secure" | Threat model section required for any system handling customer data |
| "I'll keep it up to date" | Design doc is frozen after approval; amendments require explicit addendum |
| What They Say | Why It's Wrong | What To Do Instead |
|---|---|---|
| "The design is simple enough; we don't need a document" | Simple designs still have trade-offs, failure modes, and operational concerns. The document forces you to find the non-obvious complexity. | Write the document. If it's truly simple, it will be short. Short is fine. Missing is not. |
| "We'll figure out the details during implementation" | Implementation is too late to discover fundamental architecture issues. Changing direction after code is written costs 10x more. | Identify the unknowns now. Write a spike plan for things you genuinely can't decide without code. |
| "I've built this before, I know how to do it" | Your experience is valuable but not infallible. The document lets others verify your assumptions and catch blind spots. | Write it anyway. Your experience will make it faster to write, and the review will either validate or improve your approach. |
| "The timeline is too tight for a design doc" | A design doc takes 2-5 days. A wrong architecture takes months to fix. The timeline is too tight to NOT write one. | Timebox the document to 3 days. Focus on trade-offs and alternatives. Skip polish, keep substance. |
| "We already discussed this in meetings" | Meetings don't create artifacts. No one can review your meeting. Decisions made verbally are forgotten or remembered differently. | Write it down. If you truly discussed it well, the document will write itself quickly. |
patterns/INDEX.md despite plausibly matching criteria — the author skipped the catalogpatterns/INDEX.md contains a pattern that plausibly fits the workload, it appears as a real alternative (or is the chosen approach) — not silently skippedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub robisson/build-like-amazon-agent-skills --plugin build-like-amazon28 skills in this plugin
/api-contract-firstDesigning APIs contract-first with backward compatibility guarantees, clear versioning strategy, error semantics, idempotency, and pagination. The API is a promise—never break existing clients./brownfield-discoveryReverse-engineer an existing project to produce a Design Doc, API contracts, and a Threat Model anchored in the real code, IaC, and observability. Run once per project. Output anchors all subsequent /spec and /build invocations./code-review-bar-raisingApplying Amazon's raise-the-bar principle to every code review. What reviewers look for — clarity, correctness, design, reuse, operational readiness. "Ship It" means the change raises or maintains the quality bar./correction-of-errorsBlameless post-incident analysis focused on timeline, 5 Whys, mechanisms over people, and concrete action items with owners./dependency-managementManaging external dependencies safely with circuit breakers, timeouts, retries with exponential backoff, bulkhead pattern, graceful degradation, and dependency isolation./design-reviewReview a technical design before specs or implementation. Evaluate problem clarity, requirements, alternatives, trade-offs, architecture, dependency behavior, security, operations, cost, testability, and simplicity.Other plugins' skills for the same job