Microsoft Agent Framework integration for the Agent Skills format (https://agentskills.io)
Project description
agentskills-agentframework
Microsoft Agent Framework integration for the Agent Skills SDK - turn a skill registry into Agent Framework tools.
Generates a set of Microsoft Agent Framework FunctionTool instances from a SkillRegistry, ready to be passed to any Agent Framework agent.
Installation
pip install agentskills-agentframework
Requires Python 3.12+. Installs agentskills-core and agent-framework as dependencies.
Note:
agent-frameworkis currently a pre-release dependency (>=1.0.0b1). The constraint will be updated once a stable release is published.
Usage
from agentskills_core import SkillRegistry
from agentskills_fs import LocalFileSystemSkillProvider
from agentskills_agentframework import get_tools, get_tools_usage_instructions
# Set up registry
provider = LocalFileSystemSkillProvider(Path("./skills"))
registry = SkillRegistry()
await registry.register("incident-response", provider)
# Build tools + system prompt
tools = get_tools(registry)
catalog = await registry.get_skills_catalog(format="xml")
instructions = get_tools_usage_instructions()
system_prompt = f"{catalog}\n\n{instructions}"
Pass tools to your Agent Framework agent and inject system_prompt into the instructions. The catalog tells the agent what skills exist; the usage instructions tell it how to use the tools.
Generated Tools
| Tool | Parameters | Description |
|---|---|---|
get_skill_metadata |
skill_id |
Get structured metadata (name, description, etc.) |
get_skill_body |
skill_id |
Load the full markdown instructions |
get_skill_reference |
skill_id, name |
Read a reference document |
get_skill_script |
skill_id, name |
Read a script |
get_skill_asset |
skill_id, name |
Read an asset |
All tools are async-compatible (FunctionTool with @tool decorator).
API
get_tools(registry: SkillRegistry) -> list[FunctionTool]
Returns a list of Agent Framework function tools bound to the given registry.
get_tools_usage_instructions() -> str
Returns a markdown string explaining the progressive-disclosure workflow - read metadata, then body, then fetch resources on demand. Designed for system-prompt injection alongside the skill catalog.
Example
See examples/agent-framework/ for full working demos.
Error Handling
| Scenario | Exception |
|---|---|
| Skill not found in registry | SkillNotFoundError |
| Resource not found in skill | ResourceNotFoundError |
| Provider errors (HTTP, filesystem) | AgentSkillsError |
All exceptions inherit from AgentSkillsError (from agentskills-core).
Note: Binary content (scripts, assets, references) is decoded as UTF-8 with
errors="replace". Non-decodable bytes are replaced with the Unicode replacement character (�).
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentskills_agentframework-0.2.2.tar.gz.
File metadata
- Download URL: agentskills_agentframework-0.2.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.13.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f3ec042357ce05a415ca63b5615769897f38fd504ba5eec6b17bba7641586ea
|
|
| MD5 |
8448f5d4b2b28f6cedac14820d048442
|
|
| BLAKE2b-256 |
63830c553ffce2e54a2934445ddbbfb314b19ba1ec144df69179f64c9fa5dfe0
|
File details
Details for the file agentskills_agentframework-0.2.2-py3-none-any.whl.
File metadata
- Download URL: agentskills_agentframework-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.13.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b986f2dc1bd8ccc58e4531f3709ba057e3023ccd5b2fed3af114d0a7c4f0a6ca
|
|
| MD5 |
a4ea97d18a1acdd52a32e59815a256db
|
|
| BLAKE2b-256 |
af59f080c5a3894f2836d475eae5c433f8e09dfd650992485d64ebb04d585526
|