Dspy Miprov2 Optimizer
Use for MIPROv2, Bayesian optimization, instruction and demo tuning, and high-performance DSPy program optimization.
Install
/plugin marketplace add OmidZamani/dspy-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add OmidZamani/dspy-skills --skill dspy-miprov2-optimizergit clone --depth 1 https://github.com/OmidZamani/dspy-skills.git /tmp/dspy-skills
mkdir -p ~/.claude/skills
cp -r /tmp/dspy-skills/skills/dspy-miprov2-optimizer ~/.claude/skills/dspy-miprov2-optimizerPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
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 Install the optional Optuna dependency before using MIPROv2: ```bash pip install -U "dspy[optuna]>=3.2.1,<3.3" ``` ### Three-Stage Process 1. **Bootstrap** - Generate candidate demonstrations 2. **Propose** - Create grounded instruction candidates 3. **Search** - Bayesian optimization over combinations ### Phase 1: Setup
Details
- Skill name
dspy-miprov2-optimizer- Repository
- OmidZamani/dspy-skills
- Path
skills/dspy-miprov2-optimizer/SKILL.md- License
- MIT
- Repo updated
- 23 June 2026
- Listed in
- heilcheng/awesome-agent-skills
FAQ
What does the Dspy Miprov2 Optimizer skill do?
Use for MIPROv2, Bayesian optimization, instruction and demo tuning, and high-performance DSPy program optimization.
How do I install the Dspy Miprov2 Optimizer skill?
Claude Code plugin: /plugin marketplace add OmidZamani/dspy-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Dspy Miprov2 Optimizer popular?
It lives in OmidZamani/dspy-skills, which has 125 GitHub stars and 13 forks, and is included in 1 curated skill list.
Related skills
Dspy Adapters Multimodal
125OmidZamani/dspy-skills
Use for DSPy adapter selection, JSONAdapter, XMLAdapter, ChatAdapter, native function calling, structured outputs, and multimodal inputs like dspy.Image or dspy.Audio.
Dspy Advanced Module Composition
125OmidZamani/dspy-skills
Use for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
Dspy Better Together
125OmidZamani/dspy-skills
Use for BetterTogether, prompt plus weight optimization, fine-tuning sequences, and strategy chains like p -> w -> p.
Dspy Reasoning Modules
125OmidZamani/dspy-skills
Use for DSPy reasoning modules including RLM, ProgramOfThought, CodeAct, Parallel, sandboxed execution, and long-context workflows.
Dspy Evaluation Suite
125OmidZamani/dspy-skills
Use for evaluating DSPy programs with Evaluate, answer_exact_match, SemanticF1, custom metrics, baselines, and program comparisons.
Lacan
103dontbesilent2025/claude-skills
拉康式精神分析对话。用拉康理论框架(大他者、欲望、幻象、能指链)进行分析式对话。 触发方式:/lacan、「拉康」、「精神分析对话」 Lacanian psychoanalysis dialogue using Lacanian framework (big Other, desire, fantasy, signifier chain). Trigger: /lacan, "Lacanian analysis", "psychoanalysis dialogue
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.