Skip to content
Back to skills

Reverse Query Generation

ASecurity

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.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
education

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill reverse-query-generation --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Reverse Query Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-reverse-query-generation-autoskill/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-reverse-query-generation-autoskill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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?

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.