Skill · em Dados, IA e pesquisa

dspy

Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming

Procedência

Antes de instalar

4 arquivos · 60,1 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/skills/dspy/.

d=".claude/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Global: instala em ~/.claude/skills/dspy/.

d="$HOME/.claude/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Codex

Neste projeto: instala em .agents/skills/dspy/.

d=".agents/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Global: instala em ~/.agents/skills/dspy/.

d="$HOME/.agents/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Antigravity

Neste projeto: instala em .agents/skills/dspy/.

d=".agents/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Global: instala em ~/.gemini/antigravity-cli/skills/dspy/.

d="$HOME/.gemini/antigravity-cli/skills/dspy"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-dspy"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/references/examples.md" "$u/references/examples.md" \
  -o "$d/references/modules.md" "$u/references/modules.md" \
  -o "$d/references/optimizers.md" "$u/references/optimizers.md"

Peça ao Rook

Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.dspy

Prévia do SKILL.md

---
name: dspy
description: Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming
version: 1.0.0
author: Orchestra Research
license: MIT
tags: [Prompt Engineering, DSPy, Declarative Programming, RAG, Agents, Prompt Optimization, LM Programming, Stanford NLP, Automatic Optimization, Modular AI]
dependencies: [dspy, openai, anthropic]
---

# DSPy: Declarative Language Model Programming

## When to Use This Skill

Use DSPy when you need to:
- **Build complex AI systems** with multiple components and workflows
- **Program LMs declaratively** instead of manual prompt engineering
- **Optimize prompts automatically** using data-driven methods
- **Create modular AI pipelines** that are maintainable and portable
- **Improve model outputs systematically** with optimizers
- **Build RAG systems, agents, or classifiers** with better reliability

**GitHub Stars**: 22,000+ | **Created By**: Stanford NLP

## Installation

```bash
# Stable release
pip install dspy

# Latest development version
pip install git+https://github.com/stanfordnlp/dspy.git

# With specific LM providers
pip install dspy[openai]        # OpenAI
pip install dspy[anthropic]     # Anthropic Claude
pip install dspy[all]           # All providers
```

## Quick Start
…

Ver todo o marketplace