improve-prompt

improve-prompt is a command for coding agents from onmyway133/claude-code-plugins. It costs 0 tokens per session (578 once invoked), scanned A, original, MIT.

A command that reviews a vague or incomplete instruction and rewrites it into a clearer prompt. A prompt is the request given to an AI agent.

In plain words
What is it for?
Use `/prompt-improver` to clarify requests such as bug fixes, API changes, performance work, or new features.
Why use it?
It identifies missing goals, context, scope, constraints, and success criteria before work begins, reducing misunderstandings and rework.

Command

Part of the super plugin — 6 skills, 5 commands, 6 agents, 4 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/onmyway133/claude-code-plugins/improve-prompt
Clone the repo
git clone --depth 1 https://github.com/onmyway133/claude-code-plugins

Or install super, the plugin that ships this one along with the rest of its 6 skills, 5 commands, 6 agents, 4 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for improve-prompt

README.md
[![agentmods](https://agentmods.dev/badge/commands/onmyway133/claude-code-plugins/improve-prompt.svg)](https://agentmods.dev/commands/onmyway133/claude-code-plugins/improve-prompt)
Your own site
<a href="https://agentmods.dev/commands/onmyway133/claude-code-plugins/improve-prompt"><img src="https://agentmods.dev/badge/commands/onmyway133/claude-code-plugins/improve-prompt.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00578
Opus 5 $0.00000 $0.00289
Sonnet 5 $0.00000 $0.00116
Haiku 4.5 $0.00000 $0.00058

Measured 4d ago against content hash a57728443598, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

improve-prompt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/super/commands/improve-prompt.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt Improver

Analyze and enhance vague or incomplete prompts before execution.

Usage

/prompt-improver [prompt]

Arguments:

  • prompt - The original prompt to analyze and improve

Process

Step 1: Analyze the Prompt

Evaluate for:

  • Clarity: Is the intent clear?
  • Specificity: Are requirements concrete?
  • Context: Is there enough background?
  • Scope: Are boundaries defined?
  • Success criteria: How do we know when it's done?

Step 2: Identify Gaps

Look for missing information:

Gap Type Example
Ambiguous target "Fix the bug" - which bug?
Missing context "Update the API" - what change?
Unclear scope "Improve performance" - where? how much?
No success criteria "Make it better" - better how?
Missing constraints "Add a feature" - any limitations?

Step 3: Research Context

Before asking questions, gather context:

  • Check recent git changes
  • Look at open files or selections
  • Review related code
  • Understand existing patterns

Step 4: Generate Clarifying Questions

Ask targeted questions to fill gaps:

To help you effectively, I need to clarify:

1. **Target**: [Specific question about what to change]
2. **Scope**: [Question about boundaries]
3. **Constraints**: [Question about limitations]
4. **Priority**: [Question about what matters most]

Keep questions:

  • Specific and actionable
  • Limited to 2-4 most important gaps
  • Informed by context already gathered

Step 5: Reformulate the Prompt

Once clarified, rewrite as a clear, actionable prompt:

Original: "Fix the login"

Improved: "Fix the login issue where users with special characters in their password cannot authenticate. The bug is in the password validation logic in auth.ts. Success criteria: users can login with any valid password."

Output Format

## Prompt Analysis

**Original**: [original prompt]

**Clarity Score**: Low / Medium / High

**Gaps Identified**:
- [Gap 1]
- [Gap 2]

**Context Found**:
- [Relevant context from codebase]

**Clarifying Questions**:
1. [Question 1]
2. [Question 2]

---

After user responds:

## Improved Prompt

[Clear, specific, actionable version]

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 107 lines · 0 tokens per session scan A a57728443598

Subscribe to this mod's changes

improve-prompt is a command published in the GitHub repository onmyway133/claude-code-plugins (5 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 578 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.