Pydantic AI Skills
This package implements Agent Skills (https://agentskills.io) support with progressive disclosure for Pydantic AI. Supports filesystem and programmatic skills.
Install: git clone https://github.com/DougTrajano/pydantic-ai-skills
Works with Claude Code · 379 GitHub stars
Install
git clone https://github.com/DougTrajano/pydantic-ai-skillsInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →pydantic-ai-skills
Remote skill registries and bundled-file execution for Agent Skills in Pydantic AI.
Agent Skills are modular packages of instructions, resources, and scripts that teach an agent to
handle a specialized task. On disk, a skill is just a folder: a SKILL.md file holding a name, a
description, and Markdown instructions, plus any reference documents and executable scripts the task
needs.
Your agent starts out seeing only the name and description of each skill. When a task calls for one, it loads that skill's full instructions, and reads a reference document or runs a script only if it actually needs to. This is progressive disclosure: your skill library can grow without every skill paying for space in the prompt.
📖 Full documentation — including video tutorials.
How This Relates to pydantic-ai-harness
pydantic-ai-harness ships a Skills capability
that reads SKILL.md packages from local directories and turns each into a deferred Pydantic AI
capability. It stops there by design — it
does not enumerate, read, or execute bundled files,
and it has no notion of a remote source.
pydantic-ai-skills is the companion that fills those gaps. It requires harness and delegates to
it, so SKILL.md parsing, validation, the catalog and instruction rendering are all upstream's,
and adds:
- Remote registries — Git and S3 sources, with composition (filter, prefix, rename, merge).
- Bundled files —
read_skill_resourceandrun_skill_script, so a skill that ships a reference document or a script (including those in Anthropic's skills repository) runs as written. - Sandboxed execution — keep untrusted scripts off the host.
${SKILL_DIR}resolution — harness leaves the placeholder in place; this substitutes the path.- Programmatic skills — skills defined in Python, in the same catalog.
If your skills are instructions and nothing else, use harness directly — it is a smaller dependency and identical behaviour. Feature-by-feature: comparison.
Upgrading from v1? v2 is a clean break:
SkillsToolset,SkillsDirectory,reload()and thelist_skills/load_skilltools are gone, replaced by harness and Pydantic AI's ownload_capability. See the migration guide.
Installation
uv add pydantic-ai-skills
Millennials may continue to use pip install pydantic-ai-skills. It still works, like your Spotify
playlist from 2013.
Quick Start
Point a SkillsCapability at one or more skill libraries and add it to your agent:
from pydantic_ai import Agent
from pydantic_ai_skills import SkillsCapability
agent = Agent(
model='gateway/openai:gpt-5.2',
instructions='You are a helpful research assistant.',
capabilities=[SkillsCapability('./skills')],
)
result = await agent.run('What are the last 3 papers on arXiv about machine learning?')
print(result.output)
Or pull them from a repository:
Similar plugs
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
Production-grade engineering skills for AI coding agents.
The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…