Skip to content
Development
Hook

Hooks

What ai-sdlc-harness runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add MostAshraf/ai-sdlc-harness --agent claude-code

Ships with ai-sdlc-harness. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs bash.

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • Runs user-prompt.

PostToolUse

  • Runs post-spawn.

SubagentStop

  • Runs subagent-stop.
Read hooks/hooks.json

Where it lives

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withai-sdlc-harness

A governed multi-agent SDLC pipeline for Claude Code โ€” a ground-up rewrite of ai-sdlc-harness.

Get the whole plugin, auto-invoked