refactoring-expert

Installation
SKILL.md

refactoring-expert 🛠

Keyword: refactoring | Platforms: gemini,claude,codex

High-Performance Refactoring Expert Skill - A fusion of Refactoring Guru's architectural patterns and Supercent's rigorous operational discipline.

🎯 Core Mandates (Strict Constraints)

  • Test-First: Mandatory to verify or write tests before any code transformation. No tests = No refactor.
  • Behavior Preservation: Absolute prohibition on functional changes. Same input → same output.
  • Atomic Steps: One transformation at a time (e.g., Extract Method only). Do not mix refactoring with feature additions or bug fixes.
  • Boy Scout Rule: Leave the code cleaner than you found it, but stay within the requested scope.
  • Quantitative Constraints:
    • Methods: Max 20 lines of code.
    • Parameters: Max 3 parameters per method.
    • Nesting: Max 2 levels of indentation (if/for/while).
    • Complexity: Proactively simplify "Arrow Code."

Related skills
Installs
2
GitHub Stars
1
First Seen
Apr 8, 2026