optimize-prompt
/optimize-prompt
Turn a vague request into a specific brief before doing the work, so a wide scan and a discarded first attempt never happen. Use when a request names no file, symbol or error — "improve this codebase", "add tests", "make it faster", "clean this up", "review my code" — or when the user asks to optimize, rewrite or structure a prompt, mentions CO-STAR or prompt engineering, or asks how to get better results from Claude. Also use when a session is starting broad work and the target is not yet pinned down.
- Author
- emerickchasse ↗
- Repository
- claude-code-plugin-marketplace-culp ↗
- Licence
- MIT
- Last repository change
- 12.08.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 12.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Turn a vague request into a specific brief before doing the work, so a wide scan and a discarded first attempt never happen. Use when a request names no file, symbol or error — "improve this codebase", "add tests", "make it faster", "clean this up", "review my code" — or when the user asks to optimize, rewrite or structure a prompt, mentions CO-STAR or prompt engineering, or asks how to get better results from Claude. Also use when a session is starting broad work and the target is not yet pinned down.
Triggers from the description
Original author description
Turn a vague request into a specific brief before doing the work, so a wide scan and a discarded first attempt never happen. Use when a request names no file, symbol or error — "improve this codebase", "add tests", "make it faster", "clean this up", "review my code" — or when the user asks to optimize, rewrite or structure a prompt, mentions CO-STAR or prompt engineering, or asks how to get better results from Claude. Also use when a session is starting broad work and the target is not yet pinned down.
How it works
- When to use it, and when not to
- How to run it
- The rule that makes the output trustworthy
- About CO-STAR
- The automatic nudge
SKILL.md preview
--- name: optimize-prompt description: Turn a vague request into a specific brief before doing the work, so a wide scan and a discarded first attempt never happen. Use when a request names no file, symbol or error — "improve this codebase", "add tests", "make it faster", "clean this up", "review my code" — or when the user asks to optimize, rewrite or structure a prompt, mentions CO-STAR or prompt engineering, or asks how to get better results from Claude. Also use when a session is starting broad work and the target is not yet pinned down. license: MIT metadata: author: Emerick Chasse homepage: https://claudeusagelimits.com --- # Optimize the prompt before doing the work The expensive failure mode in Claude Code is not a long prompt. It is a broad one. "Improve this codebase" makes a session read widely and then produce work that gets thrown away — and thrown-away work is billed at output rates, which are roughly five times input rates. A request that names a file and a symptom never triggers that. This skill spends a small, bounded amount to avoid an unbounded amount. It is worth being honest that the trade is not always positive: on an already-specific request, reformulating costs a turn and buys nothing. The whole skill is a judgement about which case you are in. ## When to use it, and when not to **Use it** when the request has no anchor: no path, no symbol, no error text, no named module — and the verb is directional (improve, clean up, refactor, optimize, review, add tests, harden, modernise). **Skip it** when: - the request already names a file, a function or an error; - the user has said what "done" looks like; - the work is small enough that doing it costs less than briefing it; - the user is mid-conversation and the context already supplies the target. If you are unsure, ask the user the two or three questions directly. That is cheaper than a subagent and it is what the subagent would have produced anyway. ## How to run it Delegate to the bundled agent, which works in its own context and returns only the brief: > Use the `prompt-optimizer` subagent to turn this into a specific brief: > "<the user's request, verbatim>" It is capped at six tool calls, it never edits or runs anything, and it returns Objective / Context / Scope / Response / Unknowns. Then **show the brief to the user and get agreement before starting.** That is the step that makes this pay: the brief is a cheap place to discover you were about to build the wrong thing. Do not treat the brief as permission to proceed. ## The rule that makes the output trustworthy The agent is told never to invent a constraint the user did not give. Missing information becomes an **Unknown**, not an assumption quietly written into Scope. Hold it to that when you read the brief: a confident brief resting on fabricated requirements is worse than the vague request it replaced, because the vague request was visibly vague and this one is not. If the brief comes back with Unknowns, ask them. That is the brief working. ## About CO-STAR CO-STAR is Context, Objective, Style, Tone, Audience, Response. Style, Tone and Audience carry real information when the deliverable is prose and almost none when it is a diff, so the agent folds them into **Response** for engineering work and gives them their own lines when the task is actually writing — documentation, a changelog, a customer email. Match the template to the work. Padding a template to fill its letters produces a longer prompt that says less, which is the opposite of the point. ## The automatic nudge The plugin also ships a `UserPromptSubmit` hook that fires **at most once per session**, and only when the first request matches the vague shape above. It adds a note; it never rewrites what the user typed. Rewriting someone's words on their behalf is a worse trade than the tokens it might save. Turn it off with `CULP_OPTIMIZER_DISABLE_PROMPT_HINT=1` in the environment. It requires `python3` on `PATH`; where that name does not exist, the hook is simply inactive and this skill still works when invoked. --- Part of the [Usage Limits Optimizer](https://claudeusagelimits.com/claude-usage-limits-skill/), a free and open plugin. MIT licensed.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · emerickchasse/claude-code-plugin-marketplace-culp | 90 | MIT |
| Uniswap/ai-toolkit | 84 | MIT |
Database snapshot: 13.11.2026 · package version f7de0a97fdab (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100prompt-engineering
Generate, improve, analyze, and debug LLM prompts. Activate only when the user explicitly asks to write, rewrite, optimize, diagnose, or design a prompt/system prompt, or names a prompt-engineering technique. - 100prompt-engineer
Optimize system prompts for Claude Code agents using proven prompt engineering patterns. Use when users request prompt improvement, optimization, or refinement for agent workflows, tool instructions, or system behaviors. Use when you say "optimize this prompt", "improve this… - 100prompt-optimizer
When the user wants a prompt optimized for ChatGPT, Claude, Gemini, or another AI — 'make this prompt better', 'optimize for ChatGPT', 'rewrite my prompt' — even without saying 'optimize'. - 86prompt-optimizer
When user asks to improve prompt, optimize prompt, better prompt, fix prompt, rewrite prompt, prompt engineering, make prompt better, enhance prompt, prompt template, system prompt, mega prompt, chain of thought, few shot prompt, prompt for Claude, prompt for GPT, prompt tips,… - 100refine-prompt
Transforms vague or rough prompts into precise, structured AI instructions. Use when asked to "refine prompt", "improve prompt", "make this prompt better", "promptify", "optimize prompt", "rewrite prompt", "enhance prompt", or "sharpen instructions". - 100askright
Use this skill whenever the user types /askright, asks to review, check, sharpen, rewrite or improve their own prompt or request before Claude acts on it (\"is this a good prompt?\", \"make my prompt better then do it\", \"how would you phrase this ask?\"), or wants to switch…