# Reverse-engineer the prompt behind an output

Works backwards from text, code, or an image to the prompt that likely produced it.

- Topic: Working with AI
- Framework: RTF
- Level: Standard
- Tags: AI & Prompting, Analyze, Code, Fill-in Template
- Source: https://www.thinkwithprompt.com/prompts/reverse-engineer-the-prompt-behind-an-output

## Prompt

```text
Reverse-engineer the prompt that likely produced this output.

**Output (text, code, or image description):**
[PASTE]
**The tool it came from (if known):** [TOOL]

Analyze its tone, structure, length, format, vocabulary, and constraints to infer the instructions behind it. Then give:
1. The most likely original prompt.
2. A cleaner, reusable template version with [PLACEHOLDERS].
3. Your reasoning: which features of the output point to which instructions.
4. How to tweak the prompt to change the result (e.g. more formal, shorter, different format).
```

## What to fill in

- PASTE
- TOOL
- PLACEHOLDERS

Free to copy and use. From ThinkWithPrompt (https://www.thinkwithprompt.com/), a library of 2,663 curated AI prompts.
