architecture-review
Skill4 starsChanged 47 days agoMITView on GitHub
Cross-checks ADRs, API contracts, data model, threat model and feature specs for consistency and feasibility, with stack facts verified against the stack reference; `code` mode checks the repository itself against them and records drift. Read-only PASS / CONCERNS / FAIL. Run at the architecture→build gate, quarterly, after /adopt, or for 'does the code still match the ADRs'.
78 other projects use a version of this.
Adopted by
Most recently taken up by
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- Smaui94/ClaudeSkillCollectiontheir own version, first seen Nov 8, 2026
- AndersonAndrad/skillstheir own version, first seen Nov 8, 2026
- frnkgns/Overgeared-Skillstheir own version, first seen Nov 8, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Nov 4, 2026
- nledford/engineering-review-boardtheir own version, first seen Nov 3, 2026
Used with
Projects with it also use asset-spec, create-control-manifest and 7 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.
lilangMaxSkillasset-spec
Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.
Also in 10 projects that use this
lilangMaxSkillcreate-control-manifest
After architecture is complete, produces a flat actionable rules sheet for programmers — what you must do, what you must never do, per system and per layer. Extracted from all Accepted ADRs, technical preferences, and engine reference docs. More immediately actionable than ADRs (which explain why).
Also in 10 projects that use this
- +7 more from lilangMax
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- Donchitos/Claude-Code-Game-Studios★ 27ksame name
- langwatch/langwatch★ 5ksame name
- ghuntley/loom★ 1.7ksame name
- microsoft/hve-core★ 1.6ksame name
- DataDog/dd-trace-js★ 840same name
- decebals/claude-code-java★ 763same name
- borgbase/vykar★ 722same name
- appdevforall/CodeOnTheGo★ 586same name
- getsentry/warden★ 423same name
- owainlewis/blueprint★ 423same name
68 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 repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- testing/CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- adoptSkill
- api-contractSkill
- architecture-decisionSkill
- backlogSkill
- brainstormSkill
- changelogSkill
- code-reviewSkill
- collaboration-protocolSkill
- create-storiesSkill
- data-modelSkill
- dependency-auditSkill
- deploySkill
- design-systemSkill
- dev-storySkill
- docsSkill
- feature-specSkill
- game-conceptSkill
- hardenSkill
- helpSkill
- hotfixSkill
- impactSkill
- incidentSkill
- initSkill
- migrateSkill
- pentestSkill
- perf-auditSkill
- product-specSkill
- qa-planSkill
- refactorSkill
- release-checklistSkill
- retrospectiveSkill
- security-auditSkill
- setup-stackSkill
- skill-improveSkill
- skill-testSkill
- sprint-planSkill
- sprint-statusSkill
- stack-updateSkill
- startSkill
- story-doneSkill
- team-featureSkill
- team-gameSkill
- team-releaseSkill
- team-securitySkill
- tech-debtSkill
- test-setupSkill
- threat-modelSkill
- updateSkill
- ux-specSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 70 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read-only; the report goes to the chat.
- Very specific: line 47
When HEAD is a story branch, name it and ask one AskUserQuestion: switch to the default branch and commit there (Recommended — a …
- Very specific: line 51
Never change stage.txt; only recommend.
“Common” is measured: kept by at least 6 in 10 of the 70 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
Architecture Review
Reply in the project conversation language (CLAUDE.md → Language); code, identifiers, paths and commit messages stay in English.
Read-only; the report goes to the chat. The one exception is production/findings.md: BLOCKING
findings are recorded there, and only after the "record" answer of their gate (Phase 3). Bash is for
reading the tree in code mode (go list, make arch-check, wc -l), never for changing it — and for
the git of the Phase 3 commit gate, which stages nothing but the recorded rows.
A studio agent is web-studio:<name> in plugin mode and <name> in copy mode; a command in a hand-off is
/web-studio:<command> in plugin mode and /<command> in copy mode (coordination-rules § Subagents). In the commands below, <hooks> is .claude/hooks/ in copy mode and ${CLAUDE_PLUGIN_ROOT}/hooks/ in plugin mode.
Phase 1: Collect
- Scope from the argument:
adrs→ the ADR checks only;contracts→ the contract and what it must cover;code→ Phase 2 steps 1–5 and step 6 (the repository checks come on top of the document checks, as before);fullor none → Phase 2 steps 1–5. - Read: all
docs/architecture/adr-*.md;docs/architecture/api/*and the schema file atapi_contract_path(technical-preferences; defaultapi/schema.graphqlsfor a Go module,docs/architecture/api/schema.graphqlotherwise);data-model.md;threat-model.md;test-strategy.md;docs/specs/features/*.md;technical-preferences.md;stack-reference/index.md(andgo.md/php.mdincodemode).
Phase 2: Checks
- Consistency: ADRs do not contradict each other or technical-preferences; the contract covers the feature-spec operations; the data model covers the contract's data; the threat model covers the contract's surfaces (GraphQL/WS/uploads).
- ADR completeness: Status/Options/Consequences/Verification; accepted ADRs are
Accepted. An ADR stillProposedwhose date is older than 30 days is a WARNING that names the ADR (ADR-NNNN, its date, the days open) — the verdict is at leastCONCERNS, and the fix is/architecture-decisionto accept, revise or reject it; "implemented" is not "accepted" (Proposed · implemented since <date>counts as Proposed). - Stack facts: versions and claims in ADRs match the stack reference (a release the reference marks as RC, a library it says has no SemVer, a directive it says is outside the GraphQL spec). A contradiction is a WARNING.
- Feasibility: performance budgets realistic; basic security measures present; the test strategy covers the levels.
- Leads, in parallel via
Task:backend-lead,frontend-lead,security-lead(andgame-leadfor games), each for the top 3 risks in their area. codemode (brownfield, quarterly): the repository against the documents, from evidence in the tree, never from the documents' claims.- Module boundaries and dependency direction (
go list -deps/ import graphs /composerautoload / TS project references) against the ADRs that name them. - Entry points (routes, resolvers, handlers, WebSocket endpoints, cron/queue consumers, webhooks) against the contract and the threat model's surfaces table. An entry point absent from both is BLOCKING drift.
- Runtime dependencies in the manifests against the ADRs that admit them. A dependency no ADR names → WARNING, with the ADR to write.
- Migrations against the data model; the deployment topology (compose, workflows) against the deployment ADR.
- PHP under
php_architecture: layered: the dependency direction bycomposer arch-check(deptrac), or without itgrep -rlE 'use (FRAMEWORK_NAMESPACES|App\\Infrastructure)\\' src/Domain src/Applicationwith the namespaces of the recordedphp_framework. A hit is BLOCKING drift, citing the ADR that chose the style. A missingdeptrac.yaml, or aphp_architecturethe tree does not show, is WARNING drift (fix:/refactor layout --dry-run). - Go under
go_architecture: layered: the dependency direction by the graph.go list -deps ./internal/domain/...must name nointernal/usecase,internal/infrastructureorinternal/apppackage, andgo list -deps ./internal/usecase/...nointernal/infrastructure/internal/apppackage (make arch-checkis the transitive graph check;golangci-lint runadds the per-file depguard view with third-party packages). A hit is BLOCKING drift, citing the ADR that chose the style. A.golangci.ymlwithout thedepguardblock, or ago_architecturein technical-preferences that the tree does not show, is WARNING drift (fix:/refactor layout --dry-run). - Go
cmd/<app>againstgo.md"Project layout":wc -l cmd/*/*.go; anything but amain.goof ≤ 50 lines is WARNING drift, even when the layout ADR lists only directories, because the convention's rule is about how much code, not which folders exist (fix: a story moving it tointernal/app/<app>). - Each finding:
file:line, the document it contradicts, the fix (/architecture-decision,/api-contract,/threat-model <surface>, or a code story).
- Module boundaries and dependency direction (
Phase 3: Report
- Table "document → status → findings (BLOCKING/WARNING/INFO)", then the verdict
PASS/CONCERNS/FAILwith reasons. - Findings sink (
codemode): for every BLOCKING finding, oneAskUserQuestion— record it inproduction/findings.md(templatefindings.md; idARCH-NNN, severity, area, the decision needed) (Recommended) · story stubs now via/create-stories· report only. The "record" answer is the "May I writeproduction/findings.md?" consent: after it,touch .claude/.write-consent(rule 7), then write the row; never before the answer./create-storiesand/sprint-planread that file, not this report. Record the gate before asking —<hooks>session-state.sh set Gate "/architecture-review Phase 3: record ARCH-NNN?"— and clear it after the answer (<hooks>session-state.sh set Gate "—"). Commit gate for the rows (rule 7 (4),
.claude/docs/git-workflow.md§ Documents), right after the rows are written and only when at least one was:docs: architecture review findings <date>, staging exactlyproduction/findings.mdand.claude/agent-memory/when the run changed it (git-workflow § Agent memory). Record the gate before asking —<hooks>session-state.sh set Gate "/architecture-review Phase 3: commit?"— and clear it after the answer (<hooks>session-state.sh set Gate "—").- On the default branch when no story work is in progress: one
AskUserQuestion— commit (Recommended) · leave uncommitted. - When HEAD is a story branch, name it and ask one
AskUserQuestion: switch to the default branch and commit there (Recommended — a pipeline-wide document) · commit here (the rows belong to this story) · leave uncommitted. - Nothing else is staged: the review changes no code, and the report itself lives in the chat.
Nothing is committed without the answer.
- On the default branch when no story work is in progress: one
- Never change
stage.txt; only recommend.
Next step — one AskUserQuestion:
- on PASS:
/create-stories(Recommended) · re-run the review after fixes · stop here; - otherwise: the specific
/architecture-decision retrofit …//api-contract(Recommended) · proceed with the CONCERNS recorded · stop here.
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.

