dspy-gepa

Automate DSPy GEPA evaluation and optimization of agent skills from YAML datasets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dspy-ai, pyyaml, jsonschema, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Evaluates and optimizes agent skills using a DSPy-powered GEPA loop to automatically generate, test, and improve skill prompts and scenarios.

Core Features & Use Cases

  • DSPy-powered Generate/Evaluate/Propose/Apply loop for agent skills, enabling end-to-end improvement of skill prompts and scenario pipelines.
  • Loads scenario YAML files as DSPy datasets, scores outputs with pattern-matching metrics, and optimizes prompts via BootstrapFewShot or MIPROv2 teleprompters.
  • Generates new scenario YAML files from skill descriptions to accelerate testing and coverage.

Quick Start

Run the GEPA workflow to generate or optimize scenarios using the provided scripts.

Frequently Asked Questions about dspy-gepa

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

FAQPage Schema
How do I optimize DSPy agent skills automatically?

DSPy skill optimization uses a Generate/Evaluate/Propose/Apply loop to automatically test and refine agent prompts. It loads scenario YAML files as datasets, scores outputs with pattern-matching metrics, and iterates via teleprompter-based optimization.

What is the GEPA loop in DSPy?

The GEPA loop in DSPy is a Generate, Evaluate, Propose, and Apply cycle for agent skills. It generates scenarios, evaluates outputs against pattern-matching metrics, proposes refinements, and applies improvements to skill prompts.

Do I need Python 3.10 to run DSPy teleprompter optimization?

DSPy teleprompter optimization requires Python 3.10 or higher. You also need the dspy-ai, PyYAML, and jsonschema dependencies installed to execute the workflow and process YAML datasets.

Can I use BootstrapFewShot and MIPROv2 teleprompters with YAML datasets?

BootstrapFewShot and MIPROv2 teleprompters optimize prompts from YAML scenario datasets. The workflow loads these files as DSPy datasets, scores them with pattern-matching metrics, and applies the teleprompter to refine skill outputs.

How do I generate new test scenarios for DSPy from a skill description?

Generating new scenario YAML files from skill descriptions accelerates testing and coverage. The workflow reads SKILL.md, references, and scripts to automatically generate DSPy-powered scenarios suitable for evaluation.

What's the best way to evaluate DSPy agent outputs with pattern-matching?

Evaluating DSPy agent outputs with pattern-matching metrics involves loading scenario YAML files as datasets and scoring responses against defined patterns. The GEPA loop then iterates on these scores using teleprompter-based optimization.