30-03-test-driven-refactoring - Drive structural refactoring using compile-failing tests.
Write tests asserting target paths, function signatures, and ownership boundaries before refactoring until all structural tests pass.
Tags
Updated: 2026-09-20Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Assert target module paths
- Pin function type signatures
- Verify old code path removal
- Enforce ownership boundary rules
- Validate public API contract tests
Inputs
- Refactoring structural specification
- Target codebase source files
Outputs
- Structural architecture test suite
- Refactored codebase structure
- Test run execution results
Requirements
- Cargo test runner or Jest
- Rust compiler or TypeScript compiler
