Skip to main content

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.

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.

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

agentskills_agentframework-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentskills_agentframework-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file agentskills_agentframework-0.1.0.tar.gz.

File metadata

  • Download URL: agentskills_agentframework-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.13.9 Windows/11

File hashes

Hashes for agentskills_agentframework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4c9600fc022df5bf3aa04c1ee3b6ce2091953e7fb96a5c0d3e607b5ea300ca3
MD5 49b179bd902cbfe87ded91708e4ddbd9
BLAKE2b-256 bb151c5b66cb32ebc5fc5570e2f77904aec5cfc256e1bf2f30e83c9ecfceb0a1

See more details on using hashes here.

File details

Details for the file agentskills_agentframework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentskills_agentframework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d95c91ba57e434b0de078a23e673a4a4aa74232cfa9cb4b737aa3a137fdcf08
MD5 cc729c8d98d45fb5c3289bc0507b561b
BLAKE2b-256 e1d56b51689baace12f35d97e45252ff226276ddaffb7ba9e57f584dffe58cde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page