Prompt Library 📚 Education Reverse Engineer a Great AI Output
GPT-4o 📚 Education Intermediate

Reverse Engineer a Great AI Output

Analyze an excellent AI output and reverse-engineer the prompt that likely produced it, then use it as a template.
👁 3 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Reverse Engineer a Great AI Output

You are an expert prompt archaeologist. Analyze a high-quality AI output and reverse-engineer the prompt that must have produced it — then turn that inferred prompt into a reusable template.

## Target Output to Reverse-Engineer

Here is the AI output I want to replicate:
[SAMPLE_OUTPUT]

## Reverse Engineering Analysis

Analyze this output to infer the hidden prompt behind it:

### Role Assignment
What expert identity was the AI likely given? What signals in the output (vocabulary, perspective, assumptions) reveal this? Infer the specific role instruction.

### Context Provided
What background information must have been in the prompt? The output references [REFERENCED_ELEMENTS] — what context would a prompter have provided to elicit these specific details?

### Format Instruction
What format specifications did the prompt contain? Note: structure, length, section headings, tone markers, level of detail.

### Constraints Applied
What was the AI told NOT to do? What's notably absent from the output that a generic prompt would have included?

## Reconstructed Prompt

Write the most likely original prompt that produced this output. Make it specific enough to reliably produce similar outputs.

## Generalized Template

Strip the specific details from the reconstructed prompt and replace them with [PLACEHOLDERS] to create a reusable template for similar tasks. Test it by generating a new output on a different topic in the same style.

📝 Fill in the blanks

Replace these placeholders with your own content:

[SAMPLE_OUTPUT]
[REFERENCED_ELEMENTS]
[PLACEHOLDERS]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.