improve-codebase-architecture

Installation
SKILL.md

Improve Codebase Architecture

Find architectural friction the way a future maintainer or coding agent experiences it. Favor deep modules: a small interface hiding substantial implementation complexity.

Read $SKILL_DIR/references/deepening-guide.md before classifying dependencies, judging test strategy, or drafting the RFC.

Workflow

  1. Decide scope. If the user gives a path, subsystem, ticket, or architectural theme, stay inside it. Otherwise explore until you can name the highest-friction areas.
  2. Explore the codebase using whatever discovery tools are available.
    • If subagents are available, you may run one exploration pass and 2-4 design passes in parallel.
    • If subagents are unavailable, do the same work sequentially. Do not fail just because parallelism is unavailable.
    • Treat friction as evidence: cross-file bouncing, redundant adapters, shallow modules, hidden orchestration, and tests that protect internals instead of behavior.
  3. Surface 3-5 candidate deepening opportunities. For each candidate, report:
    • Cluster
    • Why they're coupled
    • Dependency category
    • Test impact
    • Expected leverage
Related skills

More from bahayonghang/my-claude-code-settings

Installs
12
GitHub Stars
14
First Seen
Mar 24, 2026