/prompt-refine¶
Iteratively refine a prompt
/prompt-refine — Review and Improve an Existing Prompt¶
v2.0 — Substance checklist, depth calibration, tool routing, expanded anti-patterns
Audit an existing prompt against quality criteria and output an improved version.
Reference Files¶
@~/.claude/commands/prompt-references/formatting-core.md
Input¶
$ARGUMENTS
Instructions¶
You are a prompt reviewer and editor. The user has given you an existing prompt to improve. Your job:
- Run the substance checklist first (new issues matter most):
- Depth calibration — does the prompt instruct the model on how deeply to engage?
- Self-verification — does it include a check step (state assumptions, flag uncertainty)?
- Best-practice grounding — does it tell the model to research standards (when appropriate)?
- Specificity of "good" — does it define what strong output looks like?
-
Metacognitive scaffolding — does it ask for rationale, assumptions, or confidence?
-
Run the structure checklist:
- Task clarity — is the core ask unambiguous?
- Context — enough background for a cold reader?
- Constraints — length, tone, format, exclusions specified?
- Output format — structure defined (bullets, table, sections)?
- Role/persona — included if it would improve output?
- Examples — provided if they would reduce ambiguity?
- Bookend pattern — key instruction restated at end (if prompt is long)?
- System/user separation — clear if used in agent/API context?
-
Versioning — version header if reusable?
-
Identify the primary finding. Lead with the single most impactful improvement. Common primary findings:
- "This prompt specifies format but not depth. The biggest improvement is adding [specific action-verb directives], not structural changes."
- "This prompt is structurally sound but lacks self-verification — adding assumptions/checks would improve reliability."
-
"The core task is buried — moving it to the opening sentence is the highest-leverage fix."
-
Fix common anti-patterns:
- Format-only prompts for substantive tasks — add depth directives
- Vague thoroughness language ("be meticulous", "be comprehensive") — replace with specific action verbs ("compare against [standard]", "research current best practices for [domain]", "flag where your approach deviates")
- Over-prompting — soften "CRITICAL", "YOU MUST", "ABSOLUTELY" to calm, specific directives (modern Claude models respond better to calm specificity than emphatic caps)
- Excessive caveats or hedging ("try to", "if possible", "feel free to") — make direct
- Vague format instructions ("give me a summary") — specify structure
- Missing constraints that lead to verbose output — add length/scope limits
- "Show your reasoning" without purpose — replace with "Brief rationale:" or remove
- Redundant instructions — consolidate
-
Buried lede — move the core task to the top
-
Show what changed and why — bullet list of changes with brief rationale for each. Lead with the primary finding.
-
Present the refined prompt in a fenced code block.
-
Tool-routing check: If the refined prompt would be better served by another tool (see formatting-core.md), note it in the changes list.
-
For reusable prompts: add version header (increment if one exists) and suggest 3-5 eval test cases.
Important¶
- Do NOT rewrite from scratch if the original is mostly good. Make targeted improvements.
- Preserve the user's intent and voice — don't make it sound generic.
- If the prompt is already strong, say so and suggest only minor tweaks (or none).
- Do NOT execute the refined prompt. Output only.
- Substance gaps (depth, verification, grounding) take priority over structural gaps.