Skip to content

Declarative framework that programs language models with signatures, modules, and automatic prompt optimizers instead of hand-written prompts.

CCM score
53 of 100
skills.sh installs
1.1K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers building AI systems from modules such as Predict, ChainOfThought, ReAct, and ProgramOfThought, plus multi-stage pipelines and RAG
  • Includes optimizers BootstrapFewShot, MIPRO, and BootstrapFinetune that tune prompts or export fine-tuning data from a training set
  • Supports Anthropic Claude, OpenAI, and local Ollama models, configured through dspy.settings.configure
  • Designed for developers who want maintainable, metric-driven LM pipelines rather than manual prompt iteration

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill dspy -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

DSPy: Declarative Language Model Programming

When to Use This Skill

Use DSPy when you need to:

  • Build complex AI systems with multiple components and workflows
  • Program LMs declaratively instead of manual prompt engineering
  • Optimize prompts automatically using data-driven methods
  • Create modular AI pipelines that are maintainable and portable
  • Improve model outputs systematically with optimizers
  • Build RAG systems, agents, or classifiers with better reliability

GitHub Stars: 22,000+ | Created By: Stanford NLP

Installation

# Stable release
pip install dspy

# Latest development version
pip install git+https://github.com/stanfordnlp/dspy.git

# With specific LM providers
pip install dspy[openai]        # OpenAI
pip install dspy[anthropic]     # Anthropic Claude
pip install dspy[all]           # All providers

Quick Start

Basic Example: Question Answering

import dspy

# Configure your language model
lm = dspy.Claude(model="claude-sonnet-4-5-20250929")
dspy.settings.configure(lm=lm)

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI Agents & LLM Apps, Python
First seen
Jun 3, 2026

Questions

What does the DSPy skill help me build?

The DSPy skill covers declarative programming of language models, automatic prompt optimization, modular RAG systems, and agents built with Stanford NLP's DSPy framework. It guides the agent to define signatures and modules instead of hand-writing prompts.

How do I install the DSPy skill?

Run npx -y skills add orchestra-research/ai-research-skills --skill dspy -y in a project to install it. Once installed, the agent can write DSPy programs with signatures, modules such as ChainOfThought and ReAct, and optimizers like BootstrapFewShot and MIPRO.

Which language model providers does the DSPy skill support?

The skill shows configuration for Anthropic Claude, OpenAI, and local models through Ollama, and it lists dspy[openai] and dspy[anthropic] extras for installing provider support. You set the model and API key in the configuration, with ANTHROPIC_API_KEY as an environment variable option.

Where does the DSPy skill sit among AI Agents and LLM Apps skills?

The DSPy skill is in the AI Agents and LLM Apps category on Claude Marketplaces, alongside skills such as microsoft-foundry and azure-ai. It stands out for its focus on optimizing prompts automatically from training data rather than manual prompt tuning.

More from orchestra-research/ai-research-skills

All 92