From aws-skills-for-claude-code
Refactors code to improve structure, reduce duplication, and apply SRP/DRY principles without changing behavior. Use for incremental code quality enhancements with test verification.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aws-skills-for-claude-code:refactorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Refactor existing code to improve quality without changing behavior.
Refactor existing code to improve quality without changing behavior.
Present the refactoring plan to the user:
Run with /refactor command
npx claudepluginhub whchoi98/aws-skills-for-claude-code --plugin aws-skills-for-claude-codeRefactors code to improve structure, readability, and maintainability while preserving behavior. Guides test-driven cycle, checklists, and patterns like extract function.
Refactors code while preserving behavior: cleanup, modularize, deduplicate, rename, simplify structure in small reversible steps. Not for behavioral changes.
Refactors code safely using tests as a safety net. Activates when cleaning code, reducing complexity, extracting functions, improving names, eliminating duplication, or resolving code smells without changing behavior.