What problem does it solve?
Production codebases accumulate artificial seams—helpers, wrappers, and injected dependencies—that exist only so unit tests can reach internals. This Skill identifies those test-shaped splits and collapses them back into cohesive functions without losing regression coverage.
Core Features & Use Cases
- Smell Detection: Recognizes five common forms of testability theater, including paired getter/setter injection, optional deps parameters, pure-inner/thin-outer splits, and test-only exports.
- Six-Step Collapse Procedure: Counts production callers, reads the outer and test, inlines the inner function, and redirects coverage to integration tests, type-level invariants, or documented deletion.
- Systematic Audit Sweep: Provides grep-based audit commands and a triage procedure (via references/sweep-procedure.md) for sweeping an entire codebase, with commit hygiene and anti-pattern guidance.
- Use Case: A TypeScript package has a 47-line helper with a 187-line test and a one-line production wrapper. Use this Skill to inline the helper, drop the injection seam, and enforce the invariants with types instead.
Quick Start
Audit this repository for functions that were split only to satisfy unit tests and inline the ones with a single production caller.