Claude Code hook

Claude Code Prompt Improver

Intelligent prompt improver hook for Claude Code. Type vibes, ship precision.

1,966 stars 156 forksHooks Source

Install

Install
claude plugin marketplace add severity1/severity1-marketplace

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/severity1/claude-code-prompt-improver.git

From 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…
Read the full README on GitHub

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.
Claude Code docs

Details

Type
Hooks
Language
Python
License
MIT
Last updated
1 October 2026

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

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.