Analyzes a codebase to identify gaps, inconsistencies, and friction points that hinder autonomous agents or developers from effectively understanding, modifying, and extending the project. Invoke when assessing repository readiness for autonomous agents or onboarding developers.
Analyze a codebase to identify gaps, inconsistencies, and friction points that would hinder autonomous agents (or developers) from effectively understanding, modifying, and extending the project. Provide concrete, prioritized recommendations to improve agent operability.
Project files (full or partial repository)
Optional:
Project guidelines / contributing docs
CI/CD configs
Issue tracker or roadmap
Target agent capabilities (e.g., codegen, refactor, test-writing)
Project-level agent metadata files (optional but recommended): checks for AGENTS.md, AGENTS.yaml, or CLAUDE.md that document agent entrypoints, permissions, or onboarding notes.
Structured report with explicit, numbered sections and prioritized findings:
Summary
Gap Analysis
Agent Friction Points
Documentation Deficiencies
Tooling & Automation Gaps
Recommendations (Prioritized)
Ordered by impact vs effort
Each includes:
Quick Wins
Long-Term Improvements
Can an agent find:
Flag when:
AGENTS.md, AGENTS.yaml, or CLAUDE.md. The skill does not require these files, but will flag their absence and recommend creating one as a high-value quick win for onboarding and safe boundaries.Generate fixes such as:
## Summary
Project is moderately agent-friendly but suffers from implicit behavior and weak structure.
## Key Gaps
- Missing clear service boundaries
- Inconsistent data access patterns
- Lack of type contracts in core flows
## Agent Friction
- Requires cross-file reasoning for simple changes
- Hidden side effects in utility functions
## Recommendations
### 1. Introduce Service Layer (High Impact / Medium Effort)
Problem: Business logic scattered across routes and utils
Fix: Extract into `/services/*` with explicit interfaces
### 2. Add Type Contracts (High Impact / Low Effort)
Problem: Unclear data shapes
Fix: Define shared types or schemas
## Quick Wins
- Add ESLint + Prettier config
- Add README with architecture overview
## Long-Term
- Refactor toward modular domain structure