From hatch3r
Maps current code state: complexity, coupling, cohesion, coverage, smells, dependencies, tests, patterns. Identifies problems motivating changes with structured output.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
hatch3r:agents/modes/current-stateThe summary Claude sees when deciding whether to delegate to this agent
Map the current state of the code being analyzed. Measure complexity, coupling, cohesion, test coverage, and code quality. Identify the specific problems that motivate the change. **Dimension-specific focus** (when provided): - **Structural:** Emphasize coupling, cohesion, module boundaries, dead code - **Logical:** Emphasize behavior contracts, data flows, state management, business rules - **...
current-stateMap the current state of the code being analyzed. Measure complexity, coupling, cohesion, test coverage, and code quality. Identify the specific problems that motivate the change.
Dimension-specific focus (when provided):
Output structure:
## Current State Analysis
### Module Map
| Module / Component | Files | Lines of Code | Responsibility | Coupling |
|-------------------|-------|---------------|---------------|----------|
| {module} | {count} | {approx} | {what it does} | {what it depends on and what depends on it} |
### Complexity Metrics
| File / Function | Complexity Signal | Severity | Notes |
|----------------|------------------|----------|-------|
| {file:function} | {high cyclomatic complexity / deep nesting / large function / etc.} | High/Med/Low | {context} |
### Code Smells
| # | Smell | Location | Description | Impact on Maintainability |
|---|-------|----------|-------------|--------------------------|
| 1 | {smell type} | {file:line range} | {description} | {how it hurts} |
### Dependency Graph
| Component | Depends On | Depended On By | Coupling Type |
|-----------|-----------|---------------|---------------|
| {component} | {dependencies} | {dependents} | Hard/Soft/Circular |
### Test Coverage
| Area | Unit Tests | Integration Tests | Coverage Level | Safety for Refactoring |
|------|-----------|------------------|---------------|----------------------|
| {area} | {count / exists / missing} | {count / exists / missing} | High/Med/Low | Safe/Needs tests first |
### Pattern Inventory
- **{pattern}**: {where used} — {whether to keep, replace, or extend}
### Current State Summary
{2-3 paragraphs describing the state of the code, why it needs changing, and what the key structural problems are}
npx claudepluginhub hatch3r/hatch3r --plugin hatch3rFull codebase health assessment with quantified scores (0-100) per module across 6 dimensions: complexity, test coverage, documentation, dependencies, code smells, maintenance. Ranks highest tech debt, generates RESCUE-REPORT.md.
Analyzes codebases for structural health: identifies code smells, duplication, complexity hotspots, and recommends specific refactoring techniques. Read-only access.
Codebase analyzer that maps architecture, dependencies, patterns, and concerns into structured markdown documents in .planning/. Supports focus areas like --tech, --arch, --quality.