dspy-ruby

dspy-ruby is a skill for Claude Code, Codex from davekilleen/Dex. It costs 81 tokens per session (3,839 once invoked), scanned A, original, no licence file.

A guide for using DSPy.rb, a Ruby framework for building structured applications that use large language models.

In plain words
What is it for?
Use it to create model input and output definitions, build reusable AI components, configure providers such as OpenAI or Anthropic, and develop agent systems.
Why use it?
It helps make AI features more predictable and keeps their building blocks organised. It also covers connecting the application to different language-model providers.

Skill for Claude CodeCodex

Part of the compound-engineering plugin — 15 skills, 19 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/davekilleen/dex/dspy-ruby
Any agent
npx skills add davekilleen/Dex --skill dspy-ruby
Clone the repo
git clone --depth 1 https://github.com/davekilleen/Dex

Made for: Claude Code, Codex.

Or install compound-engineering, the plugin that ships this one along with the rest of its 15 skills, 19 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dspy-ruby

README.md
[![agentmods](https://agentmods.dev/badge/skills/davekilleen/dex/dspy-ruby.svg)](https://agentmods.dev/skills/davekilleen/dex/dspy-ruby)
Your own site
<a href="https://agentmods.dev/skills/davekilleen/dex/dspy-ruby"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/dspy-ruby.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00081 $0.03839
Opus 5 $0.00041 $0.01920
Sonnet 5 $0.00016 $0.00768
Haiku 4.5 $0.00008 $0.00384

Measured yesterday against content hash 303a4eb7783e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dspy-ruby scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/config-template.rb, assets/module-template.rb, assets/signature-template.rb), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/plugins/compound-engineering/skills/dspy-ruby/SKILL.md · 595 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 595 lines · 81 tokens per session scan A 303a4eb7783e

Subscribe to this mod's changes

dspy-ruby is a skill published in the GitHub repository davekilleen/Dex (474 stars, last pushed today), with no licence file. It adds 81 tokens to every session and 3,839 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

review-code

Deep code quality review for the inspecto monorepo. Use this skill whenever the user wants to review, audit, or assess the quality of code in the inspecto project — even if they just say "check this file", "is this well written", "review my implementation", or "does this follow the architecture?". Accepts a file path…

inspecto-dev/inspecto · 159 tokens

vscode-ext-analyze-params

Analyze the parameter signature of a specific VSCode extension command by reverse-engineering the minified extension.js source code. Given an extension ID and a command name, extracts the registerCommand callback's formal parameters, infers types from runtime type-checking patterns (typeof, Array.isArray), and checks…

inspecto-dev/inspecto · 133 tokens

vscode-ext-context

Extract raw source code context around a specific VSCode extension command's registerCommand call. Outputs the surrounding N characters of minified code for manual inspection. Use when the user wants to see the actual source code around a command registration, needs to understand the internal implementation details…

inspecto-dev/inspecto · 98 tokens

vscode-ext-list-commands

List all commands registered by a VSCode extension, including hidden ones not declared in package.json. Given an extension ID (e.g. anthropic.claude-code), finds the installed extension, extracts declared commands from package.json and runtime-registered commands from extension.js. Use when the user asks: what…

inspecto-dev/inspecto · 91 tokens

project-brain

Triggers (all require explicit user request — do NOT activate just because a brain/ folder exists): (1) The user wants to set up project-level memory ("set up project brain", "scaffold project context", "init project brain", "建项目脑"). (2) The user is in a directory containing brain/ AND explicitly asks to resume /…

Ethan-YS/project-brain · 237 tokens

create-chatccc-feishu-app

Create, clone, or configure a Feishu enterprise self-built bot application for ChatCCC. Use when asked to create a ChatCCC Feishu app, imitate an existing lowercase chatccc app, prepare a bot for another computer, or configure its bot capability, im:/cardkit: permissions, events, credentials, version, and internal…

wzj998/ChatCCC · 85 tokens