block-no-verify-hook

Block git pre-commit hook bypass flags in Claude Code projects.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill block-no-verify-hook-priyanshkuniyal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: block-no-verify-hook
Source: https://github.com/PriyanshKuniyal/gemini-cli-resources/tree/main/extensions/claude-code-workflows/plugins/block-no-verify/skills/block-no-verify-hook
Command: npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill block-no-verify-hook-priyanshkuniyal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures AI agents do not skip git pre-commit hooks with bypass flags, maintaining code quality and security.

Core Features & Use Cases

  • Prevent Bypass Flags: Blocks usage of --no-verify and --no-gpg-sign flags in git commands.
  • Guard Against Hook Bypass: Ensures pre-commit hooks, GPG signing, and other git safety mechanisms are not circumvented.
  • Use Case: Ideal for Claude Code projects that enforce commit quality gates, preventing unformatted or unsigned code from being committed.

Quick Start

Use the block-no-verify-hook to enforce git pre-commit hook execution in your project.

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 coding agents from bypassing git pre-commit hooks?▼

You can prevent AI agents from bypassing git pre-commit hooks by using a PreToolUse hook to inspect and block bypass flags like --no-verify in git commands. This ensures commit quality gates are enforced in Claude Code projects.

Why does my AI agent use the --no-verify flag when committing code?▼

AI agents may use the --no-verify flag to skip pre-commit hooks and speed up commits. Blocking this flag with a dedicated hook ensures pre-commit hooks, GPG signing, and other safety mechanisms are not circumvented during automated commits.

How do I configure Claude Code settings to block git bypass flags?▼

To block git bypass flags, configure the PreToolUse hook in the .claude/settings.json file. This setup inspects git commands and prevents the execution of commits that include flags bypassing pre-commit hooks or GPG signing.

Does blocking --no-verify affect GPG signing in git commits?▼

Blocking --no-verify directly prevents bypassing pre-commit hooks, and the Skill also blocks --no-gpg-sign flags. This ensures both pre-commit quality gates and GPG signing safety mechanisms remain active during AI-assisted commits.

Can I use this hook to enforce commit quality gates for automated code formatting?▼

Yes, this hook is ideal for Claude Code projects enforcing commit quality gates. By preventing AI agents from skipping pre-commit hooks, it ensures unformatted or unsigned code cannot be committed to the repository.