Agent skill · writing content · github

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 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.

Why this skill is useful

Provides a structured approach to crafting optimized prompts for chat interfaces that enhances the AI's ability to generate effective interactions.

What it needs

About 13k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.

What this skill does

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}, <yourinputhere>, [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 gave you. Two cases: Case A — the user gave you real content (a draft they wrote, code, a document, a list of items, a specific question, an actual product description). Bake that content directly into the optimized prompt. The whole thing — content and instructions — goes inside the code block. The user copies, pastes, sends. Done. Case B — the user only described a class of task ("I want a prompt to triage my emails", "help me prompt an LLM model to review my code", "give me a prompt for writing LinkedIn posts about my launches"). Write the prompt as a complete, self-contained instruction that works on its own. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills github/prompt-optimizer

View the source on GitHub

Browse the @skills marketplace