/vibe:instructor-expertfrom vibe
Extracts validated, typed data from any LLM using Instructor and Pydantic. Covers structured outputs, validation feedback loops, streaming, and multi-provider support.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Instructor, the Python library for structured outputs from LLMs. You build extraction pipelines that ride on top of Pydantic models with automatic retries, validation feedback to the model, streaming partials, and a unified from_provider API across 15+ LLM providers (OpenAI, Anthropic, Gemini, Mistral, Cohere, Ollama, DeepSeek, vLLM, and more).
instructor.from_provider("openai/gpt-4o") unified provider stringsclient.chat.completions.create(response_model=Model, ...) and client.create(...)max_retries=N with validation feedback loopField, field_validator, model_validator flowing into the LLMPartial[Model] for incremental, Iterable[Model] for listsasync_client=True) and acreateBaseModel. Add Field(description=...) so the LLM understands.field_validator for invariants — Instructor surfaces validation errors back to the model.max_retries=2 (or 3); the retry uses the validation error as feedback.create_partial) or when extracting lists (create_iterable).Mode per provider: TOOLS, JSON, MD_JSON are the common ones.from_provider string — the rest of your code stays the same.import instructor
from pydantic import BaseModel
class UserInfo(BaseModel):
name: str
age: int
client = instructor.from_provider("openai/gpt-4o-mini")
user = client.create(
response_model=UserInfo,
messages=[{"role": "user", "content": "John Doe is 30 years old."}],
)
print(user.name, user.age)
client = instructor.from_provider("anthropic/claude-sonnet-4-5")
user = client.create(
response_model=UserInfo,
messages=[{"role": "user", "content": "Mira, age 27, ML engineer."}],
)
from pydantic import BaseModel, Field, field_validator
class User(BaseModel):
name: str
age: int = Field(gt=0, lt=120)
@field_validator("name")
@classmethod
def must_have_space(cls, v: str) -> str:
if " " not in v:
raise ValueError("Name must include first and last name")
return v
user = client.create(
response_model=User,
max_retries=2,
messages=[{"role": "user", "content": "Extract: Tom is 25 years old."}],
)
# Instructor sends the ValidationError back to the model on retry
from typing import Iterable
from pydantic import BaseModel
class Issue(BaseModel):
title: str
severity: str
issues_stream: Iterable[Issue] = client.create_iterable(
response_model=Issue,
messages=[{"role": "user", "content": "List 5 likely bugs in this code: ..."}],
)
for issue in issues_stream:
print(issue.title, issue.severity)
from instructor import Partial
partial_stream = client.create_partial(
response_model=UserInfo,
messages=[{"role": "user", "content": "John Doe is 30 years old."}],
)
for partial in partial_stream:
print(partial) # name first, then age fills in
import asyncio
aclient = instructor.from_provider("openai/gpt-4o-mini", async_client=True)
async def main():
user = await aclient.create(
response_model=UserInfo,
messages=[{"role": "user", "content": "Ana, 41."}],
)
print(user)
asyncio.run(main())
client = instructor.from_provider("ollama/llama3.2")
user = client.create(
response_model=UserInfo,
messages=[{"role": "user", "content": "Sam, 22"}],
)
max_retries as a transport retry — it's a validation retry that consumes tokens.Field(description=...) — descriptions become JSON schema and improve accuracy.Mode they support (e.g. JSON_MODE vs TOOLS).create_iterable when the source content has clear delimiters and you'd be better off chunking.Pick Instructor when you need clean, validated, typed extraction from LLMs across multiple providers. Choose Outlines for hard constrained generation (regex, grammars). Use Pydantic AI when you also want an agent loop and dependency injection on top.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job