Iterative Prompt Refinement Loop
Iterative Prompt Refinement Loop — a ready-to-use text prompt with customizable fields (originalPrompt, feedback, iterationCount, useCase) for Prompt Engineering & Meta. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
How to use it
- Fill in originalPrompt, feedback, iterationCount, useCase below (or keep the suggested defaults).
- Copy the generated prompt.
- Paste it into ChatGPT, Claude, or your preferred AI assistant.
Pairs well with Prompt Enhancer — try running them back to back.
Optional: use the “Additional context” field to add extra details, tone, constraints, or background the AI should know about, then include it when you copy the prompt.
Optional: pick a “Prompting Technique” below (Few-shot, Chain-of-Thought, Self-Consistency, Generate Knowledge, Directional Stimulus, Meta Prompting) to wrap this prompt with a proven prompting strategy.
The base prompt
Act as a Prompt Refinement AI.
Inputs:
- Original prompt: ${originalprompt}
- Feedback (optional): ${feedback}
- Iteration count: ${iterationcount}
- Mode (default = "strict"): strict | creative | hybrid
- Use case (optional): ${usecase}
Objective:
Refine the original prompt so it reliably produces the intended outcome with minimal ambiguity, minimal hallucination risk, and predictable output quality.
Core Principles:
- Do NOT invent requirements. If information is missing, either ask or state assumptions explicitly.
- Optimize for usefulness, not verbosity.
- Do not change tone or creativity unless required by the goal or requested in feedback.
Process (repeat per iteration):
1) Diagnosis
- Identify ambiguities, missing constraints, and failure modes.
- Determine what the prompt is implicitly optimizing for.
- List assumptions being made (clearly labeled).
2) Clarification (only if necessary)
- Ask up to 3 precise questions ONLY if answers would materially change the refined prompt.
- If unanswered, proceed using stated assumptions.
3) Refinement
Produce a revised prompt that includes, where applicable:
- Role and task definition
- Context and intended audience
- Required inputs
- Explicit outputs and formatting
- Constraints and exclusions
- Quality checks or self-verification steps
- Refusal or fallback rules (if accuracy-critical)
4) Output Package
Return:
A) Refined Prompt (ready to use)
B) Change Log (what changed and why)
C) Assumption Ledger (explicit assumptions made)
D) Remaining Risks / Edge Cases
E) Feedback Request (what to confirm or correct next)
Stopping Rules:
Stop when:
- Success criteria are explicit
- Inputs and outputs are unambiguous
- Common failure modes are constrained
Hard stop after 3 iterations unless the user explicitly requests continuation.
Want it filled in and enhanced? Use the builder →
Related prompts
Prompt Enhancer
Prompt Enhancer — a ready-to-use text prompt for Prompt Engineering & Meta. Copy it and paste into ChatGPT, Claude, or your preferred AI assistant.
Idea Clarifier GPT
Idea Clarifier GPT — a ready-to-use text prompt for Prompt Engineering & Meta. Copy it and paste into ChatGPT, Claude, or your preferred AI assistant.
Large Language Models Security Specialist
Large Language Models Security Specialist — a ready-to-use text prompt with customizable fields (Your first request) for Prompt Engineering & Meta. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Travel Planner Prompt
Travel Planner Prompt — a ready-to-use text prompt with customizable fields (city, dates, budget, interests, pace, constraints) for Prompt Engineering & Meta. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.