dspy

Define type-safe LM task signatures and automatically optimize prompts with teleprompters.

1|Updated Jun 25, 2026
One-click install
npx skills add https://github.com/Signmanal/VIGIL --skill dspy-signmanal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/Signmanal/VIGIL/tree/main/optional-skills/mlops/research/dspy
Command: npx skills add https://github.com/Signmanal/VIGIL --skill dspy-signmanal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone work of manual prompt engineering and fragile, hard-to-maintain language model pipelines, enabling developers to build reliable AI systems faster.

Core Features & Use Cases

  • Declarative LM Programming: Define AI tasks with type-safe signatures that specify inputs and outputs, no manual prompt crafting required.
  • Automatic Prompt Optimization: Use data-driven teleprompters to automatically tune prompts and few-shot examples for better performance on your specific task.
  • Modular Pipeline Building: Compose reusable components for RAG systems, AI agents, text classifiers, and multi-stage reasoning workflows that are portable across different LLM providers.
  • Use Case: For example, use this Skill to build a RAG system that automatically optimizes its retrieval and generation prompts using your internal document dataset, cutting manual tuning time from hours to minutes.

Quick Start

Use the dspy skill to create an optimized question-answering pipeline that uses chain-of-thought reasoning and automatically improves its prompts with your provided training examples.

Frequently Asked Questions about dspy

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

FAQPage Schema
How do I stop manually writing prompts for my language model pipelines?

To stop manual prompt engineering, use a declarative programming framework that defines type-safe task signatures for inputs and outputs, letting the system automatically tune prompts instead of requiring hand-crafted instructions.

What is automatic prompt optimization and how does it work with RAG systems?

Automatic prompt optimization uses data-driven teleprompters to tune retrieval and generation prompts. It works with RAG systems by systematically improving prompt performance using your provided training examples and document datasets.

How do I build a multi-stage reasoning workflow that is portable across different LLM providers?

Build multi-stage reasoning workflows by composing modular, reusable components within a declarative LM programming framework, ensuring your AI pipelines remain portable and reproducible across different LLM providers.

Can I optimize AI agent development pipelines using my own training examples?

Yes, you can optimize AI agent development by using data-driven teleprompters that automatically tune prompts and few-shot examples, cutting manual tuning time from hours to minutes using your specific training data.

Does declarative AI programming require manual few-shot example selection?

No, declarative AI programming eliminates manual few-shot example selection by using automatic prompt optimization to generate and tune few-shot examples data-dependently, replacing fragile manual language model pipeline maintenance.

When should I avoid manual prompt engineering for text classifiers?

You should avoid manual prompt engineering for text classifiers when tasks require systematic prompt optimization, multi-stage reasoning, or modular component composition, as manual tuning becomes fragile and hard to maintain at scale.