What problem does it solve? Manually tuning prompts for complex LLM systems is fragile and hard to reproduce. This Skill teaches how to program language models declaratively with DSPy, replacing hand-written prompts with structured signatures and data-driven automatic optimization. ## Core Features & Use Cases - Declarative Signatures & 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 to improve prompts and generate fine-tuning data from training examples. - Production Pipelines: Build RAG systems, multi-hop retrieval, agents, classifiers, and multi-stage document pipelines with evaluation metrics. - Use Case: Build a RAG question-answering system, define an exact-match metric, then run BootstrapFewShot on 50 examples to automatically generate few-shot demonstrations that raise accuracy without manual prompt edits. ## Quick Start Use the dspy skill to build a chain-of-thought question answering module and optimize it with BootstrapFewShot on my training examples.