What problem does it solve?
Adding a new provider API capability (prompt caching, strict tool calling, thinking effort, service tier) to Pydantic AI often leads to rejected PRs when contributors invent provider-specific knobs that duplicate existing cross-provider abstractions. This Skill enforces the maintainer-approved design process so the change is consistent with sibling providers, defaults deliberately, and gates support correctly.
Core Features & Use Cases
- Abstraction-first design: Enumerates sibling provider precedent and routes the feature through existing abstractions like
ToolDefinition.strict, shared ModelSettings fields, CachePoint markers, or ModelProfile capability flags before designing anything new.
- Default and gating decisions: Provides rules for choosing default-on vs opt-in behavior, and for capability gating via profile flags, schema compatibility signals, or SDK version probes.
- Tests, docs, and precedent map: Prescribes wire-contract cassette tests, docstring support lists enforced by
test_model_settings_support.py, and includes a precedent table of past PRs (service tier, strict, thinking, prompt caching).
- Use Case: When wiring Anthropic prompt caching or Groq reasoning effort into Pydantic AI, follow the steps to reuse the shared abstraction, pick the right default, and add the profile flag so the PR matches maintainer expectations.
Quick Start
Use this skill to add a new provider API capability such as prompt caching or reasoning effort to Pydantic AI, following the existing cross-provider abstraction and capability-gating conventions.