Dspy Agent Skills

by intertwine• 278•• Scanned•Claim this listing•Request removal

Production-grade DSPy 3.2.x agent skills + validated end-to-end examples for Claude Code and Codex CLI — fundamentals, evaluation, GEPA, BetterTogether, and RLM.

Dspy Agent Skills is an open-source agent skill by intertwine, written mainly in Python, with 278 GitHub stars and the MIT license. Its code was last updated Sep 6, 2026.

DSPy Agent Skills

DSPy 3.2.x

Production-grade DSPy 3.2.x skills for coding agents. A synthesized, spec-compliant pack of five agent skills that turns Claude Code, Codex CLI, and any other agentskills.io-compatible agent into a DSPy expert.

  • ✅ Validated against DSPy 3.2.1 (the real API, not inferred from stale docs)
  • ✅ Single source of truth for both Claude Code and Codex CLI
  • ✅ Progressive disclosure (short SKILL.md + deep reference.md)
  • ✅ Runnable example_*.py scripts with offline --dry-run
  • ✅ Includes a DSPy 3.2.x BetterTogether chaining example
  • ✅ Plugin manifest + marketplace manifest for one-click install
  • ✅ Validation tests for frontmatter spec, JSON schema, Python AST, skill-doc correctness, and version alignment

What's inside

SkillWhen it auto-invokes
dspy-fundamentalsAny new DSPy code: Signatures, Modules, Predict/ChainOfThought/ReAct, save/load
dspy-evaluation-harnessWriting metrics, splitting dev/val sets, calling dspy.Evaluate
dspy-gepa-optimizerOptimizing/compiling DSPy programs with dspy.GEPA
dspy-rlm-moduleLong context, codebase QA, recursive exploration via dspy.RLM
dspy-advanced-workflowEnd-to-end builds — orchestrates the other four

Install

Claude Code (via marketplace)

/plugin marketplace add intertwine/dspy-agent-skills
/plugin install dspy-agent-skills@dspy-agent-skills

Agent Skills CLI (npx skills)

npx skills add intertwine/dspy-agent-skills --list
npx skills add intertwine/dspy-agent-skills --skill '*' -a codex -y

The Vercel skills CLI currently expects a GitHub owner/repo, URL, well-known HTTPS endpoint, or local path as its source. The bare form npx skills add dspy-agent-skills is not resolvable unless the upstream CLI adds a source alias, so use intertwine/dspy-agent-skills.

Claude Code + Codex (repo checkout)

git clone https://github.com/intertwine/dspy-agent-skills
cd dspy-agent-skills
./scripts/install.sh           # symlinks into ~/.claude/skills/ and ~/.agents/skills/

Flags: --claude-only, --codex-only, --copy (copy instead of symlink), --uninstall, --dry-run.

Manual

Drop skills/* into ~/.claude/skills/ (Claude Code) or ~/.agents/skills/ (Codex CLI). See docs/installation.md for all options.

Five-second demo

In your agent, say:

"Build a DSPy sentiment classifier, optimize it with GEPA, and save the artifact."

The agent auto-loads dspy-advanced-workflow, which chains the other skills and outputs a full baseline → GEPA → export pipeline. No further prompting needed.

End-to-end examples (current committed artifacts)

Three runnable demos under examples/ exercise every skill against real LMs and ship with committed baseline vs. GEPA-optimized numbers plus explicit 3.1.3 vs. 3.2.0 comparison notes.

ExampleArtifact DSPyTask LMBaselineOptimizedΔStatus
01-rag-qa3.2.0Ministral 3B 251280.47100.00+19.53Clean comparison refreshed on 2026-04-28
02-math-reasoning3.2.0Ministral 3B 251285.0093.33+8.33Refreshed on 2026-04-21
03-invoice-extraction3.1.3Liquid LFM 2.5 1.2B (free)0.8330.931+0.098Historical artifact retained

The refreshed 01 and 02 artifacts use the paid pair openrouter/mistralai/ministral-3b-2512 + openrouter/qwen/qwen3-30b-a3b-instruct-2507. 03 stays on its historical DSPy 3.1.3 artifact because a clean DSPy 3.2.0 baseline on the same Liquid/Nemotron pair already reached 0.944, leaving little useful headroom for a replacement GEPA artifact. See examples/README.md and each example's version_comparison.md for the exact commands and caveats.

Grounding

Every API claim is grounded in:

Development

# Run validation suite
uv run --with pytest python -m pytest tests/ -v

# Smoke-test every example offline (no API key needed)
for f in skills/*/example_*.py; do uv run --with dspy python "$f" --dry-run; done

# Validate the current DSPy API surface used by these skills
env -u UV_EXCLUDE_NEWER uv run --with dspy==3.2.1 python scripts/check_dspy_surface.py

# Live GEPA run (requires OPENAI_API_KEY)
cd skills/dspy-advanced-workflow
OPENAI_API_KEY=... uv run --with dspy python example_pipeline.py --auto light

If uv run --with dspy resolves an older DSPy release instead of the current 3.2.1 wheel, check whether UV_EXCLUDE_NEWER or a stale package mirror is hiding the new release. The exact 3.2.1 override we validated for this repo is:

env -u UV_EXCLUDE_NEWER uv run --with dspy==3.2.1 python -c 'import dspy; print(dspy.__version__)'

Compatibility

  • DSPy: 3.2.x (tested against 3.2.1; committed example artifacts remain explicitly labeled by the DSPy version that produced them)
  • Claude Code: current (skill spec as of 2026-04-17)
  • Codex CLI: current Agent Skills format
  • Python: 3.10+
  • Deno: required only for dspy.RLM examples (Pyodide sandbox)

Layout

dspy-agent-skills/
├── .claude-plugin/
│   ├── plugin.json
│   └── marketplace.json
├── skills/
│   ├── dspy-fundamentals/{SKILL.md, reference.md, example_qa.py}
│   ├── dspy-evaluation-harness/{SKILL.md, reference.md, example_metric.py}
│   ├── dspy-gepa-optimizer/{SKILL.md, reference.md, example_gepa.py}
│   ├── dspy-rlm-module/{SKILL.md, reference.md, example_rlm.py}
│   └── dspy-advanced-workflow/{SKILL.md, reference.md, example_pipeline.py}
├── scripts/install.sh           # dual-target installer
├── tests/                       # spec validators
├── docs/{installation,usage,CHANGELOG}.md
├── README.md  LICENSE  .gitignore

Version

v0.2.3 • Targets DSPy 3.2.x

License

MIT — see LICENSE.

Credits

Draft contributors: Bryan Young (@intertwine) with Grok (xAI). Validation, spec-alignment, and dual-agent packaging: Claude Opus 4.7, April 2026.

Dspy Agent Skills alternatives

View more →

Similar agent skills in Learning Resources, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Dspy Agent Skills (this page)
intertwine
278MITSep 6, 2026Scanned, no flagged issues
Autoharness
tigerless-labs
11kMITOct 30, 2026Scanned, no flagged issues
Xget
xixu-me
8.2kAGPL-3.0Nov 1, 2026Scanned, no flagged issues
Skills
antfu
6kMITOct 30, 2026Scanned, no flagged issues
SwiftUI Agent Skill
AvdLee
3.8kMITOct 6, 2026Scanned, no flagged issues
One Skill To Rule Them All
rebelytics
3.7kCC-BY-4.0Oct 28, 2026Scanned, no flagged issues