What problem does it solve? Manual prompt engineering is fragile, hard to maintain, and difficult to improve systematically. This Skill teaches how to use DSPy to program language models declaratively and optimize prompts automatically using data-driven methods instead of trial-and-error tuning. ## Core Features & Use Cases - Declarative LM Programming: Define tasks with Signatures (inputs → outputs) and compose them with modules like Predict, ChainOfThought, ReAct, and ProgramOfThought. - Automatic Prompt Optimization: Use optimizers such as BootstrapFewShot, MIPRO, and BootstrapFinetune to improve prompts and generate fine-tuning data from training examples. - Complex AI Pipelines: Build multi-stage RAG systems, tool-using agents, classifiers, and structured extraction pipelines with type-safe Pydantic outputs. - Use Case: Imagine you are building a question-answering system over company documents. Use this Skill to construct a RAG pipeline, define an accuracy metric, and let DSPy automatically optimize the prompts against your training set. ## Quick Start Use the dspy skill to build a chain-of-thought question answering module and optimize it with BootstrapFewShot on my training examples.