create-hook
Register automation hooks to trigger AI actions when spec workflow events occur, such as automatically marking tasks complete upon completion.
Instructions
Register an automation hook for the spec workflow. Hooks define actions the AI should automatically perform when specific events occur. Events: on-requirements-confirmed, on-design-confirmed, on-tasks-confirmed, on-task-completed, on-implementation-done, on-spec-phase-change, on-user-request-change, manual
Example: when a task is completed (on-task-completed), auto-run update-task to mark it [x].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique hook name (e.g. auto-mark-completed) | |
| event | Yes | Event that triggers this hook | |
| description | Yes | Short description of what this hook does | |
| instructions | Yes | Detailed instructions for the AI to execute when triggered |