block-no-verify-hook

Block git commands using --no-verify or --no-gpg-sign flags.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Jhabbig/Habbig --skill block-no-verify-hook-jhabbig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: block-no-verify-hook
Source: https://github.com/Jhabbig/Habbig/tree/main/.claude/plugins/wshobson/block-no-verify/skills/block-no-verify-hook
Command: npx skills add https://github.com/Jhabbig/Habbig --skill block-no-verify-hook-jhabbig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents AI agents from bypassing important git safety checks with flags that skip pre-commit hooks, signing, and merge protections.

Core Features & Use Cases

  • Bypass Detection: Scans Bash tool calls for git commands that include unsafe override flags.
  • Early Rejection: Blocks the command before execution so pre-commit, commit-msg, and signing policies still run.
  • Team Enforcement: Helps maintain consistent repository hygiene in Claude Code projects and other AI-assisted workflows where hidden bypasses would weaken quality gates.

Quick Start

Ask the skill to add a PreToolUse hook to your Claude Code settings that blocks git commands using --no-verify or --no-gpg-sign.

Frequently Asked Questions about block-no-verify-hook

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent git commit bypass flags in Claude Code?

To prevent git commit bypass flags in Claude Code, use a PreToolUse hook that inspects Bash tool input and rejects commands containing --no-verify or --no-gpg-sign before execution. This enforces pre-commit and signing policies at the source.

What are git bypass flags and why block them in pre-commit hooks?

Git bypass flags like --no-verify and --no-gpg-sign skip pre-commit hooks and commit signing protections. Blocking them in pre-commit hooks maintains repository governance, quality gates, and commit integrity in AI-assisted workflows.

How to set up a PreToolUse hook to block --no-verify in git commands?

To set up a PreToolUse hook to block --no-verify, add a Bash matcher to your Claude Code settings that inspects TOOL_INPUT for git commands and rejects any execution containing unsafe override flags before the command runs.

Does this git hook bypass protection work with existing repository governance policies?

Yes, this git hook bypass protection works with existing repository governance policies by ensuring commit-msg, pre-commit, and signing checks still run. It enforces consistent repository hygiene in team environments without altering existing workflows.

Can I use this to stop AI agents from skipping commit signing in team environments?

Yes, you can use this to stop AI agents from skipping commit signing in team environments. It scans Bash tool calls for --no-gpg-sign flags and blocks execution, ensuring commit signing protections remain active across all team workflows.

What happens when a git command with a bypass flag is detected?

When a git command with a bypass flag is detected, the command is rejected early before execution. This early rejection ensures pre-commit, commit-msg, and signing policies still run, preventing hidden bypasses from weakening quality gates.