dspy-ruby
This skill should be used when working with DSPy.rb, a Ruby framework for building type-safe, composable LLM applications. Use this when implementing predictable AI features, creating LLM signatures and modules, configuring language model providers (OpenAI, Anthropic, Gemini, Ollama), building agent systems with tools, optimizing prompts, or testing LLM-powered functionality in Ruby applications.
npx skills add majiayu000/claude-skill-registry --skill dspy-ruby --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# DSPy.rb Expert ## Overview DSPy.rb is a Ruby framework that enables developers to **program LLMs, not prompt them**. Instead of manually crafting prompts, define application requirements through type-safe, composable modules that can be tested, optimized, and version-controlled like regular code. This skill provides comprehensive guidance on: - Creating type-safe signatures for LLM operations - Building composable modules and workflows - Configuring multiple LLM providers - Implementing agents with tools - Testing and optimizing LLM applications - Production deployment patterns ## Core Capabilities ### 1. Type-Safe Signatures Create input/output contracts for LLM operations with runtime type checking. **When to use**: Defining any LLM task, from simple classification to complex analysis. **Quick reference**: ```ruby class EmailClassificationSignature < DSPy::Signature description "Classify customer support emails" input do const :email_subject, String const :email_body, String end output do const :category, T.enum(["Technical", "Billing", "General"]) const :priority, T.enum(["Low", "Medium", "High"]) end end ``` **Templates**: See `assets/signature-template.rb` for comprehensive
- Overview
- Core Capabilities
- 1. Type-Safe Signatures
- 2. Composable Modules
- 3. Multiple Predictor Types
- 4. LLM Provider Configuration
- 5. Multimodal & Vision Support
- 6. Testing LLM Applications
- 7. Optimization & Improvement
- 8. Observability & Monitoring
- Quick Start Workflow
- For New Projects
- For Rails Applications
- Common Patterns
gem install dspy dspy-openai # or dspy-anthropic, dspy-gemini
What does the dspy-ruby skill do?
This skill should be used when working with DSPy.rb, a Ruby framework for building type-safe, composable LLM applications. Use this when implementing predictable AI features, creating LLM signatures and modules, configuring language model providers (OpenAI, Anthropic, Gemini, Ollama), building agent systems with tools, optimizing prompts, or testing LLM-powered functionality in Ruby applications.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill dspy-ruby --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
