An AI skill that turns a raw draft into a production-grade prompt.
It rewrites and optimizes prompts using proven techniques, then hands you a ready-to-paste result plus a short changelog of what changed and why — calibrated to your task type and target model.

Works with Claude Code · GitHub Copilot · OpenAI Codex · Gemini CLI · OpenCode · Cursor · Windsurf · Cline
Table of contents
Why this skill
Most prompt advice is a handful of generic tips. This skill is different in three ways:
- Grounded in primary sources. Every technique is traceable to a cited source — Anthropic's prompting best practices and prompt improver, OpenAI's GPT-5/reasoning guides, Google's Gemini PTCF, and The Prompt Report's academic taxonomy of 58 techniques. See
sources.md.
- Model-aware. The rules differ by model family. The skill adapts to Claude 4.x, OpenAI GPT/reasoning (o-series), and Gemini — e.g. it removes "think step by step" for reasoning models, which actively hurts them.
- Anti-overengineering. It calibrates effort to complexity. A simple prompt gets a lean rewrite; it won't bloat it with chain-of-thought and examples it doesn't need.
It improves the prompt — it does not run it, unless you explicitly ask.
How it works
You paste a draft (or describe what you want). The skill runs a five-phase workflow:
- Diagnose — real intent, task type, target model, audience, output format, constraints, and the draft's weaknesses.
- Select techniques — only those that add value for this task and model.
- Rewrite — assemble the prompt in a canonical structure (role, context+motivation, XML-tagged data, positive instructions, few-shot, output contract).
- Self-review — run a quality checklist; the golden test is "could a colleague with no context run this without doubt?"
- Deliver — the optimized prompt + a changelog mapping each change to the weakness it fixes.
Example
| Your draft (before) | After the skill |
|---|
classify the sentiment
of this comment:
{{comment}}
|
You are a sentiment analyst
specialized in customer feedback.
Classify the sentiment of the comment
below into one of these categories:
positive, negative, neutral.
<comment>
{{comment}}
</comment>
Follow these steps:
1. Identify expressions that carry emotion.
2. Weigh the overall tone, accounting
for irony and negation.
3. Choose the predominant sentiment.
Put your reasoning in <analysis>. On the
last line, answer ONLY one word:
positive, negative, or neutral.
|
What the skill changed, and why: added a role (calibrates interpretation), a strict enum output contract (ONLY one word — parseable), a short chain-of-thought (catches irony/negation, the top error source in sentiment), and XML around the input (robust to comments with line breaks). Every rewrite ships with this changelog.
See six more cases — coding, extraction, research, agentic, long-context, and an already-good prompt — in worked-examples.md.
Installation
Pick your tool. Claude Code is the primary target; the rest are fully supported.
Claude Code
One-line installer (copies the skill into ~/.claude/skills/, backs up any existing install, touches nothing else):
curl -fsSL https://raw.githubusercontent.com/PhAlves23/prompt-engineering-skill/main/install.sh | bash
Or as a plugin (versioned, updatable):
/plugin marketplace add PhAlves23/prompt-engineering-skill
/plugin install prompt-engineering
Restart Claude Code after installing.
GitHub Copilot CLI