refactor-codebase

Installation
SKILL.md

Refactor Codebase

Restructure a codebase incrementally toward a scalable architecture. Never attempt the full restructure in one go — always produce a phased plan first and execute one phase at a time.

Quick Start

  1. Explore the current codebase structure.
  2. Write a refactor PRD describing the target architecture.
  3. Use /prd-to-plan to break the PRD into phased vertical slices.
  4. Execute one phase at a time, verifying the system still works after each.

Workflow

1. Audit the current structure

Before proposing anything, read the codebase to understand:

  • Folder layout and module boundaries
  • Coupling hotspots (files imported everywhere, god classes/modules)
Related skills

More from rockclaver/systemcraft

Installs
16
First Seen
Apr 2, 2026