Agent Skills: refactor

Identify code smells and execute safe refactorings

UncategorizedID: hivellm/rulebook/refactor

Repository

hivellmLicense: Apache-2.0
142

Install this agent skill to your local

pnpm dlx add-skill https://github.com/hivellm/rulebook/tree/HEAD/templates/skills/dev/refactor

Skill Files

Browse the full folder contents for refactor.

Download Skill

Loading file tree…

templates/skills/dev/refactor/SKILL.md

Skill Metadata

Name
refactor
Description
Identify code smells and execute safe refactorings

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