dspy

Build declarative language model pipelines with signatures, modules, and teleprompters.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

DSPy helps you replace brittle manual prompt crafting with a structured way to build, test, and improve language model workflows. It is useful when you need repeatable AI behavior across retrieval, reasoning, classification, and tool-using tasks.

Core Features & Use Cases

  • Declarative task design with clear input and output signatures.
  • Composable modules for prediction, chain-of-thought reasoning, code-based reasoning, retrieval, and agent workflows.
  • Prompt and pipeline optimization with teleprompters such as BootstrapFewShot, MIPRO, COPRO, and KNNFewShot.
  • Use cases include RAG systems, research agents, structured extraction, math solving, customer support bots, and batch document processing.

Quick Start

Ask me to turn your language model task into a DSPy module, choose the right signature and optimizer, and adapt it to your 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 language model prompts without manual guesswork?

You can optimize language model prompts declaratively by defining input and output signatures, then using teleprompters like BootstrapFewShot or MIPRO to automatically improve prompts, demonstrations, and validation metrics.

What is declarative programming for AI pipelines and when should I use it?

Declarative programming for AI pipelines replaces brittle manual prompt crafting with structured signatures and composable modules. Use it when you need repeatable AI behavior across retrieval, reasoning, classification, and tool-using tasks.

How do I build a RAG system with structured prompt optimization?

Build a RAG system by defining declarative retrieval and prediction modules with clear signatures, then apply teleprompters to optimize the pipeline using your training examples and validation metrics.

Can I create tool-using agents and multi-stage reasoning workflows?

Yes, you can create tool-using agents and multi-stage reasoning workflows by composable modules for chain-of-thought, code-based reasoning, and retrieval, all optimized through teleprompters using specific metrics.

Do I need training examples to use automated prompt optimization?

Yes, automated prompt optimization requires training examples and validation metrics to adapt the language model pipeline, as teleprompters use these demonstrations to improve your prompts and overall workflow performance.

What is the best way to replace manual prompt engineering for batch document processing?

Replace manual prompt engineering for batch document processing by building declarative language model pipelines with structured signatures, composable modules, and teleprompters to ensure repeatable behavior and optimized performance.