improve-codebase-architecture
Installation
SKILL.md
Improve Codebase Architecture
Surface architectural friction as deepening opportunities: refactors that turn
shallow modules into deep ones. Use the codebase-design vocabulary throughout and
respect the active project's domain language and ADRs.
Resolve every .agents/projects/ path from the opened workspace root, including
when the active repository is nested inside it. In a single-repository workspace,
that is the repository root. Keep this artifact root fixed when changing directories;
never use nested repositories or global agent-installation directories for artifacts.
Process
- Scope before scanning. Use a direction named by the user, or inspect a useful span
of commit history to identify recently changing hot spots. Read
.agents/projects/<project>/CONTEXT.mdand relevant project ADRs, then explore the selected area for shallow modules, leaking seams, poor locality, and interfaces that resist behavior-focused tests. Apply the deletion test to every candidate.