Prompt Polisher
Transform messy, unstructured input into polished, Claude-optimized prompts using Anthropic's best practices.
When to Activate
Activate this skill when:
- User provides voice transcription content (contains filler words, self-corrections, casual speech)
- User dumps stream-of-consciousness notes
- User pastes rough document content that needs structuring
- User explicitly asks to "polish", "clean up", or "turn this into a prompt"
- Input is clearly unstructured and intended as task instructions
Workflow
Execute these stages in order:
Stage 1: Voice Cleanup
If the input appears to be voice transcription or casual speech, clean it up:
Remove:
- Filler words: "um", "uh", "like", "you know", "basically", "actually", "literally", "right?"
- Self-corrections: "no wait", "I mean", "actually scratch that", "let me rephrase"
- False starts: repeated or abandoned sentence beginnings
- Verbal tics: "okay so", "let me think", "hmm"
Normalize:
- Convert spoken patterns to written form
- Fix run-on sentences
- Add proper punctuation
Stage 2: Intent Extraction
Parse the cleaned input to identify:
| Element |
What to Find |
| Core task |
What does the user actually want done? |
| Referenced files |
Documents, project files, URLs mentioned |
| Constraints |
Limitations, requirements, boundaries |
| Preferences |
Style, format, approach preferences |
| Success criteria |
What does "done" look like? |
| Scope |
Single task vs. multi-step project |
Stage 3: Gap Detection
Scan for missing or ambiguous elements:
If gaps exist, ask ALL clarifying questions at once:
Before I polish this prompt, I need to clarify a few things:
1. [First gap-specific question]
2. [Second gap-specific question]
3. Which Claude model are you using? (Opus 4.5 / Sonnet 4.5 / Not sure)
Wait for user response before proceeding.
Stage 4: Apply Best Practices
Reference reference.md for detailed guidelines. Apply these transformations:
Universal (Claude 4.x):
- Make instructions explicit and direct (no hints)
- Add contextual framing (explain WHY, not just WHAT)
- Use positive framing ("use prose" not "don't use bullets")
- Structure with XML tags for complex inputs
- Use action-oriented language ("Change this" not "Can you suggest")
- Include chain of thought prompts for complex reasoning
- Define clear success criteria
- Use normal tone (avoid aggressive CAPS/MUST/CRITICAL)
If Opus 4.5:
- Add anti-over-engineering guardrail: "Keep solutions simple. Only make changes directly requested."
- Avoid the word "think" → use "consider", "evaluate", "believe"
- Leverage planning strength: "Build an editable plan before executing"
- Keep prompts token-efficient (don't over-pad)
- Provide policy/constraint context when relevant
If Sonnet 4.5:
- Break complex tasks into explicit steps
- Optimize for speed/throughput
- Add more explicit step-by-step guidance for intricate tasks
Stage 5: Structure the Prompt
Generate the polished prompt using this template:
<context>
[Background info, relevant project context, referenced files, WHY this task matters]
</context>
<task>
[Clear, explicit statement of what needs to be done - action-oriented]
</task>
<requirements>
[Specific constraints, boundaries, must-haves, technical choices]
</requirements>
<success_criteria>
[What "done" looks like, how to verify completion]
</success_criteria>
<approach> <!-- Optional: include for complex tasks -->
[Suggested approach OR "Build an editable plan before executing"]
</approach>
Formatting rules:
- Keep each section focused and concise
- Use bullet points only when listing multiple items
- Omit sections that aren't relevant to the task
- For simple tasks, a streamlined version without XML tags is acceptable
Stage 6: Preview for Approval
Present the polished prompt to the user:
Here's your polished prompt:
---
[POLISHED PROMPT CONTENT]
---
**Options:**
- **Execute** - Run this prompt now
- **Edit** - I'll modify something first
- **Redo** - Start over with different clarifications
Wait for user approval before executing.
Stage 7: Execute or Iterate
Based on user choice:
- Execute: Immediately act on the polished prompt as if the user had typed it directly
- Edit: User modifies the prompt, then re-preview
- Redo: Return to Stage 1 with new input or Stage 3 for new clarifications
Important Notes
- Always preview before executing - never skip the approval step
- If the input is already well-structured, acknowledge this and offer minor polish only
- Learn from user feedback - if they frequently edit a certain way, note the pattern
- For very short/simple inputs, use a streamlined format without full XML structure
- The goal is USEFUL prompts, not LONG prompts - be concise
See Also
- reference.md - Detailed Anthropic best practices for Claude 4.x, Opus 4.5, and Sonnet 4.5
- examples.md - Before/after transformation examples
1---2name: prompt-polisher3description: Use when receiving messy, unstructured input like voice transcriptions, stream-of-consciousness notes, or rough document content that needs to be transformed into a polished, optimized prompt. Cleans up filler words, extracts intent, asks clarifying questions, applies Claude 4.x/Opus 4.5/Sonnet 4.5 best practices, and previews the polished prompt for approval before execution. Trigger phrases include "polish this", "clean this up", "turn this into a prompt", or when input is clearly rough/unstructured.4---5
6# Prompt Polisher
7
8Transform messy, unstructured input into polished, Claude-optimized prompts using Anthropic's best practices.
9
10## When to Activate
11
12Activate this skill when:
13- User provides voice transcription content (contains filler words, self-corrections, casual speech)
14- User dumps stream-of-consciousness notes
15- User pastes rough document content that needs structuring
16- User explicitly asks to "polish", "clean up", or "turn this into a prompt"
17- Input is clearly unstructured and intended as task instructions
18
19## Workflow
20
21Execute these stages in order:
22
23### Stage 1: Voice Cleanup
24
25If the input appears to be voice transcription or casual speech, clean it up:
26
27**Remove:**
28- Filler words: "um", "uh", "like", "you know", "basically", "actually", "literally", "right?"
29- Self-corrections: "no wait", "I mean", "actually scratch that", "let me rephrase"
30- False starts: repeated or abandoned sentence beginnings
31- Verbal tics: "okay so", "let me think", "hmm"
32
33**Normalize:**
34- Convert spoken patterns to written form
35- Fix run-on sentences
36- Add proper punctuation
37
38### Stage 2: Intent Extraction
39
40Parse the cleaned input to identify:
41
42| Element | What to Find |
43|---------|--------------|
44| Core task | What does the user actually want done? |
45| Referenced files | Documents, project files, URLs mentioned |
46| Constraints | Limitations, requirements, boundaries |
47| Preferences | Style, format, approach preferences |
48| Success criteria | What does "done" look like? |
49| Scope | Single task vs. multi-step project |
50
51### Stage 3: Gap Detection
52
53Scan for missing or ambiguous elements:
54
55- [ ] Ambiguous requirements ("process them somehow")
56- [ ] Missing success criteria (no clear definition of "done")
57- [ ] Unclear scope (single task or multi-step?)
58- [ ] Format unspecified (code? prose? structured output?)
59- [ ] Model unknown (Opus 4.5 or Sonnet 4.5?)
60- [ ] Technical choices undefined (which library/approach/pattern?)
61
62**If gaps exist, ask ALL clarifying questions at once:**
63
64```
65Before I polish this prompt, I need to clarify a few things:
66
671. [First gap-specific question]
682. [Second gap-specific question]
693. Which Claude model are you using? (Opus 4.5 / Sonnet 4.5 / Not sure)
70```
71
72Wait for user response before proceeding.
73
74### Stage 4: Apply Best Practices
75
76Reference [reference.md](reference.md) for detailed guidelines. Apply these transformations:
77
78**Universal (Claude 4.x):**
79- Make instructions explicit and direct (no hints)
80- Add contextual framing (explain WHY, not just WHAT)
81- Use positive framing ("use prose" not "don't use bullets")
82- Structure with XML tags for complex inputs
83- Use action-oriented language ("Change this" not "Can you suggest")
84- Include chain of thought prompts for complex reasoning
85- Define clear success criteria
86- Use normal tone (avoid aggressive CAPS/MUST/CRITICAL)
87
88**If Opus 4.5:**
89- Add anti-over-engineering guardrail: "Keep solutions simple. Only make changes directly requested."
90- Avoid the word "think" → use "consider", "evaluate", "believe"
91- Leverage planning strength: "Build an editable plan before executing"
92- Keep prompts token-efficient (don't over-pad)
93- Provide policy/constraint context when relevant
94
95**If Sonnet 4.5:**
96- Break complex tasks into explicit steps
97- Optimize for speed/throughput
98- Add more explicit step-by-step guidance for intricate tasks
99
100### Stage 5: Structure the Prompt
101
102Generate the polished prompt using this template:
103
104```xml
105<context>
106[Background info, relevant project context, referenced files, WHY this task matters]
107</context>
108
109<task>
110[Clear, explicit statement of what needs to be done - action-oriented]
111</task>
112
113<requirements>
114[Specific constraints, boundaries, must-haves, technical choices]
115</requirements>
116
117<success_criteria>
118[What "done" looks like, how to verify completion]
119</success_criteria>
120
121<approach> <!-- Optional: include for complex tasks -->
122[Suggested approach OR "Build an editable plan before executing"]
123</approach>
124```
125
126**Formatting rules:**
127- Keep each section focused and concise
128- Use bullet points only when listing multiple items
129- Omit sections that aren't relevant to the task
130- For simple tasks, a streamlined version without XML tags is acceptable
131
132### Stage 6: Preview for Approval
133
134Present the polished prompt to the user:
135
136```
137Here's your polished prompt:
138
139---
140
141[POLISHED PROMPT CONTENT]
142
143---
144
145**Options:**
146- **Execute** - Run this prompt now
147- **Edit** - I'll modify something first
148- **Redo** - Start over with different clarifications
149```
150
151**Wait for user approval before executing.**
152
153### Stage 7: Execute or Iterate
154
155Based on user choice:
156- **Execute**: Immediately act on the polished prompt as if the user had typed it directly
157- **Edit**: User modifies the prompt, then re-preview
158- **Redo**: Return to Stage 1 with new input or Stage 3 for new clarifications
159
160## Important Notes
161
162- Always preview before executing - never skip the approval step
163- If the input is already well-structured, acknowledge this and offer minor polish only
164- Learn from user feedback - if they frequently edit a certain way, note the pattern
165- For very short/simple inputs, use a streamlined format without full XML structure
166- The goal is USEFUL prompts, not LONG prompts - be concise
167
168## See Also
169
170- [reference.md](reference.md) - Detailed Anthropic best practices for Claude 4.x, Opus 4.5, and Sonnet 4.5
171- [examples.md](examples.md) - Before/after transformation examples