Review the entire codebase against all jag-reehal-real-claude-skills patterns using the pattern-checker agent. Handles large codebases by chunking files.
Scans the entire codebase for architectural pattern violations using the pattern-checker agent. Use this for comprehensive audits before major refactors or to generate compliance reports with `--report`.
/plugin marketplace add jagreehal/jagreehal-claude-skills/plugin install jagreehal-claude-skills@jagreehal-marketplaceReview the entire codebase against all jag-reehal-real-claude-skills patterns using the pattern-checker agent. Handles large codebases by chunking files.
--report: Save findings to docs/reviews/YYYY-MM-DD-full-review.md--scope <path>: Limit to specific path (default: entire codebase)Parse these from $ARGUMENTS.
Extract from $ARGUMENTS:
generate_report: true if --report presentscope_path: value after --scope or default to project rootUse Glob to find all TypeScript files:
Pattern: **/*.{ts,tsx}
Categorize files:
*.spec.ts, *.spec.tsx, *.test.ts, *.test.tsx, *.test.int.ts.ts/.tsx filesExclude:
node_modules/, dist/, build/ (Glob respects .gitignore)Report:
Found X files to review:
- Production files: Y
- Test files: Z
Split file list into chunks of ~30 files each for efficient processing.
Chunking logic:
Report: "Split into X chunks of ~Y files each"
For each chunk, use the pattern-checker agent:
Use Task tool with:
- subagent_type: "pattern-checker"
- prompt: "Review these files for pattern violations: [file1, file2, ...]"
The pattern-checker will check:
Collect ALL findings from each chunk.
Combine findings from all chunks into categories:
fn(args, deps) Violations
Validation Boundary Violations
Result Types Violations
Observability Violations
Resilience Violations
Config Management Violations
TypeScript Config Violations
ESLint Config Violations
Testing Violations
Performance Testing Violations
Deduplicate similar findings. Sort by severity (Critical > High > Medium > Low).
Always display a summary:
## Full Codebase Review Complete
**Files reviewed:**
- Production files: X
- Test files: Y
- Total: Z
**Chunks processed:** N
**Total violations found:** V
### By Category:
- fn(args, deps): N violations
- Validation Boundary: N violations
- Result Types: N violations
- Observability: N violations
- Resilience: N violations
- Config Management: N violations
- TypeScript Config: N violations
- ESLint Config: N violations
- Testing: N violations
- Performance Testing: N violations
### Compliance Score: X%
### Top Issues:
1. [Most critical finding with file:line]
2. [Second most critical]
3. [Third most critical]
If generate_report is true:
docs/reviews/ (if doesn't exist)docs/reviews/YYYY-MM-DD-full-review.mdReport format:
# Full Codebase Review - YYYY-MM-DD
## Summary
- **Production files reviewed:** X
- **Test files reviewed:** Y
- **Total files reviewed:** Z
- **Chunks processed:** N
- **Total violations:** V
- **Compliance score:** X%
## fn(args, deps) Violations
[For each violation:]
- **File:** `path/to/file.ts:line`
- **Issue:** Description
- **Fix:** Specific change needed
- **Priority:** Critical/High/Medium/Low
## Validation Boundary Violations
[Same format...]
## Result Types Violations
[Same format...]
## Observability Violations
[Same format...]
## Resilience Violations
[Same format...]
## Config Management Violations
[Same format...]
## TypeScript Config Violations
[Same format...]
## ESLint Config Violations
[Same format...]
## Testing Violations
[Same format...]
## Performance Testing Violations
[Same format...]
## Recommended Action Plan
### Critical (Fix Immediately)
1. [Critical finding 1]
2. [Critical finding 2]
### High Priority
1. [High priority finding 1]
2. [High priority finding 2]
### Medium Priority
1. [Medium finding 1]
---
## Appendix: Files Reviewed
### Production Files (X)
<details>
<summary>Click to expand full list</summary>
- path/to/file1.ts
- path/to/file2.ts
...
</details>
### Test Files (Y)
<details>
<summary>Click to expand full list</summary>
- path/to/file1.test.ts
- path/to/file2.spec.ts
...
</details>
---
*Generated by full-review command*
Report: "Report saved to docs/reviews/YYYY-MM-DD-full-review.md"
pattern-checker agent--scope to limitThis command is a comprehensive version of /verify-patterns:
/verify-patterns - Quick check, shows summary/full-review - Deep analysis, generates detailed report, handles large codebases