Atomic Code Refactor
Restructures and optimizes existing codebases while ensuring zero regressions through test-driven atomic changes and precise LSP analysis.
This skill enables developers to perform safe, structural improvements to their code without altering external behavior. It follows a strict 'Iron Law' where tests must remain green at every step, utilizing Language Server Protocol (LSP) for precision and memory-aware agents to analyze complex dependencies. From identifying 'God components' to executing multi-file renames and extracting patterns, it provides a disciplined framework for technical debt reduction and architectural evolution, ensuring every change is verified and committable.
Características Principales
01Atomic Step Execution: Breaks large refactors into small, testable, and independently committable chunks.
021 GitHub stars
03LSP-Powered Analysis: Uses precise symbol lookups and reference tracking for accurate scope identification.
04Iron Law Enforcement: Automatically reverts changes if tests fail to guarantee zero regressions.
05Automated Anti-Pattern Detection: Identifies God components, duplicate patterns, and redundant abstractions.
06Context-Aware Memory: Leverages project history to recall past architectural decisions and avoids repeating mistakes.
Casos de Uso
01System-wide renaming or restructuring of APIs and utility functions with high confidence.
02Breaking down monolithic 'God classes' into smaller, single-responsibility modules.
03Eliminating code duplication and extracting shared logic into clean, reusable abstractions.