block-no-verify-hook
PreToolUse hook that blocks AI agents from bypassing git pre-commit hooks with --no-verify.
๐ก๏ธ AgentReady threat assessment
MAESTRO 7-layer threat model + OWASP AIVSS risk score for block-no-verify-hook, derived from its capabilities.
AIVSS 5.8 ยท Medium
View MAESTRO 7-layer threat model โOverview
An Agent Skill that configures a Claude Code PreToolUse hook to intercept and reject shell commands containing bypass flags like git commit --no-verify before they run, so agents cannot skip pre-commit hooks, GPG signing, or other safety gates. It ships the hook config and matching logic the agent installs into settings.
Key features
- PreToolUse bypass-flag interception
- Enforces pre-commit and signing gates
- Blocks --no-verify and similar flags
Use cases
- Enforcing commit quality gates
- Preventing agents from skipping hooks