refactor
SolidIntelligent refactor command. Triggers: refactor, refactoring, cleanup, restructure, extract, simplify, modernize.
Install
Quality Score: 83/100
Skill Content
Details
- Author
- code-yeongyu
- Repository
- code-yeongyu/oh-my-openagent
- Created
- 7 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- NOASSERTION
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
refactor
Intelligent refactoring with codebase awareness, test verification, and step-by-step execution.
refactor
Safe multi-file refactoring with automatic rollback. Establishes a type/test baseline, plans all changes, executes file-by-file, and verifies zero regressions. Reverts if verification fails after two fix attempts. Handles renames, extracts, moves, splits, merges, and inlines.
refactor
ALWAYS use this skill before refactoring any code. It prevents over-refactoring and wrong refactoring by requiring an assessment first — catching code that is already clean, problems that are architectural rather than code-level, and missing test coverage that must exist before touching business logic. Trigger on: refactor, clean up, simplify, reduce complexity, code smells, messy code, break up function, reduce nesting, remove dead code, file too big, extract method, too many parameters, duplicated code, cognitive complexity, god class, magic numbers. Also trigger when a linter or static analysis tool flags complexity issues. Language-agnostic.