prompt-optimizer
Ce qu’il fait
Cet outil transforme des idées simples ou des tâches décrites en texte en une commande complète et optimisée, à utiliser dans un chat IA. Il s'assure que la commande finale ne contient aucun champ à compléter et qu'elle fonctionne immédiatement.
Quand l’utiliser
- ✓Lorsque vous avez une idée de prompt mais ne savez pas comment la formuler correctement.
- ✓Lorsqu'un prompt que vous avez utilisé n'a pas donné le résultat attendu.
- ✓Lorsque vous voulez améliorer un prompt existant pour obtenir de meilleures réponses de l'IA.
Lien du skill
https://github.com/github/awesome-copilot/blob/main/skills/prompt-optimizer/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Transforme cette idée en un prompt prêt à l'emploi : « Je veux un résumé de l'actualité tech, mais il doit être facile à comprendre pour un non-expert. »”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'outil analyse ce que vous souhaitez et réécrit le prompt pour qu'il soit clair, direct et complet. Il ajoute des instructions pour que l'IA agisse de manière intelligente et, si nécessaire, demande des informations supplémentaires, sans vous laisser de trous à remplir.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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 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. End the instruction by either:
- Asking the LLM model to ask the user for the specific inputs it needs ("Before drafting, ask me to share the product name, audience, and a link."), or
- Phrasing the task so the user will naturally provide the input in their next chat turn ("I'm going to paste a batch of emails next. For each one, do the following...").
Either way: no brackets, no fill-in-the-blank, no template syntax. The prompt is final.
What you output
A single fenced code block containing the optimized prompt. Nothing else. No preamble like "Here's your prompt:". No trailing explanation of what you changed.
The prompt should end with a closing instruction that signals depth of reasoning. Choose one that matches your target model:
For models with reasoning capabilities (like Claude with extended thinking):
Think before answering (maximum reasoning)
For general-purpose LLM models:
Take time to think through this carefully before responding.
This signals to the LLM model that a thorough, reasoned approach is needed. The exact wording can be adapted to fit your model's strengths.
Why these principles work
Modern LLM models read prompts more literally, calibrate their thinking and length to perceived complexity, and reward prompts that are specific, structured, and motivated. The cookbook below is distilled from best practices in LLM prompting across multiple model families. Each rule has a reason. Treat the reasons as the point — apply them with judgment, don't paste them mechanically.
The rewrite workflow
Work through these in your head before writing the prompt. You don't need to surface them.
- Identify the goal. What does the user actually want produced? A document? A decision? Code? A list? An analysis? Name it concretely.
- Identify the audience and use. Who reads the output, and what will they do with it? This drives tone and format.
- Decide: Case A or Case B. Did the user provide the actual content, or just describe a class of task? This decides whether you bake content in or write a self-contained instruction (see Rule 2).
- Spot the gaps. Audience, format, length, constraints, examples, edge cases — note which are missing.
- Handle the gaps correctly. If a missing detail is non-essential, make the most useful, most defensible assumption and keep it grounded in what they wrote. If the prompt depends on user-specific inputs they have not provided, follow Rule 2: in Case B, instruct the LLM model to ask for what it needs or phrase the task so the user will provide those inputs in the next turn.
…
Questions fréquentes
Que sont les champs à compléter et pourquoi ne faut-il pas en utiliser ?
Ce sont des espaces vides dans un prompt, par exemple « [votre texte ici] ». Ils vous obligent à ajouter des informations plus tard, alors que cet outil crée des prompts prêts à l'emploi d'un seul coup.
Cet outil fonctionne-t-il avec n'importe quel chat IA ?
Oui, il est conçu pour fonctionner avec la plupart des chats IA, comme Claude, Copilot et d'autres, mais pas pour une utilisation technique via API.
Que se passe-t-il si ma description de tâche est très vague ?
L'outil crée un prompt complet qui demande à l'IA de poser des questions sur les informations manquantes. Sinon, l'IA vous demandera ce dont elle a besoin au tour suivant.
Détails
Description originale de l’auteur
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 p
repo: github/awesome-copilot
Popularité
- Étoiles GitHub
- 40k
- Position au classement
- #7346
- Licence
- MIT
- Mis à jour
- 15/10/2026
Commentaires
- …
Autres skills de ce dépôt
acquire-codebase-knowledge
40kAide votre agent à comprendre et documenter un projet de code existant. Utile pour accueillir de nouveaux membres ou obtenir une vue d'ensemble de l'architecture.
acreadiness-assess
40kPermet à votre agent d'évaluer la préparation d'un projet à l'IA et de générer un rapport. Utile pour savoir dans quelle mesure un projet est prêt à utiliser des outils d'IA.
acreadiness-generate-instructions
40kAide votre agent à rédiger des instructions pour les outils d'IA à partir d'une évaluation, afin d'améliorer leur travail sur le code et combler les lacunes.
acreadiness-policy
40kPermet à votre agent d'aider à définir ou appliquer des politiques d'évaluation des projets d'IA. Utile pour standardiser les évaluations et garantir la conformité.
Skills similaires
writing-skills
311kApprend à votre agent à rédiger de nouvelles skills et à tester chacune d'elles en premier, en vérifiant que la skill change réellement son comportement.
writing-for-agents
310kExplique comment rédiger des instructions claires pour les agents IA, y compris les skills et les fichiers AGENTS.md et CLAUDE.md, afin que l'agent se comporte de façon prévisible.
bengali-nlp
280kPermet à votre agent de traiter des textes en bengali. Il aide à comprendre cette langue, à normaliser les textes et à gérer ses particularités.