architecture-review
Skill1 starsChanged 18 days agoMITView on GitHub
Find shallow modules worth deepening, report them as an HTML page, then grill through the one the user picks.
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 create-stories, story-done and 10 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.
lilangMaxSkillcreate-stories
Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.
Also in 11 projects that use this
lilangMaxSkillstory-done
End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.
Also in 11 projects that use this
- +10 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 repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- evals/AGENTS.mdAGENTS.md
- index/AGENTS.mdAGENTS.md
- mcp/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-notesSkill
- challenge-planSkill
- change-impactSkill
- clarify-requestSkill
- connect-mcpSkill
- create-teamSkill
- daily-planSkill
- debug-issueSkill
- define-termsSkill
- design-specSkill
- end-of-day-summarySkill
- handover-notesSkill
- join-teamSkill
- merge-workSkill
- migrate-legacy-engineSkill
- personal-setupSkill
- quick-noteSkill
- register-projectsSkill
- repo-mapSkill
- resolve-conflictsSkill
- resume-workSkill
- retrospectiveSkill
- review-changeSkill
- set-profileSkill
- setup-repoSkill
- story-mapSkill
- suggest-skillsSkill
- summarize-filesSkill
- sync-websiteSkill
- trim-agent-docsSkill
- update-pluginSkill
- weekly-reviewSkill
- whats-changedSkill
- write-agent-docsSkill
- write-area-briefSkill
- write-context-docsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 70 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
If the user named a module, subsystem or pain point, start there and skip the rest of this step.
- Very specific: line 35
Read CONTEXT.md and any ADRs covering the chosen area before reading its code.
- Distinctive: line 50
Run the deletion test on every suspect: if the module were removed, would its complexity vanish or reappear in the callers?
- Very specific: line 55
Write one self-contained HTML file to the OS temp directory, so nothing lands in the repo: $TMPDIR, else /tmp, else %TEMP% on Windows, …
- Distinctive: line 69
If a candidate goes against an existing ADR, include it only when the friction is serious enough to justify reopening the decision, and say …
- Distinctive: line 73
Do not propose interfaces in the report.
- Very specific: line 78
Run /challenge-plan on it: the constraints, what depends on it, the shape of the deepened module, what sits behind its seam, and which …
- Very specific: line 81
Keep the domain model current while decisions land, as /define-terms describes:
“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 — find the shallow modules worth deepening
The output is a short list of deepening opportunities: places where several shallow modules could become one deep module with a smaller interface. The point is code that is easier to test and easier for an agent to find its way around, not tidiness.
Two sources of vocabulary, and both are binding:
- [[codebase-design]] (
references/codebase-design.md) for the architecture: module, interface, implementation, depth, seam, adapter, port, leverage, locality, and the tests for shape (the deletion test, testing through the interface, counting adapters). Use those words and no substitutes. "Component", "service", "API" and "boundary" do not appear in the report. - The repo's
CONTEXT.mdfor the domain, and its ADRs (docs/adr/oradr/) for decisions that are already made. A decision recorded there is not reopened without a reason that would survive the ADR's own argument.
1. Decide where to look
Deepening pays back through future changes, so look where change is happening.
- If the user named a module, subsystem or pain point, start there and skip the rest of this step.
- Otherwise read a long stretch of history (
git log --oneline, andgit log --name-onlyfor the files) and find the areas that keep changing. Start with those. If the changes are spread evenly, widen the search.
Read CONTEXT.md and any ADRs covering the chosen area before reading its code. If the repo has a
.cortex/ index, node "${CLAUDE_PLUGIN_ROOT}/index/cortex-impact.mjs" <files> shows each
candidate's dependents and which of them no test covers.
2. Explore
Hand the walk through the code to a sub-agent and have it report where understanding was hard. No checklist; these are the questions to keep in mind:
- Where does following one concept mean jumping through many small modules?
- Which modules are shallow, with an interface nearly as complicated as their implementation?
- Where were pure functions pulled out to be tested, while the bugs sit in how they are called?
- Where do closely coupled modules reach across each other's seams?
- What is untested, or hard to test through the interface it has now?
Run the deletion test on every suspect: if the module were removed, would its complexity vanish or reappear in the callers? Reappearing is what marks a real module; vanishing marks a candidate.
3. Report the candidates
Write one self-contained HTML file to the OS temp directory, so nothing lands in the repo:
$TMPDIR, else /tmp, else %TEMP% on Windows, named architecture-review-<timestamp>.html so
each run gets a new file. Open it (xdg-open on Linux, open on macOS, start on Windows) and give
the user the absolute path.
HTML-REPORT.md has the page skeleton, the card layout, the diagram types and the
style rules. In short, each candidate gets a card with the files involved, a before-and-after
diagram, the problem, the change, the gains in terms of leverage and locality, and a strength of
Strong, Worth exploring or Speculative. The page ends with the one candidate to do first, and
why.
Name things with the repo's own words. If CONTEXT.md defines Booking, the card says "the Booking
module", not the class name and not "the booking service".
If a candidate goes against an existing ADR, include it only when the friction is serious enough to justify reopening the decision, and say so on the card: "contradicts ADR 0007; worth reopening because ...". Leave out refactors an ADR rules out unless that bar is met.
Do not propose interfaces in the report. When the file is written, ask the user which candidate they want to explore.
4. Work through the chosen candidate
Run /challenge-plan on it: the constraints, what depends on it, the shape of the deepened module, what
sits behind its seam, and which tests survive.
Keep the domain model current while decisions land, as /define-terms describes:
- A deepened module named after a concept missing from
CONTEXT.md: add the term, creating the file if needed. - A term sharpened in the conversation: update its entry then.
- The user rejects the candidate for a reason a later review would need: offer an ADR, so future runs do not propose it again. Skip reasons that are temporary ("not now") or obvious.
- The interface is still open: use the "Comparing interface designs" section of [[codebase-design]] to put two or three designs side by side.
When the floor is not met
Finding deepening opportunities means holding the shape of a whole codebase at once and arguing about where modules end. A weaker setup returns generic advice such as "consider splitting large files", which costs tokens and tells the user nothing.
Below the floor, run /setup-repo and read the findings report instead. It is
deterministic, ranks by size, churn and missing tests, and names real files. That is a smaller
claim, and an honest one.
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.

