Architecture Review
ASecurityReviews the architecture of a repo or a design proposal (design doc, RFC). Pulls out the requirements, draws the system and looks, with evidence, for problems in data and partition keys, APIs and pagination, third parties, availability, services and RAG. Proposes fixes from lightest to heaviest, with solved designs (Tinder, Twitch, Yelp, Maps, rate limiter) as patterns. Reports and stops; applies only what the user picks. Use it for "review the architecture", "design review", "review this des...
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added November 17, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add OmarAlex24/audit-skills --skill architecture-review --agent claude-codeAre you the author of Architecture Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/omaralex24-architecture-review)---
name: architecture-review
description: Reviews the architecture of a repo or a design proposal (design doc, RFC). Pulls out the requirements, draws the system and looks, with evidence, for problems in data and partition keys, APIs and pagination, third parties, availability, services and RAG. Proposes fixes from lightest to heaviest, with solved designs (Tinder, Twitch, Yelp, Maps, rate limiter) as patterns. Reports and stops; applies only what the user picks. Use it for "review the architecture", "design review", "review this design doc", "will this scale", "monolith or microservices?", "SQL or NoSQL?", "is this partition key ok" or a system design of their own app, and for pagination, gateway timeouts, polling or events, multi-region, stateless or stateful, REST or gRPC, even without the word "architecture". Performance, infra, structure, consistency, security and calculations go to their own skills. Also triggers on Spanish requests such as "revisa la arquitectura", "¿esto escala?", "¿monolito o microservicios?" or "¿qué base de datos uso?".
---
# Architecture review
An architecture review answers one question: does this design meet its requirements with the load, the team and the failures it will have, without paying for complexity it does not need? Without requirements there is no finding, only opinion. That is why the skill starts with the requirements and ends in findings with evidence, each tied to the requirement or the number that makes it a problem.
Material: [references/signals.md](references/signals.md) (catalog by topic), [references/examples/](references/examples/README.md) (solved designs), [references/report-template.md](references/report-template.md), [references/aws-limits.md](references/aws-limits.md) and [references/sources.md](references/sources.md).
Write the report in the user's language.
## Rules
- **Report first.** Phases 0 to 5 change nothing: no code, no config, no git, no dependencies. The report goes in the chat.
- **Nothing that writes or calls out during the review.** Do not run builds, tests, migrations, `deploy`, `terraform plan/apply`, `wrangler` or cloud CLIs: they can write caches, touch a database or use credentials. Read files. A read-only query to a database or a metric only happens if the user approves it, and first you print which environment it points to. Never load tests or writes against production or shared environments.
- **Visible provenance.** Mark what a video says as **(video)** with its link, what you or the per-video notes add as **(added)**, and what was checked in official documentation as **(doc)** with its date. Do not mix a video's claim with established practice in the same sentence.
- **The videos' numbers are a reference.** If you cite one, it goes with its conditions and with the instruction to measure on the user's system. A platform limit is checked in the current docs ([aws-limits.md](references/aws-limits.md) has the AWS ones, dated). If the stack is another one (Cloudflare, GCP, Kubernetes, a specific database), look up the equivalent limit in its official documentation and cite it with link and date. Reading public documentation is not calling the user's system.
- **Each topic in its skill.** Measuring latency, throughput, cache or hot partitions belongs to `perf-diagnosis`; transactions, dual writes, outbox, idempotency and consistency, to `data-consistency`; auth, tokens, keys and rate limiting as a defense, to `api-security-review`; a `status` written from many places, to `implicit-state-machines`; a formula, a boundary, a condition, a parsing step or a default value that gives a wrong result, to `correctness-review`; module or layer boundaries that are not respected, dependency cycles, the same problem solved several ways, god-modules, unused code or packages and docs or ADRs that contradict the code, to `code-structure`; IaC, environments, Docker and compose, K8s, CI/CD, deploy, config and secrets management, backups and restore, monitoring and alarms, platform limits, infrastructure SPOFs, pinned versions and infra cost, to `infra-review`; the code that builds prompts, calls a model, exposes tools to it or uses its output (prompt injection, tool permissions, unvalidated output, retries and spend caps, provider failures), to `llm-app-review`. What stays here is the RAG design, the model choice and where the LLM goes in the system (section F). When a signal falls there, note it under "Not covered" with the skill it goes to and do not develop it.
## Phase 0: mode, scope and context
1. **Mode.** In a *repo*, the evidence is a `path:line` you read. In a *proposal* (document, RFC, diagram), the evidence is the cited section of the document, and what the document does not say becomes a question, not a finding. If there are both, review the proposal against the code.
2. **Scope.** Use the one the user gave. In a monorepo with no hint, ask which app or service to review before starting.
3. **Context.** Read AGENTS.md, CLAUDE.md, README, `docs/`, ADRs or decisions, and the deploy config (to know how many instances there are and what runs where; reviewing it belongs to `infra-review`). A written decision with its reason is not a finding; if the reason no longer holds, it is, and you say so citing the decision.
## Phase 1: requirements
Pull from docs and config: access patterns (what is read and written, by which key, in what proportion), peak scale, availability and latency targets, the consistency each flow needs, team size and whether they deploy separately. Ask only what is missing and would change the conclusions. If nobody answers, go on with assumptions written in the report.
A design that solves a scale that is not in the requirements is also a finding: unpaid complexity. Details in section R of `signals.md`.
## Phase 2: system map
Before looking for problems, draw what is there: components, stores, queues, external dependencies, where state lives, how each piece is deployed and which is the hot path (what runs on every user request). In a repo, it comes from the entrypoints, the database and third-party clients, the bindings and the deploy config.
If the repo has architecture docs or ADRs, note each verifiable claim ("X is not queried per request", "Y is written only when it changes", "Z goes through the queue") and check it against the code. A divergence is a first-rank finding: the team designs and operates a system that is not the real one.
With the map, open [examples/README.md](references/examples/README.md) and pick the solved example that looks most like it, if any fits. Its "What the video does not cover" section is a list of gaps to look for in this system.
## Phase 3: go through the topics
Read [signals.md](references/signals.md) and go through the topics that apply to the map: R requirements, A data and partition keys, B APIs, pagination and integrations, C availability, E services, F RAG and LLM (D and part of C and E moved to `infra-review`). The signals are written by mechanism: translate them to the repo's stack (a DynamoDB `Scan` is a `SELECT` without `WHERE` in Postgres or a KV `list()`; an API Gateway timeout is the CPU or time limit of any platform). Say which topics you skipped and why.
In large repos, if you can launch subagents, split the search by topic among read-only subagents (Explore type), with the path to `signals.md` and the map. They only find candidates with `path:line`; confirmation and judgment are yours.
## Phase 4: confirm or rule out each candidate
For each candidate:
1. **Read the evidence yourself.** Every cited `path:line` must be read in this session, not remembered.
2. **Try to rule it out** with the "false positive" part of its signal: a guard somewhere else, a limit by design, a written decision, a component that solves it further up, or a volume that will never reach the limit.
3. **Say how confident you are.** If every step is read, it is **Confirmed**. If a step depends on runtime, platform or library behavior you did not check, mark it **Likely**, name that step and propose the isolated test that would settle it. Do not run it during the review. A pattern with no demonstrated harm is a **Smell**.
4. **Tie it to a requirement.** Which requirement does it break, or at what number does it start to break? If you cannot name it, lower the severity or turn it into a question.
5. **Classify it** into one of three results: **finding** (with evidence, severity and effort, see the template), **open question** (depends on data that is not in the repo) or **ruled out** ("reviewed, does not apply because…", with its line). Ruled-out items go in the report: they show the review happened.
## Phase 5: propose, report and stop
For each finding propose the fix from the lightest to the heaviest (config or index, local code change, new component, architecture change), with its operating cost and what it can break. Prefer the one that meets the requirement with the fewest new pieces. If a fix needs measuring first, say so and point to `perf-diagnosis`.
Write the report with [report-template.md](references/report-template.md). The tone is that of a good design review: understand what was built and why, and advise without disqualifying. (video) "the reviewers aren't trying to tear you down, they just want to understand what you did build, and give you some helpful advice" ([intern](https://www.tiktok.com/@arjay_mccandless/video/7498093752909761838)). End by asking which findings to apply, with your recommended order, and offer in one line to save the report to a file. **Then stop.** A request like "review and improve the architecture" describes the goal; it is not permission to edit before the user sees the findings.
## Phase 6: apply (only what the user picked)
Confirm in one line what you will apply. Then, one by one:
1. If the change has verifiable behavior, first write the test that shows it and run it.
2. Apply the smallest change that fixes the finding, following the repo's patterns.
3. Run the project's checks (lint, typecheck, tests) and report each command with its result, and the ones you could not run and why.
If a fix touches the IaC, leave it ready for review and do not deploy it. Migrations are written with the project's process and are not run against any environment without confirmation, saying first which one it is. No commits, push or PRs unless asked.
## Common mistakes
- Recommending the video's architecture ("use DynamoDB", "move to microservices", "multi-region") without a requirement that asks for it.
- Reporting "might not scale" without the number at which it stops scaling.
- Bringing the video's provider into the repo: looking for DynamoDB in a system with Postgres instead of looking for the mechanism.
- Treating as a rule what the per-video notes mark as debatable: "AWS recommends always one table", the "one time" presigned URL, the multi-region 99.999879% without its assumptions, the monolith versus microservices benchmark without its conditions.
- Developing a performance, consistency or security finding instead of handing it to its skill.
- Developing an infrastructure finding (IaC, containers, CI/CD, backups, alarms) instead of handing it to `infra-review`.
## Swarm mode
It turns on when the invocation brings a swarm brief (between `[swarm brief]` and `[end of brief]`), with `contract:`, `map:`, `structure:`, `output:` and `data:`. Used on its own, the skill follows the procedure above unchanged, report included. In this mode:
- **Phases:** follow phases 0 to 4 and, from phase 5, only the lightest fix for each finding, its risk and its test; you apply nothing. In phase 1, missing requirements are written as assumptions and also go to `questions`. The brief's map replaces the context reading of phase 0 and the map of phase 2, but read what the map points to and whatever it is missing.
- **No questions and no waiting:** what you would ask the user goes to the `questions` field; you do not stop to wait for an answer.
- **No subagents or reviewers:** the swarm does the independent verification. This overrides the large-repo rule of phase 3. Make the pass that tries to rule out each finding yourself, prioritize by the map's hot paths and declare in `not_covered` what you did not cover.
- **Data:** only the `data:` command. You never open connections, tunnels or scripts of your own, and you do not read `.env` looking for credentials. If `data:` is "none", what you would have measured goes to `requested_measurements`.
- **Scope:** the brief brings `scope:` instead of `slice:`. You run once over the whole repo and read structure (tree, manifests, config, docs and what `structure:` brings: slices, import graph and history), not line by line; the per-slice auditors cover the fine-grained code. `outside_slice` stays empty. If the brief brings `exclude:`, the scope is the repo minus what is excluded: you do not audit it, do not cite it as evidence and do not report anything whose main location falls there; you may open it only to understand a call or a dependency that leaves the scope, and you say so in `not_covered`.
- **Limits:** you do not modify the audited repo and you do not read other audit runs or other auditors' folders, except what the brief gives you: contract, map, `structure:` and your folder.
- **Metric:** fill `metric` in each finding per `before-after.md` (next to the contract the brief gives), with this skill's row of its "Guide per skill" as the hint: almost always `not_measurable`, unless there is a latency or an availability to measure. A metric is a command that is run again, never a count of findings, and you do not invent its result: `{not_measurable: "<why>"}` is valid.
- **Output:** a single file, `findings.json`, in the folder the brief gives (`your folder:`), with the contract's object, and that same object as your answer. In swarm mode you write no readable report and no other file: the report template is for normal mode and the swarm's plan comes from the `findings.json` files. Use the contract's vocabulary: confidence, method, severity, effort and action.
Files in this skill
- SKILL.md
- references/aws-limits.md
- references/examples/2fa.md
- references/examples/README.md
- references/examples/auth-accounts.md
- references/examples/data-warehouse.md
- references/examples/dog-walker.md
- references/examples/global-low-latency.md
- references/examples/google-maps.md
- references/examples/library.md
- references/examples/ordering-app.md
- references/examples/rag-chatbot.md
- references/examples/rate-limiter.md
- references/examples/tinder.md
- references/examples/twitch.md
- references/examples/weather-app.md
- references/examples/yelp.md
- references/report-template.md
- references/signals.md
- references/sources.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.