Overview of available example scenarios
mainThe examples/ directory contains several runnable scripts demonstrating different ways to use pydantic-ai-skills:
| File | Description |
|---|---|
basic_usage.py | Minimal setup: one skill library exposed through SkillsCapability. |
advanced_usage.py | Multiple skills directories, DuckDuckGo search tool, httpx URL fetcher, and a filesystem sandbox. |
git_registry_usage.py | Loads skills from a remote Git repository using GitSkillsRegistry (clones the public Anthropic skills repo). |
programatic_skills.py | Defines a skill entirely in Python using the resource / script decorators (e.g., HR Analytics Agent). |
debug_local_logging.py | Runs file-based skill scripts in-process for breakpoint debugging and writes a local execution log file. |
sandbox_opensandbox.py | Runs skill scripts in an OpenSandbox container. Requires pip install -e ".[examples,opensandbox]". |
sandbox_localsandbox.py | Runs skill scripts in a LocalSandbox virtual filesystem (just-bash + Pyodide). Requires pip install -e ".[examples,localsandbox]". |