destructive-change-guard
CommunityPrevent accidental data loss before edits.
Software Engineering#git#safety#risk assessment#change control#content protection#destructive changes#recovery gate
Authorshawns-yao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Destructive Change Guard prevents AI agents from accidentally removing or overwriting user-owned information that is hard to recover, such as code logic, documentation, config meaning, or records.
Core Features & Use Cases
- Light vs strong protection modes: uses a fast path for clearly low-risk, tightly scoped changes and a full gated workflow for medium/high-risk destructive work.
- Stop-first safety rule: immediately halts when the request matches never-auto-execute destructive patterns (e.g., rm -rf, git reset --hard, git clean, DELETE/DROP/TRUNCATE).
- Structured risk assessment and recovery gate: classifies target, change type, information-loss risk, recoverability, ownership, and scope, and then requires recovery readiness for medium/high risk.
Quick Start
Use this skill when you suspect your task might delete, rewrite, or bulk-modify existing content: Ask your agent to run destructive-change-guard before performing any destructive or scope-unclear changes.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: destructive-change-guard Download link: https://github.com/shawns-yao/destructive-change-guard/archive/main.zip#destructive-change-guard 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.