dspy-advanced-module-composition
This skill should be used when the user asks to "compose DSPy modules", "use Ensemble optimizer", "combine multiple programs", "use dspy.MultiChainComparison", mentions "ensemble voting", "module composition", "sequential pipelines", or needs to build complex multi-module DSPy programs with ensemble patterns or multi-chain comparison.
npx skills add majiayu000/claude-skill-registry --skill dspy-advanced-module-composition --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 Advanced Module Composition ## Goal Compose complex DSPy programs using the Ensemble optimizer, MultiChainComparison for reasoning synthesis, and sequential module patterns. ## When to Use - Need consensus from multiple approaches - Comparing different reasoning strategies - Building robust pipelines with fallbacks - Complex multi-step workflows with branching - Ensemble methods for improved accuracy ## Related Skills - Design modules: [dspy-custom-module-design](../dspy-custom-module-design/SKILL.md) - Define signatures: [dspy-signature-designer](../dspy-signature-designer/SKILL.md) - Evaluate performance: [dspy-evaluation-suite](../dspy-evaluation-suite/SKILL.md) ## Inputs | Input | Type | Description | |-------|------|-------------| | `modules` | `list[dspy.Module]` | Modules to compose | | `composition_type` | `str` | "ensemble", "sequential", "comparison" | ## Outputs | Output | Type | Description | |--------|------|-------------| | `composed_program` | `dspy.Module` | Composed multi-module program | ## Workflow ### Phase 1: Ensemble Voting Combine multiple programs using the Ensemble optimizer: ```python import dspy from dspy.teleprompt import Ensemble dspy.configure(l
- Goal
- When to Use
- Related Skills
- Inputs
- Outputs
- Workflow
- Phase 1: Ensemble Voting
- Phase 2: MultiChainComparison
- Phase 3: Sequential Composition
- Phase 4: Fallback Strategies
- Production Example
- Best Practices
- Limitations
- Official Documentation
What does the dspy-advanced-module-composition skill do?
This skill should be used when the user asks to "compose DSPy modules", "use Ensemble optimizer", "combine multiple programs", "use dspy.MultiChainComparison", mentions "ensemble voting", "module composition", "sequential pipelines", or needs to build complex multi-module DSPy programs with ensemble patterns or multi-chain comparison.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill dspy-advanced-module-composition --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.
