patch-corruption-recovery
CommunityRestore clean code after patch corruption errors.
Software Engineering#debugging#version control#code repair#patch recovery#git restore#code corruption#patch pitfalls
Authorfreedomw1987
Version1.0.0
Installs0
System Documentation
What problem does it solve?
When a code patch corrupts a file (syntax errors, misplaced code blocks, silent missing imports), manual incremental fixes often compound the damage, leading to wasted debugging time and further broken state.
Core Features & Use Cases
- Git-based recovery workflow: Restore files to their last known clean state using version control, eliminating the risk of fixing broken code with more broken patches.
- Verification guardrails: Includes step-by-step checks using typecheck and runtime validation to confirm fixes work before committing.
- Prevention and detection guidance: Covers common patch pitfalls like adjacent-anchor false matches and silent import deletions, with recipes to catch and avoid them. Use case example: If a patch accidentally inserts a PDF parsing function inside the wrong file scope, this skill walks you through restoring the original file and re-applying the change correctly without introducing new errors.
Quick Start
Use the patch-corruption-recovery skill to restore the corrupted backend/src/routes/chat.ts file to its last clean Git state and re-apply the pdf-parse patch with verification checks after each individual change.
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: patch-corruption-recovery Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#patch-corruption-recovery 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 536,000+ vetted skills library on demand.