Skip to main content
prompt GP ChatGPT

Reverse Prompt Engineer — Claude & Claude.ai prompt: rebuild

A prompt that takes a finished output — text, code, an idea — and reconstructs the request that likely produced it. Handy for decoding someone else's prompt or auditing your own.

Open on GitHub

What Reverse Prompt Engineer does

You hand the model a finished result — text, code, an idea, a behavior — and ask it to rebuild the original prompt. Back comes one precise prompt plus the reasoning: linguistic patterns, probable intent, model capabilities.

It runs as a plain chat prompt. Paste the text, swap the sample output for your own fragment, send. No files, no API keys. The built-in example is about a sunset behind mountains and evening birds; replace it with whatever you're analyzing.

Useful when someone's output looks oddly familiar and you want to know what produced it. Or when your own old result needs to be taken apart and the request rewritten from scratch.

What it helps with

  • rebuild a prompt from a finished piece of text or code
  • decode someone else's output and see how it was made
  • rewrite your old request based on the result it gave
  • check which prompt produces a particular answer style
  • break a generation into linguistic patterns and intent

Example prompts for the agent

  • Act as a Reverse Prompt Engineer. Here's the output: "...". Reconstruct the original prompt and explain your reasoning.
  • You are a Reverse Prompt Engineer. From this code, infer the prompt that generated it.
  • Rebuild the prompt that could have produced this answer and explain what the inference rests on.

How to install Reverse Prompt Engineer

How to use

Paste the text at the start of a chat or into project instructions

Questions about Reverse Prompt Engineer

How do I install Reverse Prompt Engineer in Claude?

There's nothing to install — it's a text prompt. Copy it from the source, paste it as your first message, then add your output.

What does Reverse Prompt Engineer do?

Given a finished output — text, code, an idea or behavior — it reconstructs the prompt that could have produced it and explains the reasoning.

How is it different from just asking the model to guess a prompt?

It demands a single precise prompt and a rationale grounded in linguistic patterns, probable intent and model capabilities, not vague guesses.

Source text

prompts.csv · CC0-1.0
I want you to act as a Reverse Prompt Engineer. I will give you a generated output (text, code, idea, or behavior), and your task is to infer and reconstruct the original prompt that could have produced such a result from a large language model. You must output a single, precise prompt and explain your reasoning based on linguistic patterns, probable intent, and model capabilities. My first output is: "The sun was setting behind the mountains, casting a golden glow over the valley as the last birds sang their evening songs."

© jcordon5 · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for AI and ML →

From the same set77

The whole set →
Developer Work Analysis from Git Diff and Commit Message This prompt reviews a git diff and commit message, then summarizes the change scope, possible issues, key modifications, and recommendations. GP ChatGPT ★ 174,597repo stars Code Translator: Any Language to Any Language A prompt that turns code in one language into another, keeping behaviour intact and commenting the key parts. GP ChatGPT ★ 174,597repo stars Predictive Eye Tracking Heatmap Generator A prompt that turns a UI screenshot into a thermal heatmap: where the eye lands, and what gets scrolled past. GP ChatGPT ★ 174,597repo stars Code Review Assistant A prompt that turns the model into a reviewer: it reads your code for bugs, style and maintainability, then hands back a list of fixes. GP ChatGPT ★ 174,597repo stars Devops Engineer A prompt that turns the chat into a senior DevOps engineer and walks through deployment, infrastructure and CI/CD for your task. GP ChatGPT ★ 174,597repo stars SEO Prompt A prompt that has WebPilot build a detailed 2,000-word article outline from Google's top 10, with keywords and an FAQ. GP ChatGPT ★ 174,597repo stars Large Language Models Security Specialist A prompt that turns a chat into an LLM security review: it probes how the model answers test prompts and suggests ways to close the gaps. GP ChatGPT ★ 174,597repo stars Architect Guide for Programmers A mentor prompt for developers who write individual modules well but want to understand how a whole project fits together. GP ChatGPT ★ 174,597repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor