optimize-prompt
/optimize-prompt
Zamienia mglistą prośbę w konkretne zadanie przed pracą, gdy nie ma pliku, symbolu ani błędu, np. „dodaj testy”.
- Autor
- emerickchasse ↗
- Repozytorium
- claude-code-plugin-marketplace-culp ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.08.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 12.08.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Zamienia mglistą prośbę w konkretne zadanie przed pracą, gdy nie ma pliku, symbolu ani błędu, np. „dodaj testy”.
Wyzwalacze z opisu
Oryginalny opis (EN)
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.
Jak działa
- 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
Podgląd SKILL.md
--- 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.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · emerickchasse/claude-code-plugin-marketplace-culp | 90 | MIT |
| Uniswap/ai-toolkit | 84 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki f7de0a97fdab (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100prompt-engineering
Generuje, poprawia, analizuje i debuguje prompty LLM, uruchamiany tylko na wyraźną prośbę o napisanie, optymalizację lub diagnozę promptu. - 100prompt-engineer
Optymalizuje system prompty agentów Claude Code sprawdzonymi wzorcami prompt engineeringu dla przepływów agentów, instrukcji narzędzi i zachowań systemu. - 100prompt-optimizer
Optymalizuje prompt pod ChatGPT, Claude, Gemini lub inny model AI, przepisując go tak, by dawał lepsze odpowiedzi. - 86prompt-optimizer
Poprawia i optymalizuje prompty: przepisuje, buduje szablony i prompty systemowe, chain of thought i few-shot, dla Claude i GPT, z biblioteką promptów, w 20 funkcjach. - 100refine-prompt
Przekształca niejasne lub surowe prompty w precyzyjne, ustrukturyzowane instrukcje dla AI. - 100askright
Sprawdza i poprawia własny prompt przed wykonaniem zadania, wskazuje braki i proponuje trzy przeredagowania.