/prompt-improver:prompt-improverfrom prompt-improver
Diagnose and rewrite a draft prompt so a frontier model is engaged as a senior partner rather than a junior task-taker, and tune it for the target model (Claude Opus 5 / Claude Sonnet 5). Use when the user asks to improve, sharpen, review, fix, level-up, or rewrite a prompt; says things like "make this prompt better", "review my prompt", "is this a good prompt"; asks how to prompt Opus 5 or Sonnet 5; pastes a prompt and asks for feedback; or invokes `/prompt-improver`. Applies to prompts for heavy knowledge work (research, analysis, synthesis, strategy docs, PR FAQs, code planning) and to system prompts for coding/agentic products — not to short one-shot lookups.
Ships in prompt-improver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Rewrite a user's draft prompt as a senior-partner question, then tune it for the model that will run it.
Frontier models work best when treated as a senior partner, not a junior teammate. The old pattern — define the task tightly, hand it over, evaluate the output — leaves leverage on the table. The better pattern is to ask layered questions that convey perspective, invite synthesis, and force engagement with real data.
Apply the three principles below to heavy knowledge work. For agentic pipelines (ticket triage, invoice processing, deterministic flows), strict task-style prompts with evals are still correct — do not rewrite those into open-ended questions. The model-specific tuning section applies to both kinds of prompt.
For each item, mark present / missing / weak:
Common failure modes to call out when present:
The prompt should read like a flashlight beam: a bright center showing where to focus, and a defined edge showing the boundary of relevance.
Instead of one closed task, ask a series of harder open questions that force the model to synthesize across them.
Example shape (PR FAQ for a product launch):
Each sub-question is hard enough that no checklist eval would capture a good answer.
Both models perform well out of the box on prompts written for their predecessors (Opus 4.8, Sonnet 4.6). The rules below cover the behaviors that most often still need tuning. Every snippet is paste-ready.
Keep responses focused, brief, and concise. Keep disclaimers and caveats short, and spend most of the response on the main answer. When asked to explain something, give a high-level summary unless an in-depth explanation is specifically requested.
In a long system prompt, repeat a short reminder near the end: <tone_preference>Keep outputs reasonably concise.</tone_preference>Before your first tool call, say in one sentence what you're about to do. While working, give a brief update only when you find something important or change direction. When you finish, lead with the outcome: your first sentence should answer "what happened" or "what did you find," with supporting detail after it.
Report every issue you find, including ones you are uncertain about or consider low-severity. Do not filter for importance or confidence at this stage - a separate verification step will do that. Your goal here is coverage: it is better to surface a finding that later gets filtered out than to silently drop a real bug. For each finding, include your confidence level and an estimated severity so a downstream filter can rank them.
For a genuine single-pass filter, set a concrete bar, not a qualitative one: "report any bug that could cause incorrect behavior, a test failure, or a misleading result; omit pure style or naming nits."Deliver what was asked, at the scope intended. Make routine judgment calls yourself, and check in only when different readings of the request would lead to materially different work. If the request seems mistaken or a better approach exists, say so in a sentence and continue with the task as asked rather than quietly narrowing, widening, or transforming it. Finish the whole task, and stop short of actions that are clearly beyond what was asked.
Delegate to a subagent only for large tasks that are genuinely independent and parallelizable, such as a wide multi-file investigation. Do not delegate work you can finish yourself in a handful of tool calls, and do not use subagents to verify or double-check your own work. If one subagent can complete the task, use one rather than several, and keep spawn counts low.
Only correct an earlier statement when the error would change the user's code, conclusions, or decisions. State corrections plainly and briefly, then continue the task. For slips that change nothing for the user, make the fix and move on without noting it.
Match the length of written documents to what the task needs: cover the substance, but do not pad with filler sections, redundant summaries, or boilerplate.
high. Use low/medium liberally as the primary cost/latency control wherever quality holds; step to xhigh for demanding coding and agentic work. Accuracy on code review holds at lower effort — cheap fast pass, thorough pass later.high or below, and thinking-on at low effort generally beats thinking-off at similar cost. With thinking disabled two artifacts appear: tool calls written as visible text (never executed, and the leaked text poisons later turns in agentic loops), and internal <thinking>-style XML tags in the response. Also delete any rule telling the model not to think or reason — it increases tag leakage. If thinking must stay off:
When you use a tool, you may say a brief sentence first. If no tool can express what the user asked for, say so instead of guessing. Do not include internal or system XML tags in your response.
Keep that general form; naming thinking tags specifically works less well.Expect literal reading; state scope explicitly. Sonnet 5 does not generalize an instruction from one item to another or infer unasked-for work, especially at low effort. Write "apply this formatting to every section, not just the first one." This literalism is an asset for structured extraction and tuned pipelines.
Effort ladder (default high):
| Level | Use |
|---|---|
max | Absolute maximum capability, no token constraint |
xhigh | Hardest coding and agentic work |
high | Default; balances tokens and intelligence |
medium | Cost-sensitive work, trades some intelligence |
low | Short scoped tasks, latency-sensitive, not intelligence-sensitive |
Migration mapping: Sonnet 5 medium ≈ Sonnet 4.6 high; Sonnet 5 high ≈ Sonnet 4.6 max. When benchmarking, match on observed thinking length, not effort name.
Fix shallow reasoning with effort, not prose. Raise to high/xhigh first. Only if latency forces low:
This task involves multistep reasoning. Think carefully through the problem before responding.
Adaptive thinking is on by default. Requests with no thinking field think adaptively (changed from Sonnet 4.6). Turn off with thinking: {type: "disabled"}. Manual extended thinking (thinking: {type: "enabled", budget_tokens: N}) is removed and returns 400 — use adaptive thinking plus effort. To reduce thinking-block frequency (common with large system prompts):
Thinking adds latency and should only be used when it will meaningfully improve answer quality, typically for problems that require multistep reasoning. When in doubt, respond directly.
Revisit max_tokens. It caps thinking plus response text. At high/xhigh/max, leave headroom or risk an almost-all-thinking response truncated with stop_reason: "max_tokens"; raise max_tokens or drop to medium. The new tokenizer emits roughly 30% more tokens for the same text, so limits tuned for Sonnet 4.6 may truncate equivalent output.
Sampling parameters are gone. temperature, top_p, top_k at non-default values return 400. Steer tone and variety through the prompt instead.
Tool use: more agentic than Sonnet 4.6 by default. With thinking disabled it reaches for tools less — add an explicit nudge describing when and why to use each tool. high/xhigh effort substantially increases tool usage in agentic search and coding.
Tone: prose style shifted; re-evaluate voice prompts against the new baseline. For a warmer product voice: "Use a warm, collaborative tone. Acknowledge the user's framing before answering."
Frontend/design briefs: Sonnet 5 settles into a default house style, and generic negatives ("don't use that color", "make it clean") just swap one fixed palette for another. Two reliable levers — (a) specify a concrete alternative (exact hex palette, typeface and letter-spacing, corner radius, section structure, transition timings), or (b) have it propose options first:
Before building, propose 4 distinct visual directions tailored to this brief (each as: bg hex / accent hex / typeface, plus a one-line rationale). Ask the user to pick one, then implement only that direction.
With temperature unavailable, (b) is the recommended way to get variety across runs. Add to the system prompt:
<frontend_aesthetics>
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white or dark backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character. Use unique fonts, cohesive colors and themes, and animations for effects and micro-interactions.
</frontend_aesthetics>
Interactive coding products: use xhigh or high effort, add autonomous modes, and reduce required human turns — with the task fully specified in the first turn.
Computer use: tool version computer_20251124, max resolution 2576px / 3.75MP; 1080p balances performance and cost, 720p or 1366×768 for cost-sensitive workloads.
Respond with these sections:
## Diagnosis
- [Specific weakness 1 — quote or paraphrase the offending part of the draft]
- [Specific weakness 2]
- [...]
## Improved Prompt
[The rewritten prompt — written in the user's voice as if they will paste it directly into the model. Includes flashlight intent, named data artifacts, the user's thesis, multi-part open questions, and explicit invitation to push back.]
## Model Settings (only when there is something to say)
- [Non-prompt dials for the target model: effort level, thinking on/off, max_tokens headroom, removed sampling params, tool versions]
- [Instructions removed from the draft because the target model already does that behavior]
Keep diagnosis to 3–6 bullets. Keep the improved prompt as long as it needs to be — good senior-partner prompts are often long. Keep Model Settings to the dials that actually apply, and omit the section when the draft needs no model-level changes.
[attach: voice-of-customer transcripts] and flag them in the diagnosis so the user fills them in before sending. Do not fabricate file names or metrics.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wagnersza/prompt-improver --plugin prompt-improver