LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

block-no-verify-hook

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.

35,845stars3,891forksUpdated 5/24/2026
SecurityGit & Version Control#pre-commit#security#claude-code#code-quality#hooks#git

Security Assessment

Safe(100/100)
Security Score100/100

About block-no-verify-hook

The block-no-verify-hook skill provides a PreToolUse hook configuration designed to prevent AI coding agents from bypassing Git safety mechanisms when executing shell commands. It addresses a common issue where agents may use flags such as `--no-verify` or `--no-gpg-sign` to skip pre-commit hooks, commit-message validation, GPG signing requirements, and other repository quality controls. By intercepting commands before execution, the hook helps ensure that established development workflows, code quality checks, and security policies remain enforced during AI-assisted development.

The skill works by adding a `PreToolUse` hook to a Claude Code settings file and targeting Bash tool calls. The hook inspects the pending command through the `$TOOL_INPUT` environment variable and searches for prohibited bypass flags when they appear in Git commands. If a restricted flag is detected, the hook rejects the tool call by returning exit code 2 and displaying an explanatory error message. Commands that do not contain the blocked flags proceed normally, allowing standard development tasks to continue without interruption. The configuration specifically blocks `--no-verify` and `--no-gpg-sign` because these options can circumvent important validation and signing processes.

This skill is intended for teams and developers who use AI coding assistants in repositories with enforced quality gates. It is particularly useful in projects that rely on pre-commit hooks for formatting, linting, testing, security scanning, or commit-signing policies. Organizations seeking consistent compliance with repository standards can deploy the configuration either on a per-project basis through `.claude/settings.json` or more broadly through a global Claude settings configuration.

FAQ

What does this hook block?

The hook blocks Git commands that use the `--no-verify` or `--no-gpg-sign` flags, preventing AI agents from bypassing pre-commit hooks or commit-signing requirements.

Which tool calls are inspected by the hook?

The configuration targets only `Bash` tool calls through the `matcher` setting and does not affect other tools such as Read, Edit, or Grep.

How does the hook determine whether to block a command?

It examines the command contained in the `$TOOL_INPUT` environment variable and checks for blocked flags when they are used with Git commands.

Can this be configured for a single project or all projects?

Yes. The documentation describes both per-project installation using `.claude/settings.json` and a global setup using `~/.claude/settings.json`.

Does the hook prevent all possible Git bypass techniques?

The documented configuration specifically checks for the `--no-verify` and `--no-gpg-sign` flags in Git commands. No additional bypass detection mechanisms are described in the provided content.

Install block-no-verify-hook

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

wshobson/agents

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901