simple-refactor
Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code.
SKILL.mdskills/planning/simple-refactor/SKILL.md
GitHubSimple Refactor
Purpose
Suggest small refactors that improve readability without changing behavior.
Inputs to request
- Target file or function.
- Known style guide or conventions.
- Existing tests or coverage.
Workflow
- Identify duplication or overly long functions.
- Propose small extraction or naming improvements.
- Note how to validate behavior remains unchanged.
Output
- Refactor steps and safe checkpoints.
Quality bar
- Keep changes small and reversible.
- Avoid altering public interfaces.