Skills for Real Engineers. Straight from my .agents directory.
block-no-verify-hook
Agent skill fromwshobson/agents
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 to install block-no-verify-hook
npx skills add wshobson/agents# or add only this skill to Claude Code: copy the folder
plugins/block-no-verify/skills/block-no-verify-hook/
# into
~/.claude/skills/block-no-verify-hook/ (all projects)
.claude/skills/block-no-verify-hook/ (one project)
1# Block No-Verify Hook23PreToolUse 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.45## Overview67AI coding agents (Claude Code, Codex, etc.) can run shell commands with flags like `--no-verify` that bypass pre-commit hooks. This defeats the purpose of linting, formatting, testing, and security checks configured in pre-commit hooks. The block-no-verify hook adds a PreToolUse guard that rejects any tool call containing bypass flags before execution.89## Problem1011When AI agents commit code, they may use bypass flags to avoid hook failures:1213```bash14# These commands skip pre-commit hooks entirely15git commit --no-verify -m "quick fix"16git push --no-verify17git commit --no-gpg-sign -m "unsigned commit"18git merge --no-verify feature-branch19```2021This allows:22- Unformatted code to enter the repository23- Linting errors to bypass checks24- Security scanning to be skipped25- Unsigned commits to bypass signing policies26- Test suites to be circumvented2728## Solution2930Add a `PreToolUse` hook to `.claude/settings.json` that inspects every Bash tool call and blocks commands containing bypass flags.3132### Configuration3334Add the following to your project's `.claude/settings.json`:3536```json37{38 "hooks": {39 "PreToolUse": [40 {41 "matcher": "Bash",42 "hooks": [43 {44 "type": "command",45…
Excerpt shown under the repository's MIT license.
More skills in agents
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
