08 hook generate

From ai-driven-dev/framework · View interactive version

08 hook generate is an AI agent skill from the GitHub repository ai-driven-dev/framework. Generate a hook, a handler that runs at a lifecycle event, across the host AI tools. Use when the user wants to create, scaffold, or refactor a hook, or automate an action at a lifecycle point. Not for other artifacts like skills or rules.

How to use this skill

Skill file

Hook Generate

Builds one hook: an entry merged into the chosen scope for each supported tool, plus the backing script.

Actions

| # | Action | Role | Input |

| --- | -------------- | ------------------------------------------------- | ----------------- |

| 01 | capture-hook | Clarify the moment, intent, action, matcher, scope, tools | user request |

| 02 | write-hook | Merge the entry per tool, write the script | the captured spec |

| 03 | validate | Check the file, the merge, and the moment fit | files written |

Run the actions in order, 01 → 03, and run each action's ## Test before the next.

Before running an action, read its file in actions/, not only the table or assets.

References

Assets

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.