block-no-verify-hook

Block --no-verify and --no-gpg-sign flags in Git commands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Block bypass flags in Git commands to ensure pre-commit hooks, GPG signing, and other safety checks run.

Core Features & Use Cases

  • PreToolUse guard that rejects bypass flags in Git commands before execution.
  • Works with Claude Code projects to enforce commit quality gates and signing policies.
  • Easy per-project or global configuration via .claude/settings.json.

Quick Start

Configure a Per-Project .claude/settings.json with a PreToolUse Bash hook to block --no-verify and --no-gpg-sign flags.

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 commands from using the --no-verify flag?

You can block the --no-verify flag by configuring a PreToolUse Bash hook in your .claude/settings.json to intercept and reject git commands before execution.

What is a PreToolUse hook for blocking git bypass flags?

A PreToolUse hook intercepts Bash commands before execution to reject bypass flags like --no-verify and --no-gpg-sign, ensuring pre-commit hooks and GPG signing policies run.

Can I configure git commit quality gates globally for Claude Code projects?

Yes, you can configure the PreToolUse Bash hook either per-project or globally via settings.json to enforce commit quality gates across your Claude Code workflows.

How do I stop AI agents from bypassing GPG signing policies in git?

Configure a PreToolUse hook to block the --no-gpg-sign flag in git commands, ensuring signing policies execute properly when agents attempt commits.

Does blocking bypass flags work with existing pre-commit hooks?

Yes, blocking bypass flags ensures your existing pre-commit hooks execute by rejecting commands that attempt to skip them using --no-verify.

Why should I block --no-verify in automated git workflows?

Blocking --no-verify prevents agents from skipping quality gates, ensuring pre-commit hooks and signing policies always execute before changes are committed.