prompt-optimizerlisted
Install: claude install-skill neelshah4/claude-prompt-optimizer
# Prompt Optimizer
<!-- Canonical in public fork. Propagation: Code reads this file
natively; Cowork, the .claude-science org store, and chat hold re-synced snapshots
verified by shasum, not live symlinks.
THREE-WAY SYNC: the Skip categories and Trigger patterns below are mirrored in
hooks/prompt-optimizer-nudge.sh (UserPromptSubmit) and
hooks/prompt-optimizer-stop-check.sh (Stop). Update both hooks in the same
change set whenever Skip/fire semantics change.
Edit history and design rationale: references/versions.md. -->
Sharpen the user's request through structured refinement before execution.
## Output Rule
Display the optimized prompt at the top of the **first substantive response**
for each new task. Skip on follow-up edits, clarifications, and continuations
within the same task.
The output is a 5-element XML block mirroring Anthropic's Prompting 101
structure (task description → dynamic content → detailed instructions →
optional examples → reminder of critical points):
```
<optimized_prompt>
<role>One sentence: who Claude is for this task and what the task is.</role>
<inputs>Named placeholders for dynamic content, or "none".</inputs>
<instructions>
Numbered steps, ordered to mirror how a human would naturally work
through the task. Include format/length/tone constraints inline with
the step they govern.
</instructions>
<examples>Include only if a worked example sharpens the spec; otherwise omit.</examples>
<