safe-git-guard
CommunityGuard destructive Git commands with backups.
AuthorSvenja-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents destructive Git operations by enforcing backups and explicit confirmations.
Core Features & Use Cases
- Backup-before-action workflow: requires a backup (stash, tag, or branch) before destructive operations like git reset --hard, git clean -fd, or rebase.
- Confirmation prompts: prompts users to confirm risky actions and document intent.
- Scope across main operations: blocks or warns on commands like git push --force on main, git reset --hard, and git clean -fd in any branch.
Quick Start
To enable, copy this skill into your Claude skills directory and run a destructive operation to see the backup-prompt workflow. Create a backup first using:
- git stash push -m "backup-before-destructive-<date>" Then proceed with the destructive command only after the prompt confirms.
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: safe-git-guard Download link: https://github.com/Svenja-dev/claude-code-skills/archive/main.zip#safe-git-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 223,000+ vetted skills library on demand.