dspy

Optimize declarative language model programs with automated improvement workflows.

Updated May 5, 2026
One-click install
npx skills add https://github.com/yanochka11/harness_bro --skill dspy-yanochka11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/yanochka11/harness_bro/tree/main/.claude/skills/ported/dspy
Command: npx skills add https://github.com/yanochka11/harness_bro --skill dspy-yanochka11

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the challenge of manually engineering and maintaining prompts by enabling systematic optimization of declarative language model programs.

Core Features & Use Cases

  • Declarative LM Programming: Build modular AI workflows with DSPy signatures, modules, and composable pipelines instead of fragile prompt templates.
  • Automatic Optimization: Improve prompts, few-shot examples, and model workflows using optimizers such as BootstrapFewShot and MIPRO.
  • Use Case: Build and optimize RAG systems, AI agents, classifiers, or multi-stage language model applications with measurable improvements.

Quick Start

Use the dspy skill to create and optimize a RAG pipeline that improves answer quality with training examples.

Frequently Asked Questions about dspy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize LLM pipelines without manual prompt engineering?

You can optimize LLM pipelines by using declarative programming to replace manual prompt engineering with automated improvement workflows. This approach applies optimizers like BootstrapFewShot to systematically enhance language model programs using training data.

What is declarative language model programming for AI agents?

Declarative language model programming is building modular AI workflows using signatures and composable pipelines instead of fragile prompt templates. It allows you to construct AI agents, classifiers, and RAG systems through structured, reusable program design.

Can I use automated optimization for RAG systems and multi-stage LM applications?

Yes, automated optimization applies directly to RAG systems, AI agents, classifiers, and multi-stage language model applications. It improves prompts, few-shot examples, and model workflows using algorithms such as BootstrapFewShot and MIPRO with measurable evaluation metrics.

Do I need evaluation metrics to build reliable language model pipelines?

Yes, evaluation metrics are required alongside modular program design and optimization algorithms to build reliable language model pipelines. These metrics drive the automated improvement workflows that replace manual prompt tuning with data-driven optimization.

Why does manual prompt engineering fail for complex AI agents?

Manual prompt engineering fails because it is difficult to maintain and scale for complex AI agents. Declarative language model programs solve this by applying systematic, data-driven optimization algorithms to automatically improve prompts and few-shot examples.

What is the best way to improve few-shot examples in language model programs?

The best way to improve few-shot examples is using automated optimizers like BootstrapFewShot and MIPRO within a declarative LM programming framework. This replaces manual tuning with data-driven workflows that yield measurable improvements across multi-stage applications.