Claude Marketplaces
SkillsMCP serversMarketplacesPluginsDigestToolsAdvertise
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Plugins
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index
  • Plugin index

Site

  • About
  • Tools
  • Submit
  • Advertise
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
by Mert Düzgün
Skills/Backend & APIs
existential-birds avatar

Pydantic Ai Testing

existential-birds/beagle

This walks you through the four main ways to test PydanticAI agents without burning API credits on every test run. TestModel gives you deterministic responses, FunctionModel lets you write custom logic that inspects messages and decides what to return, VCR cassettes record and replay real API calls, and inline snapshots auto-update your assertions. The gates section is worth reading if you use VCR or snapshots, it's a four-step checklist that keeps you from accidentally rewriting files you didn't mean to touch. Good coverage of tool testing and dependency mocking too. If you're writing agents in production, you'll use at least two of these patterns.

skills.sh installs
146
GitHub stars
85
last updated
Aug 21, 2026
View on GitHubSave

Install

$ npx -y skills add existential-birds/beagle --skill pydantic-ai-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Testing PydanticAI Agents

TestModel (Deterministic Testing)

Use TestModel for tests without API calls:

import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel

def test_agent_basic():
    agent = Agent('openai:gpt-4o')

    # Override with TestModel for testing
    result = agent.run_sync('Hello', model=TestModel())

    # TestModel generates deterministic output based on output_type
    assert isinstance(result.output, str)

TestModel Configuration

from pydantic_ai.models.test import TestModel

# Custom text output
model = TestModel(custom_output_text='Custom response')
result = agent.run_sync('Hello', model=model)
assert result.output == 'Custom response'

# Custom structured output (for output_type agents)
from pydantic import BaseModel

class Response(BaseModel):
    message: str
    score: int

agent = Agent('openai:gpt-4o', output_type=Response)
model = TestModel(custom_output_args={'message': 'Test', 'score': 42})
result = agent.run_sync('Hello', model=model)
assert result.output.message == 'Test'

# Seed for reproducible random output
model = TestModel(seed=42)
SKILL.md on GitHub

Sponsors

This spot is openSlot 1$1,200/mo Advertise hereThis spot is openSlot 2$1,000/mo Advertise hereSnugSponsoredThe clipboard manager you and your agent can use, safelyknobsSponsoredSee your site on any phone, any day, in any languageAgent CaffeineSponsoredClose your lid, come back to finished workThis spot is openSlot 6$500/mo Advertise hereThis spot is openSlot 7$500/mo Advertise hereWaxSponsoredBlock anything with supervision, without erasing your iPhone

Details

Repository
github.com/existential-birds/beagle
Categories
Backend & APIs, Testing & QA, Documentation, AI & Agent Building, Python, Video & Audio Editing
First seen
Jun 3, 2026

More from existential-birds/beagle

All 40
  • Pydantic Ai Dependency Injection141
  • Deepagents Implementation140
  • Deepagents Code Review131
  • Github Projects120
  • Pydantic Ai Model Integration120
  • React Flow1.3K
  • Python Code Review925
  • Langgraph Code Review886
  • Tailwind V4814
  • React Flow Advanced637
  • React Router V7574
  • React Flow Architecture533
  • Vitest Testing469
  • Docling431
  • Fastapi Code Review385
  • React Flow Implementation372
  • Shadcn Ui354
  • React Flow Code Review322
  • Langgraph Architecture282
  • Swiftui Code Review271
  • Tutorial Docs268
  • Bubbletea Code Review263
  • Zustand State256
  • Adr Writing248

Recommended

More Backend & APIs
1NVIDIA avatardoca-setupNVIDIA/skillsUse this skill when the user is dealing with the DOCA environment around their workload — verifying an install is healthy, preparing the build env (pkg-config, 146skills.sh installs
2oimiragieo avatardiagram-generatoroimiragieo/agent-studioGenerates architecture, database, and system diagrams using Mermaid syntax. Creates visual representations of system architecture, database schemas, component r146skills.sh installs
3rysweet avatarmcp-managerrysweet/amplihackConversational interface for managing MCP (Model Context Protocol) server configurations in Claude Code146skills.sh installs
4mgratzer avatarbloomerymgratzer/bloomeryInteractive tutorial that guides engineers through building their own coding agent (agentic loop) from scratch using raw HTTP calls to an LLM API. Supports Gemi145skills.sh installs
5salesforcecommercecloud avatarb2c-docssalesforcecommercecloud/b2c-developer-toolingSearch and read B2C Commerce documentation using the b2c CLI. Covers Script API reference (dw.* classes/modules), Developer Center guides (Commerce API, PWA Kit145skills.sh installs
6cloudflare avatarcode-reviewcloudflare/cloudflare-docsReviews Workers and Cloudflare Developer Platform code for type correctness, API usage, and configuration validity. Load when reviewing TypeScript/JavaScript us144skills.sh installs