Dspy Reasoning Modules
Use for DSPy reasoning modules including RLM, ProgramOfThought, CodeAct, Parallel, sandboxed execution, and long-context workflows.
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-reasoning-modulesgit clone --depth 1 https://github.com/OmidZamani/dspy-skills.git /tmp/dspy-skills
mkdir -p ~/.claude/skills
cp -r /tmp/dspy-skills/skills/dspy-reasoning-modules ~/.claude/skills/dspy-reasoning-modulesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# DSPy Reasoning Modules
## Goal
Choose the appropriate DSPy reasoning module for long-context exploration, code-assisted reasoning, or parallel execution.
## Module Selection
| Module | Use it for | Important constraint |
|--------|------------|----------------------|
| `dspy.RLM` | Exploring very large contexts with iterative REPL code and recursive sub-LM calls | Experimental; requires Deno by default |
| `dspy.ProgramOfThought` | Solving tasks by generating and executing Python | Requires Deno by default |
| `dspy.CodeAct` | Combining generated Python with predefined tool functions | Functions only; requires Deno |
| `dspy.Parallel` | Running `(module, example)` pairs concurrently | Tune threads and error handling |
## RLM for Large Contexts
`RLM` treats long inputs as external data in a sandbox rather than placing the full context in each LM prompt.
```python
import dspy
dspy.configure(lm=dspy.LM("openai/gpt-4o"))
rlm = dspy.RLM(
"document, question -> answer",
max_iterations=12,
max_llm_calls=30,
sub_lm=dspy.LM("openai/gpt-4o-mini"),
)
result = rlm(
document=very_long_document,
question="What were the main revenue drivers?",
)
print(result.answer)
```
Use `max_iterations`, `max_llm_calls`, and `max_output_chars` as explicit cost and output bounds.
## Sandboxed Execution
The default `dspy.PythonInterpreter` uses Deno and Pyodide. It denies host filesystem, environment, and network access unless explicitly enabled.Details
- Skill name
dspy-reasoning-modules- Repository
- OmidZamani/dspy-skills
- Path
skills/dspy-reasoning-modules/SKILL.md- License
- MIT
- Repo updated
- 23 June 2026
- Listed in
- heilcheng/awesome-agent-skills
FAQ
What does the Dspy Reasoning Modules skill do?
Use for DSPy reasoning modules including RLM, ProgramOfThought, CodeAct, Parallel, sandboxed execution, and long-context workflows.
How do I install the Dspy Reasoning Modules 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 Reasoning Modules 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.
Lacan
103dontbesilent2025/claude-skills
拉康式精神分析对话。用拉康理论框架(大他者、欲望、幻象、能指链)进行分析式对话。 触发方式:/lacan、「拉康」、「精神分析对话」 Lacanian psychoanalysis dialogue using Lacanian framework (big Other, desire, fantasy, signifier chain). Trigger: /lacan, "Lacanian analysis", "psychoanalysis dialogue
Dspy Miprov2 Optimizer
125OmidZamani/dspy-skills
Use for MIPROv2, Bayesian optimization, instruction and demo tuning, and high-performance DSPy program optimization.
Megaeth Developer
223NeverSight/learn-skills.dev
End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.