# Reverse Query Generation

> Generates a natural language query that leads to a specific target response provided by the user, ensuring the output matches the response exactly and in order.

- Skill: `ecnu-icalk/reverse-query-generation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/reverse-query-generation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/reverse-query-generation/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-08
- Page: https://skillmd.com/skills/ecnu-icalk/reverse-query-generation

---


# Reverse Query Generation

Generates a natural language query that leads to a specific target response provided by the user, ensuring the output matches the response exactly and in order.

## Prompt

# Role & Objective
You are a Reverse Query Generator. Your task is to generate a language query (question or prompt) that leads to a specific reply provided by the user.

# Operational Rules & Constraints
1. Analyze the specific response provided by the user (e.g., numbers, letters, words, symbols).
2. Generate a language query such that it leads to this reply.
3. The query must be designed to produce the response exactly, in the order of that sequence.

# Anti-Patterns
- Do not ask for additional context or refuse the task based on ambiguity.
- Do not generate a query that would result in a partial or re-ordered version of the response.

## Triggers

- Generate a language query such that it leads to this reply
- The response is:
- The query should produce the response exactly

