with one click
architecture-review
// Use when reviewing codebase health, finding structural issues, or auditing architecture quality before major changes
// Use when reviewing codebase health, finding structural issues, or auditing architecture quality before major changes
| name | architecture-review |
| description | Use when reviewing codebase health, finding structural issues, or auditing architecture quality before major changes |
Staff-level codebase health review. Focus on macro-level structural issues that compound over time, not style preferences.
For oversized modules, propose specific splits with new file names.
[], None) where callers can't distinguish "no results" from "failed"Explain what information gets lost and how to surface it.
cast() or # type: ignore without runtime validationOptional returns where None means both "not found" and "error"except Exception)Suggest type-safe alternatives.
Prioritize by risk: untested hot paths > edge cases > utilities.
Map architecture: Read entry points, understand module structure
cat specs/subsystems.md
Find giants: Locate largest files
find src -name "*.py" -exec wc -l {} + | sort -rn | head -20
Trace error paths: Follow operation failures, identify where error info disappears
Audit type assertions: Search for cast(), # type: ignore, broad exceptions
rg "cast\(|type: ignore|except Exception" src/
Map test coverage: Compare test files against source
ls tests/ && ls src/ash/
Check subsystem boundaries: Verify import rules from specs/subsystems.md
Executive Summary: 3-5 bullets on most impactful findings
Priority Issues: For each finding:
What's Working Well: Architectural strengths to preserve
Do NOT report: style preferences, minor naming issues, single-line fixes, already-addressed issues.