rule-code-preservation
OfficialPreserve existing behavior during refactoring
Software Engineering#backward-compatibility#code-review#risk-mitigation#code-refactoring#change-management
Authorcarrot-foundation
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents silent deletions and reversions during code refactoring by enforcing non-destructive changes.
Core Features & Use Cases
- Ensures non-destructive edits by requiring explicit approval before removing or altering existing code.
- Provides guardrails for preserving backward compatibility across sessions and branches.
- Used during refactoring, code reviews, and maintenance tasks to maintain intentional behavior.
Quick Start
Inspect a refactoring task and confirm all intentional code paths are preserved before committing changes.
Dependency Matrix
Required Modules
None requiredComponents
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: rule-code-preservation Download link: https://github.com/carrot-foundation/schemas/archive/main.zip#rule-code-preservation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.