Read-only analysis of codebase - discover features, check test coverage, identify issues, and generate report
Analyzes codebase to assess production readiness, discover features, check test coverage, and identify issues.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install code@mwguerra-marketplace[--focus api|ui|tests] [--output path]Perform a read-only analysis of the application to assess production readiness.
/code:analyze # Full analysis
/code:analyze --focus=api # Focus on API endpoints
/code:analyze --focus=ui # Focus on UI components
/code:analyze --focus=tests # Focus on test coverage
/code:analyze --output=report # Generate markdown report
This command analyzes without modifying any files. It provides a comprehensive report of:
Discover:
Map all components:
| Category | What to Find |
|---|---|
| Routes | All defined routes (API + web) |
| Controllers | Handler classes and methods |
| Models | Database entities and relationships |
| Migrations | Schema definitions |
| Jobs | Queue and scheduled jobs |
| Commands | CLI commands |
| Components | UI components |
| Services | Business logic |
| Policies | Authorization rules |
| Middleware | Request handlers |
| Events | Event system |
Evaluate testing:
Check for:
Review:
Verify:
Check:
=== Production Readiness Analysis ===
Project: [name]
Framework: [framework] v[version]
Analysis Date: [date]
FEATURES DISCOVERED:
Routes: 42 (35 API, 7 web)
Controllers: 15
Models: 12
Jobs: 5
Commands: 3
Components: 28
TEST COVERAGE:
Test Files: 18
Coverage: ~45% (estimated)
Missing: Controllers (3), Models (4), Services (2)
ISSUES FOUND:
Critical: 2
High: 5
Medium: 12
Low: 8
ESTIMATED EFFORT:
To production ready: Medium (2-3 days)
See detailed report for specifics.
Generates ANALYSIS-REPORT.md with:
# Production Readiness Analysis Report
Generated: [timestamp]
Project: [name]
## Executive Summary
[High-level overview]
## Feature Inventory
### Routes
| Method | Path | Controller | Has Tests |
|--------|------|------------|-----------|
| GET | /api/users | UserController@index | Yes |
| POST | /api/users | UserController@store | No |
...
### Models
| Model | Relationships | Factory | Tests |
|-------|---------------|---------|-------|
| User | hasMany Posts | Yes | Partial |
...
## Test Coverage Analysis
[Detailed test coverage breakdown]
## Issues Found
### Critical
1. [Issue description]
- Location: [file:line]
- Impact: [description]
- Recommended fix: [suggestion]
### High
...
## Recommendations
1. [Priority recommendation]
2. [Second recommendation]
...
## Next Steps
[Suggested action plan]
This command can be followed by:
/code:ready - To fix all issues/taskmanager:plan - To create tasks from findings/test-specialist:generate-pest-test - To create missing tests