Skill · em Dados, IA e pesquisa
instructor
Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library
Procedência
- Origem: davila7/claude-code-templates
- Caminho:
cli-tool/components/skills/ai-research/prompt-engineering-instructor - Versão fixada:
57f899e5394bb8ca166f38eacae8f0853cbfe033 - Licença: MIT
- Espelhado em 25/09/2026
- 4 downloads no Claude Code Templates (lido em 25/09/2026)
Antes de instalar
4 arquivos · 34,9 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/instructor/.
d=".claude/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Global: instala em ~/.claude/skills/instructor/.
d="$HOME/.claude/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Codex
Neste projeto: instala em .agents/skills/instructor/.
d=".agents/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Global: instala em ~/.agents/skills/instructor/.
d="$HOME/.agents/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Antigravity
Neste projeto: instala em .agents/skills/instructor/.
d=".agents/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Global: instala em ~/.gemini/antigravity-cli/skills/instructor/.
d="$HOME/.gemini/antigravity-cli/skills/instructor" u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-instructor" curl -fsSL --create-dirs \ -o "$d/SKILL.md" "$u/SKILL.md" \ -o "$d/references/examples.md" "$u/references/examples.md" \ -o "$d/references/providers.md" "$u/references/providers.md" \ -o "$d/references/validation.md" "$u/references/validation.md"
Peça ao Rook
Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.instructor
Prévia do SKILL.md
---
name: instructor
description: Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library
version: 1.0.0
author: Orchestra Research
license: MIT
tags: [Prompt Engineering, Instructor, Structured Output, Pydantic, Data Extraction, JSON Parsing, Type Safety, Validation, Streaming, OpenAI, Anthropic]
dependencies: [instructor, pydantic, openai, anthropic]
---
# Instructor: Structured LLM Outputs
## When to Use This Skill
Use Instructor when you need to:
- **Extract structured data** from LLM responses reliably
- **Validate outputs** against Pydantic schemas automatically
- **Retry failed extractions** with automatic error handling
- **Parse complex JSON** with type safety and validation
- **Stream partial results** for real-time processing
- **Support multiple LLM providers** with consistent API
**GitHub Stars**: 15,000+ | **Battle-tested**: 100,000+ developers
## Installation
```bash
# Base installation
pip install instructor
# With specific providers
pip install "instructor[anthropic]" # Anthropic Claude
pip install "instructor[openai]" # OpenAI
pip install "instructor[all]" # All providers
```
## Quick Start
### Basic Example: Extract User Data
…