pydantic-ai-skills

作者 DougTrajano已验证

This package implements Agent Skills (https://agentskills.io) support with progressive disclosure for Pydantic AI. Supports filesystem and programmatic skills.

360
Stars
28
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/DougTrajano/pydantic-ai-skills

快速入门

使用 pydantic-ai-skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

pydantic-ai-skills

Python 3.10+ License: MIT Quality Gate Status

Agent Skills for 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.

Why This and Not pydantic-ai-harness

The harness's own Skills capability is a minimal reader: it injects SKILL.md instructions but does not enumerate, read, or execute bundled files. pydantic-ai-skills implements the full package — bundled resources, script execution, remote registries, programmatic skills, and reload at runtime — so skills that ship a reference document or a script (including those in Anthropic's skills repository) run as written. Feature-by-feature comparison: Why pydantic-ai-skills.

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 directories 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(directories=['./skills'])],
)

result = await agent.run('What are the last 3 papers on arXiv about machine learning?')
print(result.output)

SkillsToolset is the same thing as a toolset, for agents built around toolsets=[...]:

from pydantic_ai_skills import SkillsToolset

agent = Agent(model='gateway/openai:gpt-5.2', toolsets=[SkillsToolset(directories=['./skills'])])

Both inject the skill catalog into the agent's instructions automatically and expose four tools:

ToolPurpose
list_skills()List available skills (optional — the catalog is already in the prompt)
load_skill(name)Read a skill's full instructions
read_skill_resource(skill_name, resource_name)Read a bundled file such as REFERENCE.md
run_skill_script(skill_name, script_name, args)Run a bundled script with named arguments

See Quick Start.

Anatomy of a Skill

my-skill/
├── SKILL.md      # Required: YAML frontmatter + Markdown instructions
├── REFERENCE.md  # Optional: extra docs, read on demand
├── scripts/      # Optional: executable scripts
└── resources/    # Optional: templates, data files
---
name: my-skill
description: Brief description of what this skill does and when to use it
---

# My Skill

## When to Use This Skill

Use this skill when you need to...

## Instructions

1. Step 1
2. Step 2

name (max 64 chars, lowercase letters, numbers and hyphens) and description (max 1024 chars) are required; other frontmatter fields are yours to use. See Creating Skills.

Beyond the Filesystem

  • Programmatic skills — define skills in Python with decorators or dataclasses.
  • Registries — load skills from Git repositories, S3, or custom sources, and compose them (combine, filter, prefix, rename).
  • Skill selection — give each agent a subset of a shared library with include / exclude.
  • Advanced featuresreload() / auto_reload, exclude_tools, deferred loading, recursive discovery.

Security

Only use skills from sources you trust. Skills give agents new capabilities through instructions and code, so a malicious skill can direct an agent to invoke tools or execute code in ways that don't match its stated purpose — with risks including data exfiltration and unauthorized system access. Audit any skill from an unknown source before use. See Security & Deployment.

Related Resources

Contributing

Contributions are welcome — see Contributing.

Acknowledgments

Thanks to Anthropic for the Agent Skills open format, the Pydantic AI team for the framework, and the community for feedback and contributions.

This project was highly inspired by pydantic-deepagents, which provided foundational ideas and patterns for agent skills and progressive disclosure in Pydantic AI.

License

MIT License — see LICENSE.

常见问题

What is pydantic-ai-skills?

pydantic-ai-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by DougTrajano. This package implements Agent Skills (https://agentskills.io) support with progressive disclosure for Pydantic AI. Supports filesystem and programmatic skills. It has 360 GitHub stars.

Is pydantic-ai-skills safe to use?

Yes. pydantic-ai-skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install pydantic-ai-skills?

Clone the repository with "git clone https://github.com/DougTrajano/pydantic-ai-skills" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is pydantic-ai-skills written in?

pydantic-ai-skills is primarily written in Python. It is open-source under DougTrajano on GitHub, so you can review or fork the full source.

Are there alternatives to pydantic-ai-skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pydantic-ai-skills against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情