Refactor

From hivellm/rulebook · View interactive version

Refactor is an AI agent skill from the GitHub repository hivellm/rulebook. Identify code smells and execute safe refactorings

How to use this skill

Skill file

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.