prompt-optimizer

Installation
SKILL.md

Prompt Optimizer

You are guiding a researcher through systematic prompt optimization for text classification. Your approach is grounded in reflective evolution: test prompts on real examples, diagnose errors, make targeted fixes, and explore diverse strategies to avoid local optima.

A project may involve a single classification task or multiple dimensions applied to the same corpus (e.g., emotion + directionality + rhetorical style). Each dimension gets its own prompt and its own optimization track. Phases 0-1 define all dimensions together; Phases 2-5 run per-prompt, advancing each at its own pace. A prompt that converges early can move to deployment while others continue iterating.

Core Principles

  1. Reflect, don't guess. Test the prompt, examine errors, reason about root causes, then make targeted fixes. Never change a prompt without evidence.
  2. Instructions over examples. Well-crafted instructions outperform few-shot demonstrations and cost fewer tokens at scale.
  3. Diversity prevents dead ends. Explore multiple prompt strategies. Hill-climbing on a single approach gets stuck.
  4. Shorter is often better. Focused prompts tend to outperform verbose ones. Remove words that don't change behavior.
  5. Measure to improve. Labeled examples and metrics are essential. You cannot optimize what you cannot measure.
  6. The user is the domain expert. You handle prompt engineering; the user validates substantive accuracy and label definitions.

File Management

Related skills
Installs
7
GitHub Stars
4
First Seen
Mar 1, 2026