What problem does it solve? Manual prompt engineering is fragile, hard to maintain, and difficult to improve systematically. This Skill helps you build complex LM-powered systems declaratively and optimize prompts automatically using training data instead of trial-and-error tuning. ## Core Features & Use Cases - Declarative Signatures and Modules: Define tasks as input-output signatures and compose them with Predict, ChainOfThought, ReAct, and ProgramOfThought modules. - Automatic Prompt Optimization: Use BootstrapFewShot, MIPRO, and BootstrapFinetune optimizers to improve prompts and generate fine-tuning data from labeled examples. - Complex Pipelines: Build multi-stage RAG systems, tool-using agents, classifiers, and structured extraction pipelines with type-safe Pydantic outputs. - Use Case: Build a multi-hop RAG question-answering system, then optimize it with BootstrapFewShot on 50 labeled examples to measurably improve answer accuracy without rewriting prompts by hand. ## Quick Start Use the dspy skill to build a chain-of-thought question answering module and optimize it with BootstrapFewShot on my training examples.