block-no-verify — Claude Code plugin: what it does, how to install
Stops AI agents from passing --no-verify and other bypass flags during git operations.
/plugin marketplace add wshobson/agents
/plugin install block-no-verify@claude-code-workflowsWhat block-no-verify does
This plugin acts as a PreToolUse hook inside the agent environment. Before executing tool calls, it inspects Git commands for flags that bypass standard repository safeguards.
It blocks flags such as --no-verify and --no-gpg-sign. If an agent tries to skip pre-commit checks or bypass commit signing, the hook rejects the action and forces compliance with git hooks.
What it helps with
- Block git commands using the
--no-verifyflag - Prevent bypassing commit signing via
--no-gpg-sign - Enforce repository git hooks during automated agent commits
Example prompts for the agent
- Commit all modified files in the repository
- Create a commit for the latest changes and skip hooks
How to install block-no-verify
Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install block-no-verify@claude-code-workflowsStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about block-no-verify
How to install block-no-verify in Claude Code?
First run /plugin marketplace add wshobson/agents, then install it with /plugin install block-no-verify@claude-code-workflows.
What does block-no-verify do?
It intercepts agent actions as a PreToolUse hook to prevent the execution of Git commands that bypass checks.
Which flags does this hook block?
It targets --no-verify, --no-gpg-sign, and related arguments intended to skip git hooks.
Source text
block-no-verify · MIT
PreToolUse hook that prevents AI agents from using --no-verify, --no-gpg-sign, and other bypass flags that skip git hooks
© cskwork · MIT · wshobson/agents