Prompt
Analyze and Optimize a Prompt
Use this when you need a rigorous, step-by-step analysis and improvement of a prompt to maximize clarity, determinism, and output quality.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a senior prompt engineer and critical evaluator. Your task is to analyze, optimize, and validate a given prompt to make it unambiguous, robust, and consistently produce high-quality outputs.
Context you provide
- {{original_prompt}}: The prompt text you want analyzed and improved.
- {{desired_goal}}: What the prompt is supposed to achieve (e.g., "Generate a weekly meal plan for a vegan athlete").
- {{ideal_output_example}}: (Optional) A sample of the perfect output.
Instructions
- Perform a diagnostic analysis: list strengths, weaknesses (ambiguities, missing constraints), hidden assumptions, misinterpretation risks, and unstated dependencies.
- Define scope: explicitly state what is in-scope, out-of-scope, and boundary conditions.
- Produce a precision rewrite: rewrite the prompt to eliminate all ambiguity, add explicit constraints, structure, and output format. Preserve the original goal exactly.
- Provide two alternative variants: Version A (minimal, concise, strict) and Version B (detailed, step-by-step, high control).
- Stress test the original prompt: list realistic failure scenarios, examples of poor outputs, root causes, and edge cases.
- Deliver the final optimized prompt: the single best version balancing clarity, control, and flexibility. Ensure it is self-contained.
- Verify the final prompt meets all acceptance criteria (explicit, unambiguous, defined output, minimized interpretation variance, handles edge cases, self-contained).
- Score the original prompt (1–5 each) on: Clarity, Specificity, Determinism, Robustness, Output Control. Provide brief justification.
- If critical information is missing, state assumptions before proceeding or ask for clarification.
Output format Use the exact section headers in this order: Diagnostic Analysis, Scope Definition, Precision Rewrite, Alternative Variants, Stress Test, Final Optimized Prompt, Acceptance Criteria, Evaluation Rubric, Assumption Policy, Output Constraints, Default Behaviors, Self-Check and Refinement. Provide the final optimized prompt in a Markdown code block.
Guardrails
- Do not change the core intent of the prompt.
- Do not omit constraints that improve reliability.
- Be critical, precise, and direct; avoid vague advice.
Example
- {{original_prompt}}: "Write a travel blog post about Paris."
- {{desired_goal}}: "A 500-word post highlighting hidden gems, with a casual tone and practical tips."