review-architecture
Skill0 starsChanged 9 days agoMITView on GitHub
Review code changes for architecture, system boundaries, invariants, dependencies, and reusable patterns. Use for /review-architecture.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- percona/percona-server-mongodb-operatortheir own version, first seen Nov 30, 2026
- collectiveai-team/boticatheir own version, first seen Nov 29, 2026
- c-w-z/commit-decision-recordtheir own version, first seen Nov 29, 2026
- pascalorg/editortheir own version, first seen Nov 26, 2026
- changeroa/iyen-skillstheir own version, first seen Nov 22, 2026
- unlockers-ai/unlockers-skills-librarytheir own version, first seen Nov 8, 2026
Used with
Projects with it also use write-tests, review-pr and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillwrite-tests
Write tests following project conventions. Use when adding new tests or modifying existing ones.
Also in 3 projects that use this
DockerSkillreview-pr
Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- pascalorg/editor★ 26ksame name
- dotnet/orleans★ 11ksame name
- daveallie/crosspoint-reader★ 9ksame name
- crosspoint-reader/crosspoint-reader★ 9ksame name
- apache/pinot★ 6.2ksame name
- percona/percona-server-mongodb-operator★ 456same name
- mrinalwadhwa/fluent★ 125same name
- dannys-code-corner/incan★ 75same name
- igmarin/rails-agent-skills★ 26same name
- changeroa/iyen-skills★ 14same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- code-reviewSkill
- review-architectureSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
- code-reviewSkill
- review-architectureSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
- code-reviewSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Only the first two levels support a defect finding.
- Distinctive: line 111
Test or validation evidence, and whether its basis is independent or inherited.
- Very specific: line 120
Start the final report with the count of verified findings.
- Distinctive: line 128
Write inline comments for a business reader before a technical reader.
- Distinctive: line 131
Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.
- Distinctive: line 158
Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
review-architecture
Focus
Map the changed component's responsibility, dependencies, and ownership boundary. Check whether it bypasses an existing abstraction, duplicates a service contract, reverses dependency direction, leaks infrastructure concerns, or establishes a pattern that future changes will copy.
Validate claimed invariants against callers and downstream consumers. Flag an architecture issue only when a traced dependency or documented system rule shows a concrete consequence.
Evidence contract
Review the change's stated intent, affected boundary, and non-negotiable constraints before judging implementation details. Build an evidence ledger:
- Intent and constraints: What behavior is changing? What must remain true? What is explicitly out of scope? What promise does the change make to the user or the business?
- Load-bearing assumptions: The beliefs the change depends on to be safe, and the basis for each (see below).
- Evidence collected: Commands, tests, simulations, traces, benchmarks, screenshots, or repository contracts actually inspected or run.
- Result: What each source of evidence proves, disproves, or does not cover.
- Evidence gaps: Important behavior that cannot be verified from the available code, tests, tooling, or stated intent.
- Residual risk and rollback: What may still fail, how it will be detected, and how the change can be safely reversed.
Rank evidence in this order:
- Reproducible test, simulation, benchmark, screenshot, command output, or observed failing behavior.
- A traced code path tied to a documented contract, invariant, or established repository behavior.
- Inference from a diff, name, or pattern alone.
Only the first two levels support a defect finding. Treat level-three concerns as evidence gaps or questions, never as asserted bugs. A test or mock counts as evidence about the outside world only when its behavior comes from a source other than the implementation under review.
Challenge the shared assumption
The implementation, its tests, and a reviewer can all agree and still rest on the same wrong assumption. Three green lights can be one assumption repeated three times. Before concluding, name the assumptions the change depends on — for example, "a missing response means the action failed" — and for each ask:
What would show that this reasoning is wrong?
Then look for evidence that does not inherit the implementation's view:
- An agreed business constraint or a separately specified expected outcome.
- An external service contract, documentation, or integration test against the real behavior.
- An observation, log, or trace that contradicts the current explanation.
Record each assumption's basis as independent (contract, documentation, observed behavior, owner decision) or inherited (the implementation, a mock written to make it pass, or the same incomplete requirements). An inherited basis is an evidence gap, however convincing the explanation sounds.
Agreement is not independence. Passing tests, a second review lens, another model, or another person add confidence only when they rely on different evidence. Several reviewers reading the same requirements, mocks, and code can reproduce the same mistake; do not count their agreement as corroboration.
Impact, confidence, and verification
Report these as three separate properties of every finding and gap; never blend them into one reassuring score:
- Impact: what happens, and to whom, if the concern is real.
- Confidence: how strongly the evidence supports the concern or its absence.
- Verification:
verified,partially verified, orunverified, and by which evidence.
A high-impact concern stays in the report while it is unverified; low confidence lowers how it is labelled, not whether the owner hears about it. A confident explanation resting on a weak or inherited test is still unverified.
Finding rules
Report only issues introduced or made reachable by the reviewed change. Mark pre-existing issues separately. Do not report style preferences, speculative problems, or cleanup unless they create a concrete correctness, security, privacy, reliability, or performance impact.
Each finding must include:
- Severity (impact), confidence, and verification status, stated separately.
- Business context first: the affected customer, operational outcome, revenue, compliance, trust, or delivery risk.
- A concrete failure scenario in plain language.
- Changed file and line evidence, then the technical cause in only the detail needed to make the remediation clear.
- A specific remediation or verification step.
- Introduced versus pre-existing classification.
- Test or validation evidence, and whether its basis is independent or inherited.
Behavior can work exactly as written and still break the promise. When the change quietly decides something an owner should decide — availability over verified access, a destructive step before its replacement is confirmed, retrying an action whose outcome is unknown — report it as a decision for the owner, with the promise at stake, even if no line of code is wrong.
Start the final report with the count of verified findings. If there are none,
say 0 verified findings plainly — and say what that covers. "No issues found"
is not proof that no important issue exists: state what was checked, what
supports the conclusion, and where confidence stops. Include evidence gaps,
unverified high-impact concerns, and decisions for the owner separately.
Inline comment style
Write inline comments for a business reader before a technical reader. Lead with what could go wrong, for whom, and under what condition. Follow with the minimum code-level evidence needed to make the concern credible and actionable. Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.
Use this shape:
[Severity] Business consequence
When <business scenario>, <customer, operational, financial, compliance, or
trust consequence> can occur. This change <plain-language explanation of why>.
Evidence: <file:line and concise technical cause>
Suggested next step: <specific fix or verification>For example, write A customer could be charged twice after a payment timeout
instead of Missing idempotency guard in retry path. Keep the technical cause
in the evidence line. Do not post a comment if the business consequence cannot
be explained from the available evidence.
Pull-request behavior
Produce a local report by default. Post GitHub comments only when the user explicitly asks and the available integration supports it. Post only high-confidence, evidence-backed, actionable findings inline and one concise business-impact summary. Keep broad process notes, evidence gaps, and low-confidence concerns in the local report rather than posting them inline. Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

