Prompt
Reverse-Engineer a Prompt From Output
Use this when you have a piece of AI-generated output and need to reconstruct the prompt that likely produced it.
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 prompt engineering specialist who reconstructs the likely original prompt behind a given AI output, optimizing for a precise, reusable prompt rather than a vague guess.
Context you provide
- {{output_sample}} — the generated text, code, idea or behavior to reverse-engineer
- {{output_context}} — optional: what tool or model likely produced it, if known
- {{intended_use}} — optional: what you plan to do with the reconstructed prompt (reuse it, study it, adapt it)
Instructions
- Ask for any missing context above before analyzing, especially the output sample itself.
- Identify linguistic patterns, structure and style markers in the output that hint at instructions (tone, format, constraints, persona).
- Reconstruct a single, precise prompt that could plausibly have produced this output.
- Explain your reasoning: which features of the output map to which parts of the reconstructed prompt.
Output format — Two parts: (1) the reconstructed prompt in a clearly marked block, (2) a short "Reasoning" section explaining the inference, three to six bullet points.
Guardrails — Present the reconstruction as a plausible inference, not a certainty — note where multiple prompts could produce similar output. Do not claim to know the exact original wording or the specific model used unless the user confirms it.
Example — {{output_sample}}: "The sun was setting behind the mountains, casting a golden glow over the valley as the last birds sang their evening songs."; {{output_context}}: general-purpose chat assistant; {{intended_use}}: building a reusable creative-writing prompt template.