intertwine avatar

Dspy Advanced Workflow

This is the DSPy orchestration skill you reach for when you're building a real pipeline from scratch, not just prototyping one predictor. It walks you through the seven-step loop: spec out your task, write the typed signature and module, split train and validation data, write a rich metric that returns feedback (not just a score), baseline it, run GEPA optimization with a reflection LM, then export the artifact. The template is opinionated about details that matter: valset should be separate and representative, the metric must return a dspy.Prediction object or aggregation breaks, and you should always baseline before optimizing so you have a claim to make. If you're saying "end to end" or "from scratch," this is the entry point.

GitHub stars
250
last updated
May 25, 2026

Install

$ npx -y skills add intertwine/dspy-agent-skills --skill dspy-advanced-workflow --agent claude-code

Installs into .claude/skills of the current project.

Files

DSPy Advanced Workflow (2026)

This skill runs the seven-step loop that turns a natural-language task description into an optimized, saved, deployable DSPy program. Use the relevant steps in order. Stop at a validated baseline for a prototype; optimizer runs require an appropriate authorized budget and evidence of need. Exporting a local artifact does not authorize deployment.

The seven steps

1. Spec

Rephrase the user's task in one sentence. Identify inputs, outputs, the quality axis that matters, and any constraints (latency, cost, tool access, context size). Pick predictor shape:

Task shapePredictor
Single-step structured I/Odspy.Predict / dspy.ChainOfThought
Tool use / multi-stepdspy.ReAct
Code executiondspy.ProgramOfThought
Long context / codebasedspy.RLM → dspy-rlm-module

2. Program

Write the typed dspy.Signature + dspy.Module subclass per dspy-fundamentals. No hard-coded prompts. Keep predictors named so GEPA can target them.

3. Data

Sponsors

Details

Repository
github.com/intertwine/dspy-agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Release Management, Automation & Workflows
License
MIT
First seen
Jun 11, 2026

More from intertwine/dspy-agent-skills

All 5
1intertwine avatardspy-evaluation-harnessintertwine/dspy-agent-skillsBuild DSPy evaluation harnesses with rich-feedback metrics that are essential for GEPA optimization. Use when writing a metric function, calling dspy.Evaluate, 0skills.sh installs
2kubesphere avatarwhizard-notificationkubesphere/kubesphereThis handles the notification layer for KubeSphere's observability stack, routing alerts from Prometheus, Kubernetes events, audit logs,...0skills.sh installs
3microck avataraws-cdk-developmentmicrock/ordinary-claude-skillsAWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implemen0skills.sh installs
4microck avataraws-cost-operationsmicrock/ordinary-claude-skillsThis skill provides AWS cost optimization, monitoring, and operational best practices with integrated MCP servers for billing analysis, cost estimation, observa0skills.sh installs
5noobnooc avatarwtfnoobnooc/agentPre-launch and pre-commit audit for vibe coding projects. Use when asked to check whether a project is ready to ship, deploy, merge, or commit, especially for c0skills.sh installs
6noobnooc avatarwtfnoobnooc/noobnoocPre-launch and pre-commit audit for vibe coding projects. Use when asked to check whether a project is ready to ship, deploy, merge, or commit, especially for c0skills.sh installs