复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-7d7069f836f3 ,按照其中的说明把「hookify-help」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Display comprehensive hookify documentation.
Hookify creates rule files that integrate with Claude Code's hook system to prevent unwanted behaviors.
bash: triggers on Bash tool use and matches command patternsfile: triggers on Write/Edit tool use and matches file pathsstop: triggers when a session endsprompt: triggers on user message submission and matches input patternsall: triggers on all eventsFiles are stored as .claude/hookify.{name}.local.md:
---
name: descriptive-name
enabled: true
event: bash|file|stop|prompt|all
action: block|warn
pattern: "regex pattern to match"
---
Message to display when rule triggers.
Supports multiple lines.
/hookify [description] creates new rules and auto-analyzes the conversation when no description is given/hookify-list lists configured rules/hookify-configure toggles rules on or offbash, match against the full command stringfile, match against the file path