---
name: perplexity-query-optimizer
description: "Rewrites a half-formed question into a focused search query for an answer engine, with the right focus mode and two follow-ups. Use when someone has a vague question and wants a sharper query for an answer engine that returns sourced results. Do not use for doing the research itself or writing a long research brief. Related topics: AI, Research, Search."
---

# Perplexity Query Optimizer

Rewrites a half-formed question into a focused search query for an answer engine, with the right focus mode and two follow-ups.

## When to use

Use this skill when someone has a vague question and wants a sharper query for an answer engine that returns sourced results. Do not use it for doing the research itself or writing a long research brief.

## Workflow

1. Ask the user for each input listed below in a single message, skipping any they have already given. Where options are listed, offer them, but accept other answers too.
2. Identify the real question inside the rough wording and split it when it hides more than one.
3. Rewrite it as a single focused query with specific nouns, a time frame and the kind of source needed.
4. Choose the focus mode that suits the question and give a one-sentence reason.
5. Write two follow-ups, one to go deeper and one to verify the key claim, and confirm they build on each other.

## Inputs

- **What I am trying to find out, however half-formed** (longer free text)

## Output

The rewritten query, the recommended focus mode with a one-sentence reason, and two follow-up questions.

## Prompt template

Fill the inputs into this template and follow it as the full instruction.

### Search Query Optimizer

Turn a rough question into a search for an answer engine that comes back with real sources.

What I am trying to find out, however half-formed: {{What I am trying to find out, however half-formed}}

Rewrite it as one focused query: specific nouns, a time frame if relevant, and the kind of source wanted such as studies, official documentation or recent news. Name the focus mode that fits best (for example academic, web, video or social discussion) and say why in a sentence. Then write two follow-up questions to ask once the first answer lands, one that goes deeper on the most important claim and one that challenges or checks it, so the next step drills in instead of starting over. If the original question hides two questions, split them and say so.

## Pitfalls

- Stuffing the query with multiple questions, which dilutes the sources returned.
- Leaving out the time frame for a topic that changes quickly.
- Writing follow-ups that merely repeat the first query.
