用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill generate-hooks命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | generate-hooks |
| description | Produce hook scripts from discovered anti-patterns — drafts by default, --install writes to settings |
| argument-hint | [--install] [--from <analysis-file>] |
| allowed-tools | Read,Write,Edit,Glob,Grep,Task |
Generate Claude Code hook configurations from kaizen analysis findings. Translates discovered anti-patterns into automated prevention hooks.
--install — Write hooks directly to project settings instead of draft files. Without this flag, hooks are written as proposals to .planning/kaizen/hooks/.--from <analysis-file> — Source analysis file to generate hooks from. Default: most recent analysis file in .planning/kaizen/.Find source analysis. If --from is provided, use that file. Otherwise, glob for the most recent .planning/kaizen/analysis-*.md.
Extract hook-eligible findings. Read the analysis file and identify findings where the recommended improvement type is "hook". Filter for:
Spawn @improvement-generator agent. Delegate hook generation:
subagent_type: improvement-generator
prompt: "Generate hook configurations from these findings: {findings}. Write proposals to .planning/kaizen/hooks/ or install to settings if --install flag is set."
The agent uses the kaizen-improvement skill which contains hook patterns and templates.
Output results.
Draft mode (default): Write each hook proposal as a separate file in .planning/kaizen/hooks/:
.planning/kaizen/hooks/
├── tool-misuse-prevention.md
├── edit-before-read-guard.md
└── research-to-files-enforcement.md
Each file contains the hook configuration, script (if command type), rationale, and testing instructions.
Install mode (--install): Merge hook configurations into the project's hooks/hooks.json or .claude/settings.json. Report what was installed.
Display summary. Show the user how many hooks were generated, what anti-patterns they address, and where the output was written.