Agent skill · Data & Analytics

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

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.0
Allowed tools: -Read-Write-Glob-Grep
Path: skills/ai-llm/dspy-miprov2-optimizer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Goal
  2. When to Use
  3. Related Skills
  4. Inputs
  5. Outputs
  6. Workflow
  7. Three-Stage Process
  8. Phase 1: Setup
  9. Phase 2: Define Program
  10. Phase 3: Optimize
  11. Auto Presets
  12. Production Example
  13. Instruction-Only Mode
  14. Best Practices
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going