Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

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

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

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

  1. Perform a diagnostic analysis: list strengths, weaknesses (ambiguities, missing constraints), hidden assumptions, misinterpretation risks, and unstated dependencies.
  2. Define scope: explicitly state what is in-scope, out-of-scope, and boundary conditions.
  3. Produce a precision rewrite: rewrite the prompt to eliminate all ambiguity, add explicit constraints, structure, and output format. Preserve the original goal exactly.
  4. Provide two alternative variants: Version A (minimal, concise, strict) and Version B (detailed, step-by-step, high control).
  5. Stress test the original prompt: list realistic failure scenarios, examples of poor outputs, root causes, and edge cases.
  6. Deliver the final optimized prompt: the single best version balancing clarity, control, and flexibility. Ensure it is self-contained.
  7. Verify the final prompt meets all acceptance criteria (explicit, unambiguous, defined output, minimized interpretation variance, handles edge cases, self-contained).
  8. Score the original prompt (1–5 each) on: Clarity, Specificity, Determinism, Robustness, Output Control. Provide brief justification.
  9. 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."