SKILL.md--- name: prompt-optimizer description: Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more. --- # Prompt Optimizer ## Overview Evaluate prompt quality, provide targeted improvement suggestions, and generate optimized versions using 58 proven prompting techniques. This skill systematically analyzes prompts across multiple quality dimensions and applies evidence-based optimization patterns. ## Quick Start For most optimization tasks, follow this workflow: 1. **Analyze the current prompt** - Read and understand what the user wants to achieve 2. **Evaluate quality** - Assess across clarity, specificity, structure, completeness 3. **Load relevant techniques** - Read [references/prompt-techniques.md](references/prompt-techniques.md) for applicable methods 4. **Generate suggestions** - Use evaluation results and techniques to propose improvements 5. **Create optimized version** - Apply chosen techniques to produce an enhanced prompt ## Evaluation Workflow When a user asks to optimize or evaluate a prompt: ### Step 1: Load Quality Framework Read [references/quality-framework.md](references/quality-framework.md) to understand evaluation dimensions: - **Clarity** - Is the prompt unambiguous and easy to understand? - **Specificity** - Are requirements and constraints clearly defined? - **Structure** - Does it follow logical organization? - **Completeness** - Does it include all necessary context and instructions? - **Tone** - Is the voice appropriate for the task? - **Constraints** - Are boundaries and limitations clear? ### Step 2: Perform Quality Assessment Evaluate the prompt against each dimension: ``` For each quality dimension: 1. Identify strengths (what works well) 2. Identify weaknesses (what's missing or unclear) 3. Rate quality (Poor/Fair/Good/Excellent) 4. Note specific improvement opportunities ``` ### Step 3: Identify Applicable Techniques Load [references/prompt-techniques.md](references/prompt-techniques.md) and identify techniques that address the identified weaknesses. **Example mapping:** - Weak: "Be creative" → Apply: **Role-play** or **Creative Persona** - Weak: "Write an essay" → Apply: **Chain of Thought** or **Step-by-Step** - Weak: "Summarize this" → Apply: **Few-shot Learning** with examples ### Step 4: Generate Optimization Plan Create a structured optimization plan: 1. **Priority improvements** - High-impact changes that address multiple weaknesses 2. **Optional enhancements** - Nice-to-have techniques that boost performance 3. **Technique combinations** - Suggest technique pa