{"manifest":{"name":"Prompt Optimizer","version":"1.0.0","description":"Paste a rough AI prompt and get an optimized version with an explanation of every improvement. Applies clarity, specificity, context-setting, output format, and constraint techniques. Works for Claude, GPT, Gemini, and any LLM.","tags":["prompts","ai","optimization","meta","llm","productivity"],"standard":"agentskills.io","standard_version":"1.0","content_checksum":"a7088d779accd46f26164aa06562d949db4d0151af793b32bbd3d75c16e69c29","bundle_checksum":null,"metadata":{},"files":[]},"files":{"SKILL.md":"# Prompt Optimizer\n\n> **Purpose:** Transform a rough, vague, or inconsistent AI prompt into a high-quality, optimized version. Analyzes the original for common failure modes — ambiguity, missing context, no output format spec, conflicting constraints — then produces an improved version with a diff-style explanation of every change made. Works for any LLM (Claude, GPT, Gemini, Llama).\n\n---\n\n## Invocation\n\n```\n/optimize-prompt\n```\n\nPaste your prompt after the command or in the next message.\n\n---\n\n## What Gets Analyzed\n\n### 1. Clarity and Specificity\n- Is the task underspecified? (\"write some code\" vs \"write a TypeScript function that...\")\n- Are there ambiguous pronouns or references?\n- Does it state what a \"good\" output looks like?\n\n### 2. Context\n- Is there missing background the model needs to answer well?\n- Should a persona or role be set? (\"You are a senior security engineer...\")\n- Is the input format specified?\n\n### 3. Output Format\n- Is the expected format defined (JSON, Markdown, bullet list, numbered steps)?\n- Is length/verbosity specified?\n- Are examples of the desired output provided?\n\n### 4. Constraints\n- Are there conflicting or redundant instructions?\n- Are hard constraints clearly marked vs soft preferences?\n- Is scope limited to prevent scope creep?\n\n### 5. Chain-of-Thought\n- Would the model benefit from \"think step by step\"?\n- Should it show its reasoning or just the answer?\n\n---\n\n## Output Format\n\n```markdown\n## Original Prompt\n\n[your original prompt, quoted]\n\n---\n\n## Issues Found\n\n| # | Issue | Severity | Category |\n|---|-------|----------|----------|\n| 1 | [description] | High/Med/Low | Clarity/Context/Format/Constraints |\n\n---\n\n## Optimized Prompt\n\n[the improved prompt, ready to copy-paste]\n\n---\n\n## What Changed\n\n- **[Change 1]:** [explanation of why this improves the prompt]\n- **[Change 2]:** [explanation]\n\n---\n\n## Tips for This Type of Prompt\n\n[1-3 specific tips for prompts in this domain]\n```\n\n---\n\n## Rules\n\n- **Never change the intent** — only improve how it's expressed\n- **Show every change** — the explanation section must account for all edits\n- If the original prompt is already well-optimized (score ≥ 8/10), say so and note only minor suggestions\n- Rate the original prompt 1-10 for context (e.g., \"Original: 4/10 — Optimized: 9/10\")\n- If the prompt is for a specific model (Claude, GPT-4, etc.), apply model-specific best practices\n- Don't over-engineer simple prompts — sometimes \"write a haiku about coffee\" doesn't need improvement\n\n## Playground\n\n<!DOCTYPE html><html><head><meta charset='utf-8'><style>*{box-sizing:border-box;margin:0;padding:0}body{background:#0d1117;color:#e6edf3;font-family:monospace;font-size:12px;height:100vh;display:flex;flex-direction:column;overflow:hidden}.header{background:#161b22;border-bottom:1px solid #30363d;padding:8px 14px;font-size:11px;color:#8b949e;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.title{color:#58a6ff;font-weight:bold;font-size:13px}.panels{display:flex;flex:1;overflow:hidden}.panel{flex:1;overflow:auto;padding:12px;border-right:1px solid #30363d}.panel:last-child{border-right:none}.label{font-size:10px;color:#8b949e;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}pre{white-space:pre-wrap;word-break:break-word;line-height:1.5}</style></head><body><div class='header'><span class='title'>Prompt Optimizer</span><span>Example · SkillSlap</span></div><div class='panels'><div class='panel'><div class='label'>Input: Rough prompt</div><pre><span style='color:#8b949e'>write me a function that takes</span>\n<span style='color:#8b949e'>a list of numbers and removes</span>\n<span style='color:#8b949e'>duplicates and also sorts it</span>\n<span style='color:#8b949e'>and returns it, in python</span></pre></div><div class='panel'><div class='label'>Output: Optimized prompt</div><pre><span style='color:#58a6ff'>Write a Python function with this</span>\n<span style='color:#58a6ff'>signature:</span>\n\n<span style='color:#3fb950'>def dedupe_sorted(nums: list[int])</span>\n<span style='color:#3fb950'>  -> list[int]:</span>\n\n<span style='color:#58a6ff'>Requirements:</span>\n<span style='color:#8b949e'>- Remove duplicate values</span>\n<span style='color:#8b949e'>- Return elements in ascending order</span>\n<span style='color:#8b949e'>- Do not modify the input list</span>\n<span style='color:#8b949e'>- Handle empty list (return [])</span>\n<span style='color:#8b949e'>- Type-annotated, no external imports</span>\n\n<span style='color:#58a6ff'>Example:</span>\n<span style='color:#8b949e'>dedupe_sorted([3,1,2,1,3]) → [1,2,3]</span>\n<span style='color:#8b949e'>dedupe_sorted([])          → []</span></pre></div></div></body></html>"}}