The current version is #ident "@(#)$Format:LocalFoodAI_lanfr144:SKILL.md:%an:%ae:%ad:%cn:%ce:%cd:%H:%D:%N$"
name: refactor-coach
description: Refactors code to improve readability, performance, and modularity without changing external behavior.
Refactor Coach Skill
When refactoring code:
- DRY Principle: Identify duplicate code and extract it into reusable functions or libraries.
- Complexity Reduction: Break down long functions into smaller, clearly named helper functions.
- Performance: Identify and resolve obvious bottlenecks (e.g., nested loops, inefficient data structures) while explaining the algorithmic improvement.
- Safety: Guarantee that the external API and behavior of the code remain entirely unchanged.