Architectural Refactor

•
4
•

Systematically executes complex code restructuring using a chunked, verifiable workflow to prevent AI context drift.

The Architectural Refactor skill bridges the gap between high-level design recommendations and actual implementation by externalizing the refactoring process to disk. It decomposes large-scale architectural changes into small, verifiable chunks, each requiring passing tests, type checks, and linter gates before proceeding. By maintaining a persistent manifest and log, it ensures that Claude remains aligned with the structural goal even across long sessions or context compactions, making complex migrations and codebase cleanups safe, predictable, and fully resumable.

Key Features

01Mandatory verification gates (tests, types, and linting) at every step
02Context-drift prevention for long-running or multi-session refactoring
034 GitHub stars
04Chunked execution of complex architectural changes into manageable units
05On-disk state tracking via refactor-plan.md and refactor-manifest.json
06Automated dependency mapping to ensure correct ordering of code moves

Use Cases

01Migrating a legacy monolithic codebase to a modular clean architecture
02Decoupling tightly integrated services and replacing core abstractions
03Resolving systemic architectural drift based on technical debt assessments