Claude Code hook
Claude Code Prompt Improver
Intelligent prompt improver hook for Claude Code. Type vibes, ship precision.
Install
claude plugin marketplace add severity1/severity1-marketplaceFound in the project README. Check it for setup steps after installing.
git clone https://github.com/severity1/claude-code-prompt-improver.gitFrom the README
Claude Code Prompt 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. The goal is a better first output, so you spend fewer turns correcting it.
Prompt improvement here means improving the whole path from your prompt to Claude's output, not just rewriting the words you typed. Clarifying a vague prompt is one way to do that. Supplying a constraint you would otherwise have had to add by hand after a bad first attempt is another. Both land the output sooner.
What It Does
A small set of targeted nudges fire only when they apply, each one supplying context that would otherwise cost a correction round-trip:
Two nudges evaluate every prompt. improve checks clarity:
- For clear prompts: proceeds immediately (zero skill overhead)
- For vague prompts: invokes the prompt-improver skill to create a research plan, gather context, and ask 1-6 grounded questions, then proceeds with the clarification
plan-mode runs alongside it, judging whether the task is complex enough to plan before acting - it self-cancels on anything trivial.
The other seven fire only when they apply. The keyword-gated ones (workflow, approach-assessment, output-readability, ask-user-question, background-exec) lead with a condition ("If this is X... if not, ignore"), so a false fire is dismissed cheaply; the exact-gated ones (plan on plan-mode entry, subagent-routing on a research agent) only fire when the condition is already certain.
Result: Better outcomes on the first try, without back-and-forth.
v0.4.0 Update: Skill-based architecture with hook-level evaluation achieves 31% token reduction. Clear prompts have zero skill overhead, vague prompts get…How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- severity1/claude-code-prompt-improver
- Type
- Hooks
- Language
- Python
- License
- MIT
- Last updated
- 1 October 2026
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is Claude Code Prompt Improver?
Intelligent prompt improver hook for Claude Code. Type vibes, ship precision. It is a hook for Claude Code, from severity1/claude-code-prompt-improver on GitHub.
How do I install Claude Code Prompt Improver?
Run claude plugin marketplace add severity1/severity1-marketplace, then follow the setup in the README.
Is Claude Code Prompt Improver popular?
severity1/claude-code-prompt-improver has 1,966 GitHub stars and 156 forks, and is included in 1 curated Claude Code list. It was last updated on 1 October 2026.
More hooks
Claude Memory Compiler
1.3kcoleam00/claude-memory-compiler
Hooks that capture sessions and compile them into evolving project memory for Claude Code.
CC Safety Net
1.9kkenryu42/cc-safety-net
Pre-execution guard hook that blocks dangerous git and filesystem commands issued by coding agents.
Skillshare
2.9krunkids/skillshare
Sync skills, agents, MCP, plugins to all AI CLI tools with one command and simplify team sharing.
Everything Claude Code Zh
2kxu-xiang/everything-claude-code-zh
everything-claude-code 中文翻译项目:完整的 Claude Code 配置集合(agents, skills, hooks, commands, rules, MCPs)。源自 Anthropic 黑客松获胜者的实战配置,助力中文工程师高效理解与使用 Claude Code。
Everything Claude Code
5.8kWorldFlowAI/everything-claude-code
Claude Code toolkit - agents, commands, skills, rules, and hooks for productive AI-assisted development
claude-code-hooks
572karanb192/claude-code-hooks
Collection of safety, cost, observability and productivity hooks, also installable as a plugin marketplace.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.