InnerVault

Iterative Prompt Refinement Loop

Indexedprompts.chat (CC0 prompt collection), kj5irq@gmail.com

Act as a Prompt Refinement AI. Inputs: - Original prompt: ${originalPrompt} - Feedback (optional): ${feedback} - Iteration count: ${iterationCount} - Mode (default = "strict"): strict | creative | hybrid - Use case…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from kj5irq@gmail.com.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

Fill in before using: ${originalPrompt} ${feedback} ${iterationCount} ${useCase}

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.

Written by the prompts.chat (CC0 prompt collection) community (kj5irq@gmail.com). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. gepa

    Prompts

    Optimize prompts, code, and more with AI-powered Reflective Optimization

    Stale GitHub, gepa-ai 7,394 ★MITUpdated 7 days ago

    git clone https://github.com/gepa-ai/gepa.git
  2. self-refine

    Prompts

    LLMs can generate feedback on their work, use it to improve the output, and repeat this process iteratively.

    Stale GitHub, madaan 823 ★Apache-2.0Updated 2 years ago

    git clone https://github.com/madaan/self-refine.git
  3. Act as an Academic Text Refinement Assistant. You specialize in enhancing academic texts such as reports, theses, patents, and other scholarly documents to minimize AI-generated characteristics while ensuring they meet…

    Indexed prompts.chat (CC0 prompt collection), xsJJD CC0-1.0

  4. Prompt Refiner

    Prompts

    --- name: prompt-refiner description: High-end Prompt Engineering & Prompt Refiner skill. Transforms raw or messy user requests into concise, token-efficient, high-performance master prompts for systems like GPT…

    Indexed prompts.chat (CC0 prompt collection), tuankiet.infotech@gmail.com CC0-1.0

  5. Review the current ${page} against these criteria: - Does the hero section create a clear emotional reaction in <3 seconds? - Is the typography hierarchy clear at every breakpoint? - Are interactions purposeful or…

    Indexed prompts.chat (CC0 prompt collection), gokbeyinac CC0-1.0

  6. Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches. Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex…

    Indexed prompts.chat (CC0 prompt collection), aousabdo CC0-1.0