haiku.skills
Skill-powered AI agents implementing the Agent Skills specification with pydantic-ai.
How it works
SkillToolset is a pydantic-ai FunctionToolset that you attach to your own agent. By default, it exposes a single execute_skill tool. When the agent calls it, a focused sub-agent spins up with only that skill's instructions and tools — then returns the result. The main agent never sees the skill's internal tools, so its tool space stays clean no matter how many skills you load.
Alternatively, SkillToolset(use_subagents=False) exposes skill tools directly to the main agent — no sub-agent LLM loops, lower latency, and the agent retains tool results in its conversation context.
Features
- Two execution modes — Sub-agent delegation (default) for isolation, or direct tool access for speed and context retention
- Filesystem skills — Load SKILL.md directories with scripts in Python, JavaScript, TypeScript, or shell
- Entrypoint skills — Install skill packages with typed in-process tools, per-skill state, and zero-config discovery
- Per-skill state — Pydantic state models tracked per namespace; state changes emit
StateDeltaEvent(JSON Patch) for the AG-UI protocol - MCP integration — Wrap any MCP server (stdio, SSE, streamable HTTP) as a skill
- Signing and verification — Identity-based skill signing via sigstore
Quick start
uv add haiku.skills
from pathlib import Path
from pydantic_ai import Agent
from haiku.skills import SkillToolset, build_system_prompt
toolset = SkillToolset(skill_paths=[Path("./skills")])
agent = Agent(
"anthropic:claude-sonnet-4-5-20250929",
instructions=build_system_prompt(toolset.skill_catalog),
toolsets=[toolset],
)
result = await agent.run("Analyze this dataset.")
print(result.output)
Documentation
Full documentation at ggozad.github.io/haiku.skills.
License
MIT
Metadata
Release files for haiku.skills 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haiku_skills-0.12.0.tar.gz | 167.7 kB | Without provenance | Details for haiku_skills-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haiku_skills-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for haiku_skills-0.12.0-py3-none-any.whl |
Total release size: 198.5 kB
Release files / haiku_skills-0.12.0.tar.gz
| Download URL | haiku_skills-0.12.0.tar.gz |
|---|---|
| Size | 167.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca30bec1aa36ed364e33fe3d6301aa35b4aa14f869a6bef0634368ca8cb509f0
|
|
BLAKE2b-256 checksum How to use checksums |
d7e10380b8201d153a7ef77b48534a7237d6f08a33ed9624a4b841a306b02712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / haiku_skills-0.12.0-py3-none-any.whl
| Download URL | haiku_skills-0.12.0-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a2546f65507bd986381d7890d7c663952346e03cfba33d458c3586d4d26cbe4
|
|
BLAKE2b-256 checksum How to use checksums |
86a80a8af6e46fb6e16aad72e686177f2d6f2ee453bb60d7188a1ee894ae53ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for haiku.skills 0.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.