Skip to main content

Block No Verify Hook

Skill Verified Active

Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags. Use when setting up Claude Code projects that enforce commit quality gates.

Purpose

To ensure commit quality gates are enforced by preventing AI agents from skipping pre-commit hooks via bypass flags like `--no-verify`.

Features

  • Blocks git commit bypass flags (--no-verify, --no-gpg-sign)
  • Integrates as a PreToolUse hook in Claude Code
  • Provides clear error messages when bypass flags are detected
  • Configurable to block additional flags

Use Cases

  • Setting up Claude Code projects that enforce commit quality gates
  • Preventing unformatted or untested code from entering a repository via AI agents
  • Ensuring all commits are GPG signed when required by project policy

Non-Goals

  • Implementing custom pre-commit hook logic
  • Directly running git commands
  • Enforcing commit message content or style

Installation

First, add the marketplace

/plugin marketplace add wshobson/agents
/plugin install block-no-verify@claude-code-workflows

Quality Score

Verified
98 /100
Analyzed 13 days ago

Trust Signals

Last commit14 days ago
Stars35.3k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.