Agent skill · Backend & API

prompt-optimizer

Turn any rough prompt, half-formed idea, or task description into a finished, ready-to-send prompt optimized for any LLM model inside a chat interface — NOT the API. Use this skill whenever the user wants to write, rewrite, optimize, improve, sharpen, or polish a prompt for chat. Trigger phrases include "rewrite this prompt", "make this a better prompt", "optimize this prompt", "turn this into a prompt", "help me prompt this", "draft a prompt that...", "I want to ask...", or whenever the user pastes a draft prompt and asks for improvements. Also trigger when the user describes a task they plan

GitHub68,948★ · +463/wk · 2 repos on radarProfile →
copilotMIT
Install
npx skills add github/awesome-copilot --skill prompt-optimizer --agent copilot

Same command for any agent — swap --agent for claude-code, codex, cursor.

Facts
Files in the skill folder: 1
SKILL.md size: 19 KB
Bundled scripts: none
Path: skills/prompt-optimizer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 37,432 · +281 this week
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Turns rough prompts, ideas, or task descriptions into a single, ready-to-send prompt designed for chat interfaces with LLMs. The output is always a single, copy-pasteable prompt in a code block, with no placeholders.

How it works

  • Accepts user-provided content (draft, idea, task description).
  • Produces one finished prompt that contains all necessary content and instructions to operate in a chat interface, without any placeholders.
  • If the user only described a class of task, the system should deliver a self-contained instruction that works without additional inputs and ends with guidance to obtain any missing inputs in the next turn.
  • The final output is a fenced code block containing exactly the optimized prompt, with no preamble or explanations.
  • The block ends with a closing line that signals reasoning depth:
    • For models with reasoning capabilities: ``` Think before answering (maximum reasoning)
  - For general-purpose models: ```
Take time to think through this carefully before responding.

When to use it

Triggered whenever the user asks to rewrite, optimize, or turn a draft into a ready-to-send prompt for chat-based LLMs, including cases where the user describes a task and wants a reusable prompt rather than an explicit answer.

What it can touch

The skill outputs a single code block as the direct prompt. It does not touch any external tools in this description.

Caveats

  • No placeholders are produced in the final prompt.
  • The final prompt is self-contained and ready to paste into a chat interface.
  • It targets chat-based LLMs, not API calls.
From the SKILL.md

# Prompt Optimizer You turn whatever the user gives you — a rough draft, a vague idea, a task description, a paragraph of context — into a single high-quality prompt designed to run inside any chat interface with an LLM model. This is for **chat interfaces** (Claude, Codex, Copilot, or any other tool/LLM model), not the API. The user is going to paste a single message into chat. There is no system prompt, no `effort` parameter, no tool config to tune. The prompt itself has to do all the work. ## Two hard rules These two rules override everything else in this skill. Read them, then re-read them. ### Rule 1 — No placeholders. Ever. Never produce a prompt that contains `[paste X here]`, `[your content]`, `{topic}`, `<your_input_here>`, `[INSERT Y]`, `___`, or any other template variable the user is expected to fill in. The user must be able to copy your output, paste it into chat, hit send, and have a working interaction. If the prompt requires content the user hasn't provided yet, the prompt itself must handle that — see Rule 2. If you catch yourself typing square brackets around a noun, stop. That's a placeholder. Rewrite. ### Rule 2 — Ship a finished prompt no matter what the user

What's inside
Steps it walks through
  1. Two hard rules
  2. Rule 1 — No placeholders. Ever.
  3. Rule 2 — Ship a finished prompt no matter what the user gave you.
  4. What you output
  5. Why these principles work
  6. The rewrite workflow
  7. Core principles to apply
  8. Be clear and direct
  9. Explain the why
  10. Tell the LLM model what to do, not what to avoid
  11. Match prompt style to desired output style
  12. Use XML tags when sections multiply
  13. Give the LLM model a role when it sharpens behavior
  14. Use examples for format, tone, or structure
More from awesome-copilot
All skills →
About this skill
What does the prompt-optimizer skill do?

Turn any rough prompt, half-formed idea, or task description into a finished, ready-to-send prompt optimized for any LLM model inside a chat interface — NOT the API. Use this skill whenever the user wants to write, rewrite, optimize, improve, sharpen, or polish a prompt for chat. Trigger phrases include "rewrite this prompt", "make this a better prompt", "optimize this prompt", "turn this into a prompt", "help me prompt this", "draft a prompt that...", "I want to ask...", or whenever the user pastes a draft prompt and asks for improvements. Also trigger when the user describes a task they plan

How do I install it?

Run `npx skills add github/awesome-copilot --skill prompt-optimizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going