ss-workflow-restrict-git-commands
CommunityPrevent destructive git without explicit consent.
Software Engineering#git#authorization#safety guardrails#agent harness#destructive commands#workflow policy
AuthorEmrebener
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents accidental or unauthorized destructive Git operations that can irreversibly rewrite history or delete local work.
Core Features & Use Cases
- Per-command authorization policy: Blocks execution unless the user explicitly confirms the exact destructive command for that specific invocation.
- Covers common high-risk operations: Includes push (with force variants), reset --hard, clean -f (including common variants), branch -D / force deletion, and checkout . / restore ..
- Optional deterministic enforcement: Ships a Claude Code PreToolUse hook script that hard-blocks the same dangerous patterns at the harness level when installed.
Quick Start
Use the skill at session start by telling your agent: "I will use ss-workflow-restrict-git-commands—destructive git operations require your explicit authorization."
Dependency Matrix
Required Modules
jq
Components
scripts
đź’» 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: ss-workflow-restrict-git-commands Download link: https://github.com/Emrebener/Sublime-Skills/archive/main.zip#ss-workflow-restrict-git-commands 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.