dspy-miprov2-optimizer
This skill should be used when the user asks to "optimize a DSPy program", "use MIPROv2", "tune instructions and demos", "get best DSPy performance", "run Bayesian optimization", mentions "state-of-the-art DSPy optimizer", "joint instruction tuning", or needs maximum performance from a DSPy program with substantial training data (200+ examples).
npx skills add majiayu000/claude-skill-registry --skill dspy-miprov2-optimizer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# DSPy MIPROv2 Optimizer ## Goal Jointly optimize instructions and few-shot demonstrations using Bayesian Optimization for maximum performance. ## When to Use - You have **200+ training examples** - You can afford longer optimization runs (40+ trials) - You need state-of-the-art performance - Both instructions and demos need tuning ## Related Skills - For limited data (10-50 examples): [dspy-bootstrap-fewshot](../dspy-bootstrap-fewshot/SKILL.md) - For agentic systems: [dspy-gepa-reflective](../dspy-gepa-reflective/SKILL.md) - Measure improvements: [dspy-evaluation-suite](../dspy-evaluation-suite/SKILL.md) ## Inputs | Input | Type | Description | |-------|------|-------------| | `program` | `dspy.Module` | Program to optimize | | `trainset` | `list[dspy.Example]` | 200+ training examples | | `metric` | `callable` | Evaluation function | | `auto` | `str` | "light", "medium", or "heavy" | | `num_trials` | `int` | Optimization trials (40+) | ## Outputs | Output | Type | Description | |--------|------|-------------| | `compiled_program` | `dspy.Module` | Fully optimized program | ## Workflow ### Three-Stage Process 1. **Bootstrap** - Generate candidate demonstrations 2. **Propose** - Cr
- Goal
- When to Use
- Related Skills
- Inputs
- Outputs
- Workflow
- Three-Stage Process
- Phase 1: Setup
- Phase 2: Define Program
- Phase 3: Optimize
- Auto Presets
- Production Example
- Instruction-Only Mode
- Best Practices
What does the dspy-miprov2-optimizer skill do?
This skill should be used when the user asks to "optimize a DSPy program", "use MIPROv2", "tune instructions and demos", "get best DSPy performance", "run Bayesian optimization", mentions "state-of-the-art DSPy optimizer", "joint instruction tuning", or needs maximum performance from a DSPy program with substantial training data (200+ examples).
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill dspy-miprov2-optimizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
