From oh-my-agent
Initializes oma hooks scaffold with balanced default config, creates state files, READMEs, and plugin docs for safety/quality/optimization. Outputs bootstrap status, event matrix, contracts, and validation suggestion.
How this command is triggered — by the user, by Claude, or both
Slash command
/oh-my-agent:hooks-initThe summary Claude sees in its command listing — used to decide when to auto-load this command
初始化 oma 钩子。 任务上下文: $ARGUMENTS 引导协议: 1. 创建带有确定性事件通道的默认钩子配置文件(`balanced`)。 2. 如果文件系统工具可用,创建/更新: - `.oma/state/hooks.json` - `.oma/hooks/README.md` - `.oma/hooks/plugins/safety.md` - `.oma/hooks/plugins/quality.md` - `.oma/hooks/plugins/optimization.md` 3. 为运行时适配器记录插件契约: - `onHookEvent(event, sdk)` - `event` 信封:`event`、`source`、`session_id`、`task_id`、`metadata` - `sdk` 能力:`log`、`state.get`、`state.set`、可选的运行时桥接方法 4. 添加默认护栏: - 工作会话的副作用钩子关闭 - 非关键通道的失败开放(`P2-optimization`) - 明确安全违规的失败关闭(`P0-safety`) 5. 建议使用 `/oma:hooks-validate` 进行立即验证。 输出格式: ## 钩子引导 - 状态: - 配置文...
初始化 oma 钩子。
任务上下文: $ARGUMENTS
引导协议:
balanced)。.oma/state/hooks.json.oma/hooks/README.md.oma/hooks/plugins/safety.md.oma/hooks/plugins/quality.md.oma/hooks/plugins/optimization.mdonHookEvent(event, sdk)event 信封:event、source、session_id、task_id、metadatasdk 能力:log、state.get、state.set、可选的运行时桥接方法P2-optimization)P0-safety)/oma:hooks-validate 进行立即验证。输出格式:
| 事件 | 通道 | 已启用 | 副作用 |
|---|
npx claudepluginhub sswym/oh-my-agent --plugin oh-my-agent/add-hookAdds or updates hooks.json with a new hook configuration for automated plugin behavior at lifecycle events like PreToolUse or SessionStart. Requires event type; optional matcher and --plugin.
/create-hookScaffolds, debugs, validates, and analyzes Claude Code hooks with built-in templates and conflict detection.
/create-hookCreates new hooks via structured workflow: Iron Law tests first, brainstorm, security design, scaffold, validate. Supports --skip-brainstorm, --plugin, --event flags.
/create-hookCreates a new custom automation hook for Claude Code events like SessionStart or PreToolUse. Prompts for name, trigger event, matcher, language (Python/Bash); generates script and registers it in hooks.json.
/new-hookCreates and configures Claude Code hooks from a natural language description, setting up events, matchers, and shell commands for workflow automation, notifications, formatting, and behavior control.
/hookify-helpDisplays comprehensive documentation for the hookify system, including event types, rule file format, and available commands.