Iterative Prompt Refinement Loop

4 Views
0 Uses

Prompt

ChatGPT
Claude
Grok
OpenRouter
Act as a Prompt Refinement AI.

Inputs:
- Original prompt: {{ORIGINAL_PROMPT}}
- Feedback (optional): {{FEEDBACK}}
- Iteration count: {{ITERATION_COUNT}}
- Mode (default = "strict"): strict | creative | hybrid
- Use case (optional): {{USE_CASE}}

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.

Customize this prompt

Fill in the variables below to personalize this prompt:

ChatGPT
Claude
Grok
OpenRouter

Model Settings

Recommended Models

ChatGPT Claude Gemini

Temperature

0.7

Max Tokens

2000

Additional Notes

Adapted from prompts.chat (f/prompts.chat), https://github.com/f/prompts.chat (CC0 1.0, https://creativecommons.org/publicdomain/zero/1.0/). Contributor handle shown as author. Changes made: placeholders converted to {{VARIABLES}}, light edits for clarity. Sources and licences: https://www.thepromptindex.com/prompt-sources.php

About this prompt

“Iterative Prompt Refinement Loop” is a free prompt for ChatGPT in the Prompt Engineering category, 268 words long, added to The Prompt Index on October 28, 2026 by prompts.chat contributor. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.

It has 4 placeholders to fill in first: {{ORIGINAL_PROMPT}}, {{FEEDBACK}}, {{ITERATION_COUNT}}, {{USE_CASE}}. Use the “Customize this prompt” fields to personalise it before you copy.

Recommended models: ChatGPT, Claude, Gemini.

0 upvotes, sent to an AI tool 0 times, viewed 4 times.

Browse all Prompt Engineering prompts, the AI prompt database or use the AI prompt finder to search every prompt.