refactor-guide

Installation
SKILL.md

Refactor Guide

Purpose

Perform safe, behavior-preserving code transformations to improve structure, readability, and maintainability.

Agent Protocol

Trigger

Exact user phrases: "refactor", "clean up code", "extract this", "rename", "improve code", "make this cleaner", "too complex", "spaghetti code".

Input Context

Before activating, verify:

  • The code to refactor is provided or accessible.
  • Existing tests are available (or characterization tests must be written first).
  • The desired outcome is structural improvement, not behavior change.

Output Artifact

No file output. This skill produces a refactoring plan.

Installs
2
GitHub Stars
21
First Seen
May 30, 2026
refactor-guide — j4flmao/agent-skills