Hookify Plugin
插件 活跃Easily create hooks to prevent unwanted behaviors by analyzing conversation patterns
Empower users to proactively prevent unwanted or risky behaviors by easily defining custom rules based on conversation analysis and explicit instructions.
功能
- Create custom hooks via markdown files
- Analyze conversations for unwanted behaviors
- Define rules for bash, file, stop, and prompt events
- Block or warn on rule matches
- Interactive rule management commands
使用场景
- Preventing the use of dangerous bash commands like `rm -rf`
- Warning about sensitive information in file edits
- Ensuring best practices like running tests before stopping
- Enforcing coding standards by detecting debug statements
非目标
- Replacing core Claude Code functionality
- Managing external dependencies
- Providing a full-fledged security auditing tool
工作流
- User invokes `/hookify` command
- Plugin analyzes conversation or uses provided instructions
- User selects behaviors and actions (warn/block)
- Plugin generates `.claude/hookify.{rule-name}.local.md` files
- Hooks dynamically load rules on next tool use
- Plugin enforces defined rules during agent execution
实践
- Rule definition
- Behavioral analysis
- Workflow enforcement
先决条件
- Python 3.7+
Trust
- warning:Issues AttentionWith 9462 issues opened and 22831 closed in the last 90 days, the closure rate is approximately 71%, but the high volume of open issues suggests potential delays in maintainer response.
安装
请先添加 Marketplace
/plugin marketplace add anthropics/claude-code/plugin install hookify@claude-code-plugins质量评分
类似扩展
Dotforge Stack Python Fastapi
100Python 3.12+ with FastAPI, async/await, type hints, and Ruff linting rules for Claude Code.
Dotforge
100Node.js 20+ with Express/Fastify, TypeScript, and ESM module rules for Claude Code.
Review Agent Governance
99Require a human approval signal before an AI agent can post PR reviews, comments, merges, or writes to CI config. Cedar-gated, receipt-signed, designed for the Hermes-style failure mode where a review bot posts without oversight.
Accessibility Compliance
99WCAG accessibility auditing, compliance validation, UI testing for screen readers, keyboard navigation, and inclusive design
Cc Safe Setup
99734 个用于 Claude Code 的安全钩子 — 在自主 AI 编码会话期间防止文件删除、凭证泄露、git 灾难和令牌浪费
Claude Code Hooks
99为 Claude Code 的自动化运行提供生产环境安全钩子。包括上下文监控、语法检查、分支保护、活动日志记录等。