Overview
block-no-verify-hook is an open-source workflow skill for Claude Code, published by wshobson. Its author describes it as: “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.”. The project has 39k stars on GitHub and is available under the MIT license. Add it to your setup with `/plugin marketplace add wshobson/agents`.
What block-no-verify-hook does
PreToolUse hook configuration that intercepts and blocks bypass-flag usage before execution, ensuring AI agents cannot skip pre-commit hooks, GPG signing, or other git safety mechanisms.
What’s inside
The SKILL.md for block-no-verify-hook is organised into these sections:
- Overview
- Problem
- Solution
- Configuration
- How It Works
- Exit Codes
- Blocked Flags
- Installation
- Per-Project Setup
- Global Setup
- Verification
- Extending the Hook
Installation
Add block-no-verify-hook to your agent with:
/plugin marketplace add wshobson/agents Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.
Supported agents
- Claude Code — named in the skill.md
- Codex — declared in the repository topics
- Cursor — declared in the repository topics
- OpenCode — declared in the repository topics
- GitHub Copilot — declared in the repository topics
- Antigravity — declared in the repository topics
License
block-no-verify-hook is published under the MIT license.
Strengths
- Clear MIT license — safe to read and adapt within its terms
- Ships in wshobson/agents, an established project with 39,066 GitHub stars
- Works with Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Antigravity
- Actively maintained — repository updated in the last 90 days
- Its repository gained 669 GitHub stars over the last 24 days
Author
Topics
Frequently asked questions
- What does block-no-verify-hook do?
- 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.
- How do I install block-no-verify-hook?
- Run /plugin marketplace add wshobson/agents in your agent, then reload your skills. Review the source at https://github.com/wshobson/agents before installing.
- Is block-no-verify-hook free to use?
- Yes. block-no-verify-hook is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
- Which agents does block-no-verify-hook work with?
- block-no-verify-hook lists Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, and Antigravity — named in its SKILL.md, its plugin marketplace or its repository topics. Skills use the portable SKILL.md format, so other agents that read that format may load it too.
- Where does block-no-verify-hook come from?
- block-no-verify-hook ships inside wshobson/agents, a repository that contains 54 catalogued skills in total. The repository's 39,066 GitHub stars apply to that whole collection, not to this skill on its own.