Refactoring Protocol

Community

Safe, test-driven refactoring with rollback.

AuthorPROdotes
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides a disciplined, test-driven protocol for refactoring that minimizes risk by requiring verification, incremental changes, and a clear rollback path.

Core Features & Use Cases

  • Phase-driven workflow covering assessment, planning, execution, verification, and completion to structure large refactors.
  • Safety-first approach that enforces running tests before, during, and after changes to catch regressions early.
  • Guidance on common refactoring patterns (Extract Method, Extract Class, Move Method, Rename, Introduce Parameter Object) with concrete steps and examples.
  • Use Case: A team refactors a 800-line module to improve maintainability while preserving behavior and providing a rollback path.

Quick Start

Follow the protocol: identify refactoring need, run tests (python tools/run_tests.py), plan changes, execute in small steps, verify with tests, and commit with a descriptive message.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Refactoring Protocol
Download link: https://github.com/PROdotes/Gosling2/archive/main.zip#refactoring-protocol

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.