arch-review
Skill1 starsChanged 12 days agoMITView on GitHub
After any multi-file code change, systematically apply 8 architectural checks before declaring done. Catches regressions, dead code, data model inconsistencies, and cross-component gaps that tests don't catch. Includes a dead-code sweep (check 6). Born from introducing a hardcoded wrong category in an agent prompt while removing dead code: tests passed, but the feature was broken.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- gbrusella/arch-review-skilltheir own version, first seen Nov 29, 2026
- ychab/museflowtheir own version, first seen Nov 16, 2026
- rhvdbergh/claude-skillstheir own version, first seen Nov 1, 2026
- newkirkjosh/skillstheir own version, first seen Nov 1, 2026
- axisvela/ea-harnesstheir own version, first seen Oct 17, 2026
- NeptuneHub/AudioMuse-AItheir own version, first seen Oct 8, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- NeptuneHub/AudioMuse-AI★ 3ksame name
- axisrobo/ea-harness★ 15same name
- axisvela/ea-harness★ 15same name
- ramboz/jig★ 6same name
- ychab/museflow★ 2same name
- AllThingsSmitty/proven-skills★ 1same name
- anxndsgn/skills★ 1same name
- newkirkjosh/skills★ 1same name
- gbrusella/arch-review-skill★ 0same name
- rhvdbergh/claude-skills★ 0same name
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 repository16 other files it gives its agents.
- debug-to-fixSkill
- global-config-guardSkill
- keep-it-simpleSkill
- lowtierSkill
- parallelizeSkill
- pre-mortemSkill
- probe-before-batchSkill
- prove-itSkill
- sanity-checkSkill
- scan-before-rmrfSkill
- skill-forgeSkill
- stay-in-laneSkill
- trace-itSkill
- vet-ai-patchesSkill
- you-sureSkill
- zero-inSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 16 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
16
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 26
After any change touching 3+ files
- Distinctive: line 27
After removing a function, class, or data format
- Distinctive: line 28
Before declaring any refactor complete
- Distinctive: line 29
When the user asks "are you sure?" or "double-check your work"
- Distinctive: line 30
Before committing or syncing to another machine
- Distinctive: line 48
Verify the data flow still holds after the change:
- Distinctive: line 59
After removing a code path, check every object that flowed through it:
- Distinctive: line 71
Do ALL writing paths use the new format?
- Distinctive: line 72
Do ALL reading paths accept the new format?
- Distinctive: line 95
After removing imports, verify nothing still references them:
- Distinctive: line 101
Every removed function may have left behind:
- Very specific: line 118
Every return "ERROR: ..." should have a log call before it
- Distinctive: line 141
After all 8 checks, rate 0-10:
- Distinctive: line 152
Leave dead helper functions after removing their only caller
- Distinctive: line 158
Run all 8 checks after any multi-file change
- Distinctive: line 159
After removing a data format, grep for ALL writers and ALL readers of that format
- Distinctive: line 160
Check for hardcoded IDs in prompts and templates.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Arch Review
<purpose>
Tests pass does not mean the code is correct. After any multi-file refactor or
removal, there are failure modes no test catches: agent prompts with hardcoded
wrong values, dead code that accumulated during the change, scripts that write
to a file nothing reads anymore, logging gaps on new error paths. This skill
forces the 8 checks before any "done" declaration.
</purpose>When To Activate
- After any change touching 3+ files
- After removing a function, class, or data format
- Before declaring any refactor complete
- When the user asks "are you sure?" or "double-check your work"
- Before committing or syncing to another machine
The commands below use src/ and app.py as stand-ins; substitute your own paths.
The 8 Checks
1. Separation of Concerns
Each module or function should do one thing. After a refactor, check for:
- Logic that leaked into the wrong layer (parsing in the API layer, API calls in parsers)
- Functions that now do less but still carry the old structure
- Cross-dependencies the refactor didn't clean up
# Find remaining references to removed concepts
grep -rn "OLD_THING\|old_function\|legacy_path" src/ --include="*.py"2. Sequence of Operations
Verify the data flow still holds after the change:
- Is the new first step actually reachable?
- Are there early-exit paths that bypass required setup?
- Does every caller still pass arguments in the right order?
# Trace the call chain for the main entry points
grep -rn "def main\|def run\|def handle_" src/3. Object Instantiation / Attribute Misses
After removing a code path, check every object that flowed through it:
- Are there attributes that were set ONLY in the removed path?
- Will callers of modified functions hit a KeyError or AttributeError?
- Was any object initialization moved that downstream code still expects?
# Dict keys that may only have been set in the removed code
grep -rn "fields\['" src/4. Data Model Consistency
The hardest one. After format changes, check:
- Do ALL writing paths use the new format?
- Do ALL reading paths accept the new format?
- Are any hardcoded values (category IDs, policy IDs, status codes) specific to one item type but used in generic paths?
Red flags:
- A script that reads format A but writes format B
- A prompt or template with hardcoded IDs that should be dynamic
- IDs that differ by item type but are used uniformly
# Find every place that WRITES the file format you changed
grep -rn "write_text\|\.write(" src/ --include="*.py" | grep -i "record\|export"
# Find hardcoded numeric IDs in prompt strings
grep -rnE "[0-9]{6,}" src/prompts/ | head -205. Syntax / Import Check
After removing functions:
python3 -m py_compile $(git diff --name-only -- '*.py')After removing imports, verify nothing still references them:
git diff --name-only | xargs grep -n "from\|import" | grep -v "^Binary"6. Dead Code Sweep
Every removed function may have left behind:
- Helper functions it was the sole caller of
- Compiled regex patterns used only by it
- Constants only referenced from it
- Type aliases or imports only needed by it
# Private functions defined but never referenced again in the same file
grep -n "^def _" app.py | while IFS=: read -r line content; do
fname=$(echo "$content" | grep -o '_[a-z_]*' | head -1)
count=$(grep -c "$fname" app.py)
[ "$count" -le 1 ] && echo "DEAD: $fname (line $line)"
done7. Logging / Tracing
On new error paths introduced by the refactor:
- Every
return "ERROR: ..."should have a log call before it - Removed conversion steps that had log calls need replacement log coverage
- New success paths should log at the same granularity as old ones
grep -rn 'return.*ERROR\|return.*error' src/ | head -208. Cross-Component / Architectural Consistency
The most commonly missed check. After changing one script, enumerate all OTHER scripts that interact with the same data:
- Scripts that READ what you changed to WRITE
- Scripts that WRITE what you changed to READ
- Agent prompts that describe the format to the LLM
# After changing a file format, find all scripts that touch that format
grep -rln "record.txt\|RECORD_FORMAT" src/ --include="*.py"
# For each result: does it read? write? both? Is it now inconsistent?Confidence Rating
After all 8 checks, rate 0-10:
- 10: All 8 clean, tests pass, no cross-component gaps
- 7-9: Minor dead code or cosmetic issues, no behavior regressions
- 5-6: One data model inconsistency or one half-migration
- 3-4: Regression introduced, agent prompts have wrong hardcoded values
- 0-2: Multiple broken paths, tests mask the failures
NEVER
- Declare "done" after tests pass without running the 8 checks
- Hardcode item-type-specific values in generic code paths
- Leave dead helper functions after removing their only caller
- Change a READ path without checking the WRITE path (and vice versa)
- Forget that agent prompts are code: wrong hardcoded values in prompts are regressions
ALWAYS
- Run all 8 checks after any multi-file change
- After removing a data format, grep for ALL writers and ALL readers of that format
- Check for hardcoded IDs in prompts and templates; they rot when item types change
- Give a confidence rating with specific reasons, not just "looks good"
The failure that spawned this skill
An old bracket-style record format was removed from a pipeline. All 477 tests passed. But:
- The agent prompt was updated with one hardcoded category ID and condition code for ALL requests, which was wrong for most item types.
- One relist script still WROTE the old format, so the new file was never updated and the verifier saw stale data.
- Two helpers and a regex were left as dead code after their sole caller was removed.
- One more parser helper in the verifier was left as dead code.
None of these were caught by tests. All were caught by the 8-check review.
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.

