Agent skill

refactor

Identify code smells and execute safe refactorings

Stars 10
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/hivellm/rulebook/tree/main/templates/skills/dev/refactor

SKILL.md

Analyze and refactor the specified code.

Target: $ARGUMENTS (file path, module, or area to refactor)

Steps:

  1. Read the target code and understand its purpose
  2. Identify code smells (long functions, duplication, high complexity)
  3. Propose specific refactorings with rationale
  4. Implement refactorings one at a time, verifying tests pass after each
  5. Report what was changed and why

Didn't find tool you were looking for?

Be as detailed as possible for better results