Hooks

From sswym/oh-my-agent · View interactive version

Hooks is an AI agent skill from the GitHub repository sswym/oh-my-agent. 使用此技能通过将重复的工作流信号转换为显式钩子操作来保持长时间会话稳定。

How to use this skill

Skill file

目的

使用此技能通过将重复的工作流信号转换为显式钩子操作来保持长时间会话稳定。

触发条件

工作流程

  1. 识别活动原生事件和所需的派生信号。
  2. 将每个触发器分配到一个执行通道(P0-safety、P1-quality、P2-optimization)。
  3. 强制执行确定性顺序、幂等键、去抖动和超时预算。
  4. 为工作器/委托会话强制执行团队安全策略。
  5. 在高自主循环之前推荐验证(/oma:hooks-validate)和试运行(/oma:hooks-test)。

护栏

输出模板

## 钩子计划
- 配置文件:
- 已启用事件:
- 派生信号:

## 通道分配
| 通道 | 触发器 | 目的 | 预算 |
| --- | --- | --- | --- |

## 安全策略
- ...

## 下一个命令
1. /oma:hooks-validate
2. /oma:hooks-test
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.