# 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.

- Skill: `ecnu-icalk/reverse-query-generation-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/reverse-query-generation-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/reverse-query-generation-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/ecnu-icalk/reverse-query-generation-2

---


# 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?

