Safe refactoring and code modernization
Detailed documentation for each command including when to use it, what it's best for, and real-world examples.
Refactor code safely
Improves code structure while preserving functionality. Applies design patterns, removes duplication, enhances readability, and reduces complexity. Includes comprehensive testing to ensure behavior is preserved.
/siftcoder:refactor <target>targetFile, function, or component to refactorReducing technical debt, improving maintainability, applying design patterns
Complex functions, duplicated code, hard-to-maintain sections
/siftcoder:refactor src/services/user.ts # Improves: Structure, readability, patterns # Preserves: All functionality, behavior