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.
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-improverRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davekilleen/Dex /tmp/Dex && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Dex/.agents/skills/prompt-improver ~/.gemini/antigravity-cli/skills/prompt-improverAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
