dspy

Create declarative language model programs with automatic prompt optimization in DSPy.

2|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/zhuangbiaowei/smart_bot --skill dspy-zhuangbiaowei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy
Source: https://github.com/zhuangbiaowei/smart_bot/tree/main/skills/dspy
Command: npx skills add https://github.com/zhuangbiaowei/smart_bot --skill dspy-zhuangbiaowei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex and time-consuming process of prompt engineering and LM programming, enabling developers to build sophisticated AI systems more efficiently.

Core Features & Use Cases

  • Declarative Programming: Define AI systems using signatures and modules, not manual prompts.
  • Automatic Prompt Optimization: DSPy optimizes prompts using data-driven methods, improving reliability and performance.
  • Modular AI Pipelines: Build reusable components for RAG, agents, and complex workflows.
  • Use Case: Develop a question-answering system that retrieves relevant documents, synthesizes information, and provides accurate answers, all while DSPy automatically tunes the underlying prompts for optimal performance.

Quick Start

Use the dspy skill to create a basic question-answering module.

Frequently Asked Questions about dspy

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

FAQPage Schema
How do I build AI systems without manual prompt engineering?

You can build AI systems without manual prompt engineering by using declarative programming to define modules and signatures, allowing the framework to automatically optimize prompts using data-driven methods.

What is declarative AI programming for language models?

Declarative AI programming involves defining system behavior through signatures and modular pipelines rather than writing manual prompts, enabling automatic prompt optimization and systematic evaluation for language models.

How do I create a RAG pipeline with automatic prompt optimization?

To create a RAG pipeline with automatic prompt optimization, define your retrieval and synthesis modules declaratively, and the framework will automatically tune the underlying prompts for optimal performance.

Can I use this approach to build AI agents and classifiers?

Yes, you can use this modular approach to build AI agents and classifiers by combining reusable components into complex workflows, which are then optimized automatically for reliable performance.

Does declarative LM programming work with various language model providers?

Declarative LM programming supports various language model providers, allowing you to systematically program and evaluate complex AI workflows across different LM backends.

Why should I use declarative programming instead of manual prompt tuning?

Declarative programming replaces manual prompt tuning with data-driven automatic optimization, improving reliability and performance while reducing the complex, time-consuming effort of traditional prompt engineering.