safe-refactor

Installation
SKILL.md

Safe Refactor

Overview

Refactoring is restructuring code without changing its observable behavior. This skill enforces a small-step, test-verified workflow that minimises risk, keeps every commit behaviour-preserving, and integrates with existing code-review and testing skills.

When to Use

Use this skill when:

  • You need to restructure, rename, or reorganise code — not add features.
  • A legacy module needs cleaning up before new work can begin.
  • You're extracting a function, class, or file and must not break callers.
  • Any change where "does it still work?" must have a reproducible answer.

Ground Rules

Installs
4
GitHub Stars
14
First Seen
Sep 29, 2026