/prompt-optimizer:optimize-claude-sonnet-5-5-promptsfrom Prompt Optimizer
Clarify and rewrite prompts or agent harnesses for Claude Sonnet 5.5, including migration from Sonnet 5 and tuning behaviors like effort, initiative, JSON accuracy, and low-effort verification.
Ships in Prompt Optimizer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn rough ideas and existing prompt stacks into copy-ready prompts for Claude Sonnet 5.5. Preserve the user's intent and hard constraints, clarify genuinely blocking gaps, and keep the result no more elaborate than the task requires.
Existing Claude Sonnet 5 prompts should perform well without changes. Most real optimization here is targeted steering for observed behavior plus removal of obsolete workarounds, not a rewrite into a larger template. For the hardest long-horizon work, prefer an Opus model or the select-claude-models skill rather than over-prompting Sonnet.
Read references/official-guidance.md for model-specific rationale, runtime settings, and migration details. Read references/snippets.md for the copy-ready instruction blocks from Anthropic's guide. Treat the listed URLs as canonical and the prose as a dated working summary; fetch the live pages before making claims about current model IDs, parameters, availability, limits, or pricing.
Use the official model name Claude Sonnet 5.5 and the API model ID claude-sonnet-5-5. Treat Sonnet 5.5, sonnet-5-5, and S5.5 as spelling variants unless context indicates a different product.
When the user is choosing between Sonnet and Opus, or designing a multi-agent Opus-plans / Sonnet-executes setup, use or point to select-claude-models.
Identify the following from the user's message, pasted prompt, or referenced file:
Treat these as diagnostic dimensions, not mandatory prompt sections. Keep a simple prompt simple.
If the user supplies a layered prompt stack, preserve the separation between system, developer, user, and tool-description content. Do not silently move instructions between trust levels.
Ask a question only when the missing or conflicting information is blocking: two reasonable answers would produce materially different prompts, outputs, permissions, evidence, or success criteria.
Treat these gaps as blocking by default:
Do not turn blocking gaps into placeholders, invented policies, assumed access, or a provisional workflow.
Proceed when the core contract is clear and the missing detail is cosmetic or safely local. For an existing concrete prompt, preserve its contract and do not demand optional context. If the user explicitly delegates a nonblocking choice, make a conservative assumption, state it after the prompt, and continue.
When clarification is blocking:
For a prompt-tuning request, one question is usually enough: which behavior is wrong in the observed output. Do not interrogate the user about optional tone, headings, or preferences that a conservative assumption covers.
Sonnet 5.5 performs well on existing Sonnet 5 prompts. Remove these before adding anything:
between_tools.reasoning_extraction refusals; use summarized thinking or progress updates instead.State plainly which removals are behavior-driven so the user can re-add anything their evals actually need.
Map the observed symptom to one lever. Copy the matching block from references/snippets.md and adapt it to the user's product voice.
| Observed behavior | Lever |
|---|---|
| Turns longer/shorter or quality off after migrating from Sonnet 5 | Re-sweep effort; do not reuse the old level. Start high on the API unless the workload is agentic or latency-sensitive. |
Stops to check in before coding work is done at low/medium | Raise effort first, or add carry-through + stop-when-done instructions. |
| Adds unrequested tests, docs, or supporting files | Keep only the "stop when done; don't add extras" paragraph. |
Extra review rounds or reviewer subagents at xhigh/max | Cap self-started review; reserve those effort levels for measured gains. |
| Open-ended asks become builds instead of ideas | Ask for ideas/plan first, or add the plan-then-stop block. |
| Integration previously ran with thinking off | Switch to between_tools at high or below; keep adaptive thinking for tool-free reasoning tasks. |
| JSON answers to multi-step reasoning tasks are wrong or unparsable | Prefer structured outputs; add "think before you answer"; use adaptive thinking, not between_tools. |
| Long agentic turns look silent in the UI | Surface progress via thinking.display / between_tools notes; optionally schedule update points in the prompt. |
| Answers from training knowledge when search would catch changes | Remove anti-tool language; add the search-check instruction. |
| Mid-turn user messages ignored or treated as injections | Fix harness placement: user text as a user turn after tool results, never inside tool_result. |
Code changes reported done without a real test/build at low effort | Add the real-check verification paragraph. |
| Tool names mismatch only by case or near-miss parameter names | Handle in the harness with tolerant matching or a precise is_error result; do not bloat the prompt. |
| Dense charts or technical drawings miss detail | Provide crop/zoom/code tools; tools beat raising effort for charts. |
stop_reason: "refusal" on legitimate work | Remove reasoning-extraction asks; handle fallbacks in app code; note Cyber / Life Sciences verification programs where relevant. |
Beyond these levers, apply ordinary prompt hygiene only where it materially improves the contract:
Use a role only when a specialized perspective changes the result. Use descriptive XML tags when the prompt mixes instructions, context, examples, variable inputs, or multiple documents and tags make boundaries clearer; do not wrap a simple prompt in a large XML scaffold. Use three to five diverse examples only when they encode a format, tone, classification boundary, or edge case better than prose.
For long source material, place documents near the beginning, wrap them in clear tags, and put the query and task instructions after them.
Never ask Claude to reveal, reproduce, or quote hidden chain of thought. Ask instead for conclusions, concise rationale, supporting evidence, assumptions, checks performed, and uncertainty.
Do not embed API settings in the copy-ready prompt unless the user explicitly asks for a complete API request or deployment configuration.
When runtime guidance is requested:
claude-sonnet-5-5);high; for agentic coding start at medium for well-specified tasks and move to high for harder ones; for chat/latency-sensitive work start at medium or low; reserve xhigh/max for measured gains, and consider Opus instead if those levels become the default;thinking: {"type": "disabled"} returns 400 — use between_tools to turn off up-front thinking;max_tokens; for agentic coding, 128k with streaming is the documented starting point;Silently run every applicable check:
If a check exposes blocking ambiguity, return to the clarity gate. Otherwise revise until every applicable check passes.
Honor the user's requested format. Otherwise use the smallest suitable response.
For a completed optimization, return:
优化后的提示词 or Optimized prompt: one copy-ready fenced block.关键改动 or Key changes: at most five concise bullets, only when useful. Name removals explicitly, with the behavior each removal targets.假设 or Assumptions: only assumptions actually made.运行时设置 or Runtime settings: only when requested or essential to the stated use case.When the user asks for prompt-only output, return only the copy-ready prompt: no headings, commentary, change notes, or Markdown fences unless a fenced block was requested.
For blocking clarification, return only a one-sentence reason, one to three questions, and an optional one-line answer template. Do not bury the questions beneath a provisional rewrite.
Answer in the user's language.
thinking: {"type": "disabled"}; use between_tools or lower effort.between_tools for tool-free multi-step reasoning or JSON tasks.xhigh or max as a universal default on Sonnet; measure first, and consider Opus for hard long-horizon work.tool_result blocks.Finish only when the prompt is copy-ready, blocking ambiguity is resolved, explicit constraints are preserved, action boundaries are clear where relevant, obsolete scaffolding is gone, each remaining behavior instruction is justified, and the validation checklist passes. If those conditions cannot be met, state the smallest missing information instead of fabricating a complete prompt.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/audit-gpt-6-astra-skillsAudit and subtractively clean Skills, AGENTS.md, and coding-agent scaffolding for GPT-6 Astra. Use when Astra stops early, loads the wrong skills, over-reads, over-tests, over-asks, or when migrating Sol-era harness instructions—not for rewriting product prompts (use optimize-gpt-6-astra-prompts)./optimize-claude-fable-5-promptsClarify and rewrite prompts for Claude Fable 5. Use when optimizing, migrating, debugging, or designing a Fable 5 / Fabel prompt (including Fable/Fabel 提示词优化)—not for Claude Opus 5./optimize-claude-opus-5-promptsOther plugins' skills for the same job
npx claudepluginhub ichendev/prompt-optimizer-plugins --plugin prompt-optimizer