hf.block-destructive-git

Community

Block destructive git commands before they happen

AuthorT-rav
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Blocking destructive git commands to prevent irreversible changes and protect a codebase from accidental history rewrites.

Core Features & Use Cases

  • Guard destructive commands like git push --force, git reset --hard, git checkout ., git restore ., git clean -f, and git branch -D
  • Works as a pretool hook or integrated into CI/development workflows with explicit approval prompts
  • Use case: In a team repository, prevent accidental destructive operations without slowing development.

Quick Start

Block destructive git commands in a repository by requiring explicit user confirmation before actions like push --force, reset --hard, or branch deletion.

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: hf.block-destructive-git
Download link: https://github.com/T-rav/hydraflow/archive/main.zip#hf-block-destructive-git

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.