跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Block No Verify

插件 已验证 活跃

PreToolUse hook that prevents AI agents from using --no-verify, --no-gpg-sign, and other bypass flags that skip git hooks

1 个 Skill 0 个 MCP
目的

To prevent AI agents from bypassing critical git hooks and ensure code quality and security standards are maintained during commits.

功能

  • Blocks git bypass flags (--no-verify, --no-gpg-sign)
  • Configures a PreToolUse hook for bash commands
  • Supports per-project and global configuration
  • Provides clear error messages upon blocking
  • Extensible to block additional flags

使用场景

  • Ensuring pre-commit hooks run automatically for all commits
  • Preventing AI agents from submitting unformatted or insecure code
  • Enforcing GPG signing policies on all commits
  • Setting up a security baseline for AI-assisted development workflows

非目标

  • Implementing specific pre-commit hook logic
  • Managing git configurations beyond blocking bypass flags
  • Scanning code for vulnerabilities (this is the responsibility of the pre-commit hooks themselves)

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install block-no-verify@claude-code-workflows

质量评分

已验证
95 /100
13 days ago 分析

信任信号

最近提交14 days ago
星标35.3k
许可证MIT
状态
查看源代码