Skip to content
Development
Hook

Hooks

What sd0x-dev-flow 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 sd0xdev/sd0x-dev-flow --agent claude-code

Ships with sd0x-dev-flow. Installing the plugin gets these hooks.

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Runs namespace-hint.sh.

PreToolUse

  • Runs pre-edit-guard.sh.

PostToolUse

  • Runs post-edit-format.sh.

Stop

  • Runs stop-guard.sh.

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-review-guard.sh.
Read hooks/hooks.json

Where it lives

Showing the source of 6 of 8 scripts. Every one is linked above.

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 withsd0x-dev-flow

Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Full control plane on Claude Code. Skills-only distribution for Codex CLI and other compatible agents.

Get the whole plugin, auto-invoked
Stats
185
Stars
0
Views
23
Forks
Active
Maintenance
JavaScript
Language
MIT
License
1d ago
Last commit
6mo ago
Created

Repo: sd0xdev/sd0x-dev-flow