block-no-verify-hook

Block git bypass flags like --no-verify and --no-gpg-sign via a Bash PreToolUse hook.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/haxlys/skills --skill block-no-verify-hook-haxlys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: block-no-verify-hook
Source: https://github.com/haxlys/skills/tree/main/vendored/wshobson-agents/plugins/block-no-verify/skills/block-no-verify-hook
Command: npx skills add https://github.com/haxlys/skills --skill block-no-verify-hook-haxlys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Block No-Verify Hook provides a PreToolUse hook configuration to prevent AI agents from bypassing git pre-commit and commit-signing checks by using bypass flags such as --no-verify and --no-gpg-sign.

Core Features & Use Cases

  • Blocks git bypass flags on commands to ensure pre-commit hooks and signing policies run.
  • Applicable to Claude Code environments and AI-assisted Git workflows to prevent unsafe commits and uphold code quality gates.
  • Use cases include protecting repository hygiene in automated coding sessions and CI pipelines that rely on enforced checks.

Quick Start

Add a PreToolUse hook to your .claude/settings.json to block git bypass flags and enforce pre-commit checks.

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 AI agents from bypassing git pre-commit hooks with --no-verify?

You can prevent AI agents from bypassing git pre-commit hooks by configuring a PreToolUse hook to inspect commands for the --no-verify flag and abort them. This enforces pre-commit checks in automated Git workflows.

What is a PreToolUse hook for enforcing git commit policies?

A PreToolUse hook for enforcing git commit policies is a Bash script that inspects TOOL_INPUT for bypass flags like --no-verify and --no-gpg-sign. It aborts offending commands to maintain repository hygiene and code quality gates.

How do I configure Claude Code to block --no-gpg-sign flags?

To configure Claude Code to block --no-gpg-sign flags, add a PreToolUse hook to your .claude/settings.json file. This hook inspects commands and aborts any attempts to bypass commit-signing checks.

Can I use a Bash hook to protect repository hygiene in CI pipelines?

Yes, you can use a Bash PreToolUse hook to protect repository hygiene in CI pipelines. It enforces pre-commit checks by blocking git bypass flags, preventing unsafe commits during automated coding sessions.

When do I need to block git bypass flags in automated coding sessions?

You need to block git bypass flags in automated coding sessions when relying on enforced checks to uphold code quality. Blocking flags like --no-verify prevents AI agents from making unsafe commits that skip pre-commit hooks.