Skip to main content

Structured Skills for Agents

Project description

structured_skills

Structured Skills for Agents - launch MCP servers from skill directories

Usage

Quick usage to launch MCP server:

structured_skills run path/to/root/skills

To test via CLI:

structured_skills cli list_skills
structured_skills cli load_skill <skill_name>
structured_skills cli read_skill_resource <skill_name> <resource_name>
structured_skills cli run_skill <skill_name> <function_name>

Programmatically:

from structured_skills import SkillRegistry

registry = SkillRegistry("/path/to/skills")

# List all available skills
registry.list_skills()

# Load full skill instructions
registry.load_skill(skill_name)

# Read a resource (file, script, or function info)
registry.read_skill_resource(skill_name, resource_name, args)

# Execute a skill function
registry.run_skill(skill_name, function_name, args)

smolagents Integration

structured_skills provides integration with smolagents:

uv pip install structured_skills[smolagents]
from structured_skills import SkillRegistry
from structured_skills.smolagents import create_smolagents_tools

registry = SkillRegistry("/path/to/skills")

# Create all tools
tools = create_smolagents_tools(registry)

# Or create specific tools
tools = create_smolagents_tools(registry, tools=["list_skills", "load_skill"])

# Use with smolagents
from smolagents import CodeAgent, HfApiModel

agent = CodeAgent(tools=tools, model=HfApiModel())
agent.run("List available skills")

Validation

Perform checks with suggested fixes:

structured_skills check path/to/root/skills
structured_skills check path/to/root/skills --fix  # try to fix observed issues

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

structured_skills-0.1.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

structured_skills-0.1.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file structured_skills-0.1.2.tar.gz.

File metadata

  • Download URL: structured_skills-0.1.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for structured_skills-0.1.2.tar.gz
Algorithm Hash digest
SHA256 761e714e63a6291642d3acf92cf1d0d38d828cc1bb3fbcfb86b9c63e3572534a
MD5 48d27ea25a7eb467993542ffd52c1f25
BLAKE2b-256 9ca0e49894419bbfcbff9d9dfe6c3c94186196b72a5daf4dc7294bbe4c8357c9

See more details on using hashes here.

File details

Details for the file structured_skills-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: structured_skills-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for structured_skills-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7982795d3d85f98147b090dad8e39d3029518a9dbf5c203cdf522fd67e41531c
MD5 d733ab14d567f3c55f7125f642f7a173
BLAKE2b-256 251518f3e8f548d6f4c5c8ca28817609c2ab07d59d4625132d3e3d50afb66d61

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