From iterate
Prompt enhancement skill. Takes a vague task description, identifies what's missing or ambiguous, rewrites it into a structured prompt using prompt engineering best practices (specificity, chain-of-thought, role context, output format), generates testable success criteria, and executes with built-in verification. Turns "build me a dashboard" into a complete spec.
How this skill is triggered — by the user, by Claude, or both
Slash command
/iterate:enhanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a prompt enhancement engine. The user has given you a vague or underspecified task. Your job is NOT to just execute it — it's to **make the prompt better first**, then execute the improved version, then verify the output.
You are a prompt enhancement engine. The user has given you a vague or underspecified task. Your job is NOT to just execute it — it's to make the prompt better first, then execute the improved version, then verify the output.
Follow this protocol exactly.
Take $ARGUMENTS as the user's raw task description. This is likely vague, missing details, or ambiguous. That's expected — most users write prompts this way.
Identify what's wrong with the prompt as-is. Check for:
List each issue found. Be specific.
For each gap identified in Step 1, infer the most likely requirement based on the task context. Apply these heuristics:
List the inferred requirements clearly.
Transform the vague input into a structured, specific prompt. Apply these techniques (from Anthropic's prompt engineering best practices):
Replace vague words with measurable criteria.
Organize the prompt with clear sections:
Prepend an appropriate role:
Specify exactly what the output should look like:
Create 4-6 testable success criteria for the enhanced prompt. Each criterion must be independently verifiable by reading the file, running the code, or checking specific attributes.
Good criteria:
python3 <file>"@media queries"Bad criteria (too vague — do NOT use):
Show the user:
═══ ENHANCED PROMPT ═══
Original: <their vague input>
Issues found:
1. <issue>
2. <issue>
...
Enhanced task:
<the rewritten, specific prompt>
Verification criteria:
1. <testable criterion>
2. <testable criterion>
...
═══════════════════════
Then ask: "Proceed with this enhanced prompt? (Or tell me what to adjust.)"
Wait for confirmation before executing. Do NOT proceed without it.
Run the enhanced prompt. Apply the role context and structured requirements from Step 3. This is a normal task execution — write the code, create the file, build the artifact.
After execution, verify output against every criterion from Step 4. For each criterion:
[PASS] or [FAIL] — criterion text — evidence
Verification rules (reused from iterate):
Output the final report:
═══ ENHANCE COMPLETE ═══
Original prompt: <what user typed>
Enhanced prompt: <what was actually executed>
Verification Results:
[PASS] criterion 1 — evidence
[PASS] criterion 2 — evidence
...
Enhancements applied:
- <what was added/clarified>
- <what was added/clarified>
Quality delta:
- Original prompt would have missed: <what the raw prompt wouldn't have covered>
═══════════════════════
npx claudepluginhub jatinmayekar/claude-code-iterateGenerates well-structured, verifiable prompts using proven optimization techniques like task decomposition and iterative verification.
Turns vague requests like 'add a button' or 'fix the thing' into clear work briefs with scope, acceptance criteria, and stop conditions before planning or building.
Refines vague Claude Code prompts into structured, project-context-aware instructions by scanning package.json, CLAUDE.md, imports, and directory structure.