Agent skill

simple-refactor

Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/simple-refactor

SKILL.md

Simple Refactor

Purpose

Suggest small refactors that improve readability without changing behavior.

Inputs to request

  • Target file or function.
  • Known style guide or conventions.
  • Existing tests or coverage.

Workflow

  1. Identify duplication or overly long functions.
  2. Propose small extraction or naming improvements.
  3. Note how to validate behavior remains unchanged.

Output

  • Refactor steps and safe checkpoints.

Quality bar

  • Keep changes small and reversible.
  • Avoid altering public interfaces.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results