arxiv
Search and retrieve academic papers from arXiv using their free REST API. No API key needed.
Structured LLM outputs with Instructor — Pydantic models as response schemas for OpenAI, Anthropic, and any OpenAI-compatible API.
$ npx -y skills add alexai-mcp/hermes-ccc --skill instructor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/instructorContext preview
The summary Claude sees to decide when to auto-load this skill.
Structured LLM outputs with Instructor — Pydantic models as response schemas for OpenAI, Anthropic, and any OpenAI-compatible API.
name: instructor
description: Structured LLM outputs with Instructor — Pydantic models as response schemas for OpenAI, Anthropic, and any OpenAI-compatible API.
version: 1.0.0
author: hermes-CCC (ported from Hermes Agent by NousResearch)
license: MIT
metadata:
hermes:
tags: [MLOps, Instructor, Structured-Output, Pydantic, LLM, Extraction]
related_skills: [vllm]Get type-safe, validated Pydantic objects from any LLM instead of raw strings.
pip install instructor pydantic pip install anthropic # or openai
---
import anthropic
import instructor
from pydantic import BaseModel
client = instructor.from_anthropic(anthropic.Anthropic())
class UserProfile(BaseModel):
name: str
age: int
skills: list[str]
experience_years: int
profile = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Extract: John is a 32-year-old Python developer with 8 years experience in ML and DevOps."
}],
response_model=UserProfile,
)
print(profile.name) # "John"
print(profile.age) # 32
print(profile.skills) # ["Python", "ML", "DevOps"]
print(profile.experience_years) # 8---
import openai
import instructor
client = instructor.from_openai(openai.OpenAI())
result = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "..."}],
response_model=UserProfile,
)---
from pydantic import BaseModel, Field
from typing import Optional
class Address(BaseModel):
street: str
city: str
country: str
class Company(BaseModel):
name: str
industry: str
founded_year: int
headquarters: Address
employee_count: Optional[int] = None
class ResearchPaper(BaseModel):
title: str
authors: list[str]
abstract: str
key_findings: list[str] = Field(description="3-5 bullet points")
methodology: str
year: int---
from pydantic import BaseModel, field_validator, Field
class SentimentAnalysis(BaseModel):
sentiment: str = Field(description="positive, negative, or neutral")
confidence: float = Field(ge=0, le=1)
reasoning: str
@field_validator("sentiment")
def validate_sentiment(cls, v):
if v not in ["positive", "negative", "neutral"]:
raise ValueError("Must be positive, negative, or neutral")
return v---
from instructor import Partial
for partial_profile in client.messages.stream(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "..."}],
response_model=Partial[UserProfile],
):
print(partial_profile) # updates as tokens arrive---
from typing import Iterable
class Contact(BaseModel):
name: str
email: str
phone: Optional[str]
# Extract multiple contacts from one text
class ContactList(BaseModel):
contacts: list[Contact]
text = """
Alice: alice@example.com, 555-1234
Bob: bob@example.com
Carol: carol@example.com, 555-5678
"""
result = client.messages.create(
model="claude-haiku-4-5",
max_tokens=512,
messages=[{"role": "user", "content": f"Extract contacts:\n{text}"}],
response_model=ContactList,
)
for contact in result.contacts:
print(contact.name, contact.email)---
client = instructor.from_openai(
openai.OpenAI(
base_url="http://localhost:8000/v1",
api_key="not-needed"
),
mode=instructor.Mode.JSON,
)---
Hermes Agent, faithfully ported to Claude Code Channel (CCC). hermes-CCC brings the power of Hermes Agent by NousResearch into Claude Code's native skill system — no separate process, no OAuth, no lock-in. Everything runs inside Claude Code.
Search and retrieve academic papers from arXiv using their free REST API. No API key needed.
Query Base (Ethereum L2) blockchain data — wallet balances, token info, transactions, gas analysis, contract inspection. No API…
Monitor and summarize blog posts, RSS feeds, and web content for research and staying current with topics.
Open-source embedding database for RAG — store embeddings, vector search, metadata filtering. Simple API, scales from notebook to…
Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile…
Free web search via DuckDuckGo - no API key needed. Text, news, images. Use as fallback when other search tools unavailable.