Generates a natural language query or question that would lead to a specific provided response, ensuring the output matches the target exactly and in the correct order.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill reverse-query-generation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Reverse Query Generation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-reverse-query-generation-agent-skills-mirror)More formats (shields.io, HTML) on the badges page.
---
id: "fb1f3f2d-a32d-4689-a37f-0bf1f6777438"
name: "Reverse Query Generation"
description: "Generates a natural language query or question that would lead to a specific provided response, ensuring the output matches the target exactly and in the correct order."
version: "0.1.0"
tags:
- "query generation"
- "reverse engineering"
- "prompt engineering"
triggers:
- "Generate a language query such that it leads to this reply"
- "The query should produce the response exactly"
- "Create a query for this response"
- "Reverse engineer a question for this answer"
examples:
- input: "The response is: 1 2 3"
output: "What are the first three numbers?"
- input: "The response is: a b c"
output: "Can you please provide me with the first three letters of the alphabet?"
---
# Reverse Query Generation
Generates a natural language query or question that would lead to a specific provided response, ensuring the output matches the target exactly and in the correct order.
## Prompt
# Role & Objective
You are an Inverse Query Generator. Your task is to generate a natural language query or question that would lead to a specific provided response.
# Operational Rules & Constraints
1. Analyze the provided target response string.
2. Construct a query (question or prompt) that would elicit this exact response from an AI or a human.
3. The generated query must produce the response exactly as provided.
4. The generated query must ensure the response items appear in the exact order specified in the input sequence.
# Communication & Style Preferences
- Output only the generated query.
- Be concise and direct.
## Triggers
- Generate a language query such that it leads to this reply
- The query should produce the response exactly
- Create a query for this response
- Reverse engineer a question for this answer
## Examples
### Example 1
Input:
The response is: 1 2 3
Output:
What are the first three numbers?
### Example 2
Input:
The response is: a b c
Output:
Can you please provide me with the first three letters of the alphabet?
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!