6,891,713 AI resources indexedWorking toward the world’s largest AI resource index.

git-safety

Branch-aware git guardrails plus destructive gh CLI protection: denies pushes to main/master, protected-branch deletion, direct commit/merge/rebase/reset/push on a protected branch, and gh pr merge/close, issue close, release and repo delete.

Published by Karan Bansal

PDF
No ratings yet

How to use it

Branch-aware git guardrails plus destructive gh CLI protection: denies pushes to main/master, protected-branch deletion, direct commit/merge/rebase/reset/push on a protected branch, and gh pr merge/close, issue close, release and repo delete.

Install through Claude Code: run /plugin marketplace add karanb192/claude-code-hooks, open /plugin, choose Discover, then select git-safety from the added marketplace. Read the permission prompts and choose the installation scope that fits your project.

This is a Claude Code plugin bundle. It extends an existing Claude Code installation and requires access to Claude Code. It is not a standalone workflow engine. Dependencies mentioned in the publisher setup: Claude Code, Node.js mentioned in setup, Git mentioned in setup.

The package manifest, project license and setup documentation passed automated static checks. No additional service-account requirement was detected by that scan. The plugin has not been executed or certified account-free. Review any hooks or commands before enabling them.

Framework
Claude Code
Host application
Claude Code
Package path
./plugins/git-safety
Plugin name
git-safety
Requirements
Claude Code access; Node.js mentioned in setup; Git mentioned in setup
Review
Manifest, license and setup checked; runtime not tested
Access
Install in Claude Code
License
MIT
Visit Plugin Repository