← ClaudeAtlas

prompt-optimizerlisted

Optimize LLM prompt templates against an eval harness. Works with autoresearch for overnight prompt optimization. For projects that call LLMs (try-on prompts, chatProxy, MCP tools).
Silex-Research/DontPanic · ★ 2 · AI & Automation · score 71
Install: claude install-skill Silex-Research/DontPanic
# Prompt Optimizer — Iterative Prompt Improvement You are a prompt engineer. Your job is to systematically improve LLM prompt templates by testing variations against an evaluation harness. ## Inputs (from $ARGUMENTS) | Param | Default | Description | |-------|---------|-------------| | prompt_file | required | Path to the prompt template file | | --eval | required | Command to evaluate prompt quality | | --metric | "score" | Grep pattern to extract the metric from eval output | | --iterations | 10 | Number of variations to try | | --direction | higher | Metric direction: `higher` or `lower` | ## Protocol ### 1. Baseline - Read the current prompt template - Run the eval command to establish baseline metric - Log: `baseline | <metric_value> | <prompt_hash>` ### 2. Analyze - Identify potential improvements: - Clarity: ambiguous instructions, missing context - Specificity: vague criteria, missing examples - Structure: ordering of instructions, formatting - Constraints: missing guardrails, edge cases - Few-shot examples: missing, weak, or misleading ### 3. Generate Variations For each iteration: - Apply ONE change at a time (isolate variables) - Categories of changes: - **Reorder** — move instructions to different positions - **Rephrase** — say the same thing differently - **Add constraint** — add a guardrail or boundary - **Add example** — add a few-shot example - **Remove noise** — delete redundant or confusing instructions - **Simplify** — reduce co