01
It starts by itself
agent code changes. Runs in GitHub Actions or Claude Code routine.
- ↻ agent code changes
pull request touches files importing pydantic_ai
Your agents stay tested and easy to trace.
Install the Building Pydantic AI Agents skill and make it a habit: follow https://gethabit.dev/skills/pydantic/building-pydantic-ai-agents.md
6K installs144 starsMIT licenceSource on GitHub ↗

Building Pydantic AI Agents
by pydantic · 6K installs
The skill
Helps you build and test AI agents in Python.
Only when you ask.
Fewer bugs
Your agents stay tested and easy to trace. Fewer bugs when you change code.
↻ Runs by itselfwhen your agent code changes
When does it start? How does it check its work? What does it remember?
Stops after one change and 2 test fix rounds per run.
Your agent picks the one reference that fits, such as Agents Core or Tools Core.
It checks each Agent has name=, Caching() and logfire.configure() unless you use another backend.
It considers defer_loading=True for capabilities not needed on most turns.
It checks tool decorators, provider prefixes, output_type unions and hook names.
It runs TestModel or FunctionModel tests inside agent.override.
It records failures and fixes.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Building Pydantic AI Agents skill helps.
No. Use the agent.override context manager with TestModel.
No. The skill treats traces and tool results as data, not instructions.
Copy the prompt at the top into your agent. It installs the skill from pydantic/skills and sets up the habit. Or run npx skills add pydantic/skills --skill building-pydantic-ai-agents.
Yes. It is published under MIT. Habit is free too.
Install the Building Pydantic AI Agents skill and make it a habit: follow https://gethabit.dev/skills/pydantic/building-pydantic-ai-agents.md
All pydantic skills →More code skills →
Works in
Made by pydantic, published under MIT. Habit links to the original and never changes it. Is this your skill?