| name | codebase-analysis |
| description | Systematic discovery of legacy patterns, technical debt, and high-value modernization targets in the ABI codebase. Use for clean-slate analysis before refactors. |
Codebase Analysis
Systematic techniques to discover technical debt, outdated patterns, and high-value modernization targets.
Process
- Identify boundaries and modules.
- Look for:
- Stringly-typed state and magic values.
- Broad exception catching or error ignoring.
- God classes / large files.
- Tight coupling to outdated frameworks or stdlib workarounds.
- Missing or weak typing.
- Manual resource management that modern constructs solve.
- Prioritize by impact and risk (use the strategy skill).
- Produce a modernization opportunity report with evidence (code locations + rationale).
Heuristics
- Any place using "TODO: modernize" or historical comments.
- Code that duplicates what the language now provides natively.
- Areas with high churn + high bug rate.
- Modules that are hard to test in isolation.
Additional Resources
references/analysis-checklist.md — structured scan + prioritization table
- Use Grep + Glob heavily for pattern hunting.
Output should be actionable for the planner agent and strategy skill.
Base directory for this skill: /Users/donaldfilimon/abi/modern-refactor/skills/codebase-analysis
Relative paths in this skill (e.g., references/) are relative to this base directory.