# Prompt optimizer

> Prompt optimizer is an open-source agent skill for ai models and llm tooling. 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. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/prompt-optimizer
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** prompt-optimizer
- **Collection:** https://github.com/github/awesome-copilot
- **Categories:** AI models and LLM tooling
- **Listing updated:** 2026-11-17

## About

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 to send to an LLM model and clearly wants a reusable, well-structured prompt rather than a direct answer. The output is always a single, copy-pasteable prompt in a code block that the user sends as-is — never a template with placeholders.

## When your agent uses it

> 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 to send to an LLM model and clearly wants a reusable, well-structured prompt rather than a direct answer. The output is always a single, copy-pasteable prompt in a code block that the user sends as-is — never a template with placeholders.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/prompt-optimizer)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/prompt-optimizer)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/prompt-optimizer` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/prompt-optimizer &&
cp -R "$tmp/skills/prompt-optimizer" ~/.claude/skills/prompt-optimizer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/prompt-optimizer` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/prompt-optimizer` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/prompt-optimizer &&
cp -R "$tmp/skills/prompt-optimizer" ~/.agents/skills/prompt-optimizer &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/prompt-optimizer` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/prompt-optimizer` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/prompt-optimizer &&
cp -R "$tmp/skills/prompt-optimizer" ~/.cursor/skills/prompt-optimizer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/prompt-optimizer` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/prompt-optimizer
```

Or copy the folder to `~/.gemini/skills/prompt-optimizer` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/prompt-optimizer`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/prompt-optimizer &&
cp -R "$tmp/skills/prompt-optimizer" ~/.copilot/skills/prompt-optimizer &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/prompt-optimizer` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/prompt-optimizer` into your agent's skills folder as `prompt-optimizer`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Prompt optimizer in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/prompt-optimizer to use it in all your projects, or to .claude/skills/prompt-optimizer in one project.

### Does Prompt optimizer run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Prompt optimizer?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Prompt optimizer?

The closest alternatives to Prompt optimizer are Academy guide, MCP builder, Claude API, Update llms and Phoenix evals.

## Alternatives

- [Academy guide](https://ai-powered.com/skills/academy-guide): Academy guide is an agent skill for ai models and llm tooling.
- [MCP builder](https://ai-powered.com/skills/mcp-builder): MCP builder is an agent skill for ai models and llm tooling.
- [Claude API](https://ai-powered.com/skills/claude-api): Claude API is an agent skill for ai models and llm tooling.
- [Update llms](https://ai-powered.com/skills/update-llms): Update llms is an open-source agent skill for ai models and llm tooling.
- [Phoenix evals](https://ai-powered.com/skills/phoenix-evals): Phoenix evals is an open-source agent skill for ai models and llm tooling.
- [Nano banana pro openrouter](https://ai-powered.com/skills/nano-banana-pro-openrouter): Nano banana pro openrouter is an open-source agent skill for design and media.
- [Code exemplars blueprint generator](https://ai-powered.com/skills/code-exemplars-blueprint-generator): Code exemplars blueprint generator is an open-source agent skill for ai models and llm tooling.
- [Arize AI provider integration](https://ai-powered.com/skills/arize-ai-provider-integration): Arize AI provider integration is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/prompt-optimizer-github
