SKILL.md 766 B

The current version is #ident "@(#)$Format:DEVOP1:skills/refactor-coach/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:

  1. DRY Principle: Identify duplicate code and extract it into reusable functions or libraries.
  2. Complexity Reduction: Break down long functions into smaller, clearly named helper functions.
  3. Performance: Identify and resolve obvious bottlenecks (e.g., nested loops, inefficient data structures) while explaining the algorithmic improvement.
  4. Safety: Guarantee that the external API and behavior of the code remain entirely unchanged.