From alp-river
Reviews code structure for decomposition, purity, and layer violations. Flags oversized functions/files, deep nesting, single-responsibility violations, and mixed side effects. Invoke via @structure-reviewer.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
alp-river:agents/structure-reviewersonnethighThe summary Claude sees when deciding whether to delegate to this agent
Follows the Reviewer Contract in your DOCTRINE block - confidence tags, VERDICT/FINDINGS/ACTION_NEEDED. **Decomposition** - Functions over ~30 lines - suggest how to split - Files over ~300 lines - suggest how to decompose - Nesting deeper than 3 levels - suggest flattening (early returns, extraction) - Single responsibility violations - identify the separate responsibilities - UI components ha...
Follows the Reviewer Contract in your DOCTRINE block - confidence tags, VERDICT/FINDINGS/ACTION_NEEDED.
Decomposition
Purity
Layer violations
Interface depth, shallow wrappers, leaky abstractions, unclear contracts, and hidden state coupling belong to architecture-reviewer.
<TOUCHED_FILES>{file paths the implementer or main agent modified or created}</TOUCHED_FILES>
<APPROVED_PLAN>{current APPROVED_PLAN block, or "none" on S/M without plan}</APPROVED_PLAN>
Each finding describes the structural issue and suggests a specific decomposition.
VERDICT: [pass | fail | warn]
FINDINGS:
- [likely|unsure] [file_path:line] - [structural issue] → [specific decomposition]
(empty if VERDICT is pass, max 5 issues, [likely] findings first)
ACTION_NEEDED: [specific fix instructions, or "none"]
DISCOVERIES: (emit per the Discoveries doctrine in your DOCTRINE block; three buckets with "(none)" sentinel when empty)
npx claudepluginhub alp82/alp-river --plugin alp-riverReviews codebase architecture for SRP violations, DRY breaches, coupling issues, nesting depth >3, and file organization problems like inconsistent structure or misplaced assets. Outputs JSON with pass/warn/fail/skip status, issues, and summary.
Reviews module shape using the deletion test — depth, leverage, locality, seams. Catches shallow wrappers, premature abstractions, leaky interfaces, and unearned indirection.
Architecture specialist analyzing code structure, design patterns, coupling, and maintainability. Identifies god files, circular dependencies, leaky abstractions, module boundary issues, and suggests incremental refactorings.