What problem does it solve? Manual prompt engineering is brittle and hard to maintain when building complex AI systems like RAG pipelines, agents, or classifiers. This Skill teaches how to program language models declaratively with DSPy 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 and compose modules like Predict, ChainOfThought, ReAct, and ProgramOfThought into multi-stage pipelines. - Automatic Prompt Optimization: Use optimizers such as BootstrapFewShot, MIPRO, and BootstrapFinetune to improve module performance from training examples and custom metrics. - Use Case: Build a multi-hop RAG system that retrieves documents, generates search queries, and produces answers, then optimize it with BootstrapFewShot on 50 labeled question-answer pairs to measurably improve accuracy. ## Quick Start Use the dspy skill to build a chain-of-thought question answering module and optimize it with BootstrapFewShot on my training examples.