legacy-code-safety

Official

Characterize before you change: safety for untested legacy code.

AuthorTheBushidoCollective
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill emphasizes safety when modifying untested legacy code by adding characterization tests first and following the RGR workflow.

Core Features & Use Cases

  • Characterization Testing: Write tests that document existing behavior before making changes.
  • Red/Green/Refactor Flow: Use a safe loop to red, green, and refactor with confidence.
  • Risk Mitigation: Prevent hidden regressions by anchoring changes to real behavior.

Quick Start

Identify a legacy function, write baseline characterization tests, run tests to confirm baseline, then proceed with small changes.

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: legacy-code-safety
Download link: https://github.com/TheBushidoCollective/han/archive/main.zip#legacy-code-safety

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