dspy

Compile declarative language model calls into self-improving pipelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dspy, and includes references (resource) components.

What problem does it solve?

This Skill solves the fragility and manual effort of traditional prompt engineering by allowing you to program language model workflows declaratively and optimize them automatically using data-driven methods.

Core Features & Use Cases

  • Declarative Programming: Define AI tasks as signatures (input/output structures) rather than brittle prompt strings.
  • Automatic Optimization: Use built-in teleprompters to compile your modules and improve performance based on your specific training data.
  • Modular Pipelines: Build complex, maintainable AI systems like RAG, agents, and classifiers that are portable across different language models.

Quick Start

Use the dspy skill to optimize a chain of thought module for question answering using the provided training dataset.

Frequently Asked Questions about dspy

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

FAQPage Schema
How do I automate prompt engineering for LLM workflows?

Declarative programming automates prompt engineering by compiling language model calls into self-improving pipelines. You define tasks as input and output signatures, then use built-in teleprompters to optimize few-shot example selection based on training data.

What is declarative programming for AI pipelines?

Declarative programming for AI pipelines defines language model tasks as structural signatures rather than brittle prompt strings. This approach allows you to build modular, maintainable AI systems like RAG and agents that are portable across different language models.

How do I optimize few-shot examples for RAG applications?

You optimize few-shot examples for RAG applications by using built-in teleprompters to compile your modules. This data-driven method automatically selects examples to improve performance based on your specific training datasets.

Do I need training datasets to build self-optimizing AI pipelines?

Yes, you need training datasets to execute systematic performance optimization. The built-in teleprompters use your training data to compile declarative language model modules and automatically improve pipeline performance through data-driven methods.

Can I use declarative programming for complex reasoning agents?

Yes, declarative programming applies to building complex reasoning agents and modular AI systems. Defining tasks as structural signatures allows you to construct maintainable reasoning workflows that are portable across different language models.