Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

prompt-improver

Skill by davekilleen

Rewrites vague prompts into richer, structured ones and then runs them, falling back to the current LLM when no API key is set. Useful when a user hands over a thin instruction and wants a better result.

  • Score 71
  • 524 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install prompt-improver

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davekilleen/Dex /tmp/Dex && mkdir -p ~/.claude/skills && cp -r /tmp/Dex/.agents/skills/prompt-improver ~/.claude/skills/prompt-improver

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install prompt-improver in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

prompt-improver is an agent skill that rewrites a vague prompt into a richer, structured one before running it. It is triggered when a user says 'improve this prompt', 'make this prompt better', or hands over a thin instruction. The source says it is not for creating a reusable skill and points to create-skill for that. The skill uses a script if one exists, otherwise calls the Anthropic Messages API when ANTHROPIC_API_KEY is set, and otherwise uses the current LLM.

Flags control what the user sees. The -p flag shows the improved prompt without running it, -v shows it and then runs it, and no flag runs it silently and returns only the answer. An optional feedback argument can steer the rewrite, such as asking for a focus on security. The source describes it as working with full, partial, or no external access, and it suits users who want better results without writing structured prompts themselves.

Written from the project's SKILL.md and checked against it.

What it can do

  • Prompt improvementRewrites a vague prompt into a structured prompt using a prompt engineering system prompt.
  • Prompt-only mode (-p)Shows the improved prompt in a code block without executing it.
  • Verbose mode (-v)Shows the improved prompt in a collapsible block, then executes it.
  • Quick modeExecutes the improved prompt silently and returns only the result.
  • Feedback argumentLets the user steer the rewrite, for example toward security issues or more detail.
  • Fallback cascadeTries the improve-prompt script, then the Anthropic API, then the current LLM.

What you need

  • Anthropic API key (optional, set as ANTHROPIC_API_KEY)
  • Node.js to run the improve-prompt script

Try asking

  • Improve this prompt: critique this strategy doc
  • -p critique this strategy doc
  • -v review this code and focus on security issues

Good to know

  • Without an API key, the current LLM does the rewrite and the user is notified.
  • Analytics events are sent only if the user has opted in.
  • Usage tracking relies on the dex-analytics MCP server.

Security check

D
  • Has instructions to the assistant hidden in an HTML commentIn .agents/skills/prompt-improver/SKILL.md: <!-- Generated from `.claude/skills/prompt-improver/SKILL.md` by `scripts/generate-agents-skills.py`. Do not edit. -->

Checked automatically: .agents/skills/prompt-improver/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to prompt-improver

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

prompt-improver: common questions

Does prompt-improver need an Anthropic API key?

No. The source says the skill still works using the current LLM session without an API key. A key is listed as optional for best results.

Will I see the improved prompt?

By default, no. In quick mode only the answer is returned. The -p flag shows the improved prompt without running it, and the -v flag shows it before running it.

What happens if the Anthropic API fails?

The skill falls back to the current LLM. The source says rate limits get retries with exponential backoff before that fallback.

How do I install prompt-improver?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is prompt-improver free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is prompt-improver safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (has instructions to the assistant hidden in an html comment). Review the code before you install. How grades work.

What are alternatives to prompt-improver?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

prompt-improver Install

Add to stack

Loading.