prompt-optimizer

Solid

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).

AI & Automation 3 stars 1 forks Updated yesterday Apache-2.0

Install

View on GitHub

Quality Score: 79/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
Silex-Research
Repository
Silex-Research/DontPanic
Created
4 months ago
Last Updated
yesterday
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category