Typed Holes Refactor

•
57
•

Systematically refactor complex codebases by treating architectural unknowns as typed holes and resolving them through iterative, test-driven validation.

The Typed Holes Refactor skill implements a formal meta-framework for large-scale code transformations, allowing developers to manage architectural uncertainty with precision. By categorizing unknowns as 'holes' in a Refactor Intermediate Representation (IR), it guides Claude through a structured workflow of characterization testing, constraint propagation, and incremental resolution. This approach ensures that even massive refactors remain safe and verifiable, preserving existing behaviors while systematically migrating toward a target architecture with full documentation of every change.

主要功能

01Baseline characterization testing to prevent behavioral regressions during migration
02Comprehensive delta reporting on metrics like LOC, complexity, and performance
03Automated hole discovery and dependency mapping via Refactor IR
04TDD-driven resolution loop ensuring all changes pass strict validation gates
0557 GitHub stars
06Automated constraint propagation to maintain architectural integrity across modules

使用场景

01Migrating between architectural patterns or framework versions with verified equivalence
02Consolidating technical debt in large, legacy monorepos through systematic decoupling
03Decoupling tightly integrated modules into clean, interface-driven layers