Skip to content
Development
Hook

Hooks

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

From plugin
prompt-improver
1.8k1 skill3 hooks
Install
$ npx -y skills add severity1/claude-code-prompt-improver --agent claude-code

Ships with prompt-improver. Installing the plugin gets these hooks.

What fires, and when

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.

  • python3 ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py UserPromptSubmit || python ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py UserPromptSubmit

PreToolUse

  • MatchesEnterPlanMode|Bashpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py PreToolUse || python ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py PreToolUse

SubagentStart

  • python3 ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py SubagentStart || python ${CLAUDE_PLUGIN_ROOT}/scripts/engine.py SubagentStart
Read hooks/hooks.json
Ships withprompt-improver

Intelligent prompt optimization for Claude Code. It injects the right context at the right moment - at prompt submit, tool use, and subagent start - so Claude has what it needs before it acts.

Get the whole plugin
Stats
1,847
Stars
148
Forks
Maintained
Maintenance
Python
Language
MIT
License
2mo ago
Last commit
9mo ago
Created

Repo: severity1/claude-code-prompt-improver