Back to Skills

instructor

davila7
Updated 4 days ago
232 views
18,478
1,685
18,478
View on GitHub
TestingPrompt EngineeringInstructorStructured OutputPydanticData ExtractionJSON ParsingType SafetyValidationStreamingOpenAIAnthropic

About

Instructor is a structured output library that extracts validated data from LLM responses using Pydantic schemas. It automatically retries failed extractions and provides type-safe JSON parsing with streaming support. Use it when you need reliable, validated data extraction from LLMs like OpenAI or Anthropic.

Quick Install

Claude Code

Recommended
Primary
npx skills add davila7/claude-code-templates -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/davila7/claude-code-templates
Git CloneAlternative
git clone https://github.com/davila7/claude-code-templates.git ~/.claude/skills/instructor

Copy and paste this command in Claude Code to install this skill

GitHub Repository

davila7/claude-code-templates
Path: cli-tool/components/skills/ai-research/prompt-engineering-instructor
0
anthropicanthropic-claudeclaudeclaude-code

Related Skills

whisper

Other

Whisper is OpenAI's multilingual speech recognition model for transcription and translation across 99 languages. It handles tasks like speech-to-text, podcast transcription, and processing noisy or multilingual audio. Developers should use it for robust, production-ready automatic speech recognition (ASR).

View skill

grpo-rl-training

Design

This skill provides expert guidance for implementing GRPO (Group Relative Policy Optimization) reinforcement learning fine-tuning using the TRL library. It's designed for training models on tasks requiring structured outputs, verifiable reasoning, or objective correctness metrics like coding or math. Key features include production-ready workflows for custom reward functions and enforcing specific output formats.

View skill

dspy

Meta

DSPy is a framework for building complex AI systems like RAG pipelines and agents using declarative programming. It automatically optimizes prompts and LM calls based on your data, moving beyond manual prompt engineering. Use it to create modular, maintainable, and systematically improved AI applications.

View skill

outlines

Meta

Outlines is a structured generation library that guarantees valid JSON/XML/code outputs by constraining LLM sampling to specific grammars or schemas. It enables type-safe generation using Pydantic models and supports fast inference with local models like Transformers and vLLM. Use this skill when you need to enforce exact output formats and maximize speed for local model deployments.

View skill