← LeaderboardThe Skill Leaderboard
refactoring
Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.
Published by ciembor ↗ciembor/agent-rules-booksTry your first task
Plan a small behavior-preserving refactor
Start a fresh conversation.
Use the refactoring skill to review the existing code in <path-to-file-or-module>. Identify one concrete code smell and propose a small, behavior-preserving refactoring sequence. State which existing tests protect the behavior and which focused test should be added first if coverage is missing. Keep the refactoring separate from feature changes; do not modify files yet.
Required inputs
- Path to an existing file or module
- Optional description of the behavior that must remain unchanged
Suggested template by Skill Leaderboard, grounded in the linked source. Task evidence ↗