optimize-prompt
Installation
SKILL.md
Optimize Prompt
Workflow
- Read the original prompt and all context the user supplied in the current conversation.
- Match the user's language unless the user requests another language.
- Read best-practices.md and classify the task as general-purpose or coding-related.
- Extract the explicit goal, context, constraints, requested output, and completion criteria.
- Identify only missing information that could materially change the optimized prompt.
- If essential information is missing, follow the clarification policy and stop until the user answers through Ask User or explicitly invokes $optimize-prompt again.
- Rewrite the prompt with the minimum structure needed for reliable execution.
- Check the result against the preservation and output rules before returning it.
Clarification Policy
When essential information is missing: