A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Production-ready Claude Code skills for building AI agents with Pydantic AI. Includes dependency injection, tools, valid
Production-ready Claude Code skills for building type-safe AI agents with Pydantic AI. Comprehensive reference implementations covering dependency injection, tool calling, structured outputs, streaming, multi-agent orchestration, and LLM evaluation patterns.
Complete reference for building production AI agents with Pydantic AI:
| Pattern | Description |
|---|---|
| Dependency Injection | Type-safe state management with dataclasses |
| System Prompts | Dynamic, context-aware prompt engineering |
| Tool Calling | Function tools with proper context handling |
| Structured Outputs | Pydantic model validation for LLM responses |
| OpenRouter Integration | Multi-model access (GPT-4, Claude, Llama, etc.) |
| Logfire Observability | Debugging, tracing, and monitoring |
| Response Streaming | Real-time token streaming |
| Multi-Agent Systems | Orchestrating specialized agent teams |
| Conversation Memory | Persistent history across turns |
Reference for evaluation-driven AI development:
| Feature | Description |
|---|---|
| Type-Safe Datasets | Structured test case collections |
| Multiple Evaluators | Deterministic, LLM-as-Judge, custom, span-based |
| Logfire Integration | Trace-aware evaluation metrics |
| Best Practices | Evaluation-driven development (EDD) workflows |
# Clone the repository
git clone https://github.com/YOUR_USERNAME/pydantic-ai-skills.git
cd pydantic-ai-skills
# Install with UV
uv sync
pip install -e ".[dev]"
Create a .env file with your API keys (see .env.example):
OPENAI_API_KEY=your_key
OPENROUTER_API_KEY=your_key
LOGFIRE_API_KEY=your_key
Copy the skill directories to your Claude Code skills location:
# Copy skills to Claude Code
cp -r skills/pydantic-ai-agents ~/.claude/skills/
cp -r skills/pydantic-evals ~/.claude/skills/
├── skills/
│ ├── pydantic-ai-agents/
│ │ ├── SKILL.md # Main skill documentation
│ │ └── references/ # 12 reference implementation files
│ └── pydantic-evals/
│ ├── SKILL.md # Main skill documentation
│ └── references/ # Evaluator examples and guides
└── tests/ # Comprehensive test suite
All skill examples are covered by unit tests to ensure every code pattern works correctly. Tests run automatically on every PR via GitHub Actions.
# Run all mocked tests (CI-safe, no API keys needed)
uv run pytest tests/ -v --ignore=tests/integration/
# Run integration tests (requires API keys)
uv run pytest tests/integration/ -v
# Run with coverage
uv run pytest tests/ --cov=skills
Test coverage includes:
All 12 reference files in pydantic-ai-agents (mocked unit tests)
All evaluator examples in pydantic-evals (mocked unit tests)
34 integration tests against real LLMs via OpenRouter covering:
pydantic-ai-agents (18 tests):
| Test File | Reference File | Pattern |
|---|---|---|
test_01_dependencies.py | 01_dependencies.py | Dependency injection |
test_02_prompts.py | 02_prompts.py | Dynamic system prompts |
test_03_tools.py | 03_tools.py | Tool calling |
test_04_validators.py | 04_validators.py | Structured outputs |
test_06_openrouter.py | 06_openrouter.py | OpenRouter provider |
test_07_logfire.py | 07_logfire.py | Logfire patterns |
test_08_streaming.py | 08_streaming.py | Response streaming |
test_09_result_validators.py | 09_result_validators.py | Result validation |
test_10_model_settings.py | 10_model_settings.py | Model settings |
test_11_multi_agent.py | 11_multi_agent.py | Multi-agent systems |
test_12_conversation_history.py | 12_conversation_history.py | Conversation memory |
pydantic-evals (16 tests):
| Test File | Reference File | Pattern |
|---|---|---|
test_01_models.py | models.py | Pydantic models for responses |
test_02_generate_dataset.py | generate_dataset.py | Dataset generation |
test_03_custom_evaluators.py | custom_evaluators.py | Custom evaluator classes |
test_04_add_custom_evaluators.py | add_custom_evaluators.py | Adding evaluators to dataset |
test_05_unit_testing.py | unit_testing.py | Evaluation workflow & assertions |
test_06_compare_models.py | compare_models.py | Model comparison patterns |
# Format code
uv run ruff format .
# Lint code
uv run ruff check .
# Type checking
uv run mypy skills/
These skills help you build:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE for details.
pydantic-ai ai-agents llm claude-code evaluation testing python structured-output tool-calling multi-agent openrouter logfire dependency-injection type-safe
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, bac