Skip to main content

Agent Skills plugin for elizaOS - implement the Agent Skills specification with progressive disclosure

Project description

Agent Skills Plugin for elizaOS (Python)

Implements the Agent Skills specification with:

  • Spec-compliant SKILL.md parsing and validation
  • Progressive disclosure (metadata → instructions → resources)
  • ClawHub registry integration
  • Otto metadata compatibility
  • Dual storage modes (memory/filesystem)

Installation

pip install elizaos-plugin-agent-skills

For development:

pip install -e ".[dev]"

Usage

Basic Parsing

from elizaos_plugin_agent_skills import parse_frontmatter, validate_frontmatter

content = """---
name: my-skill
description: A helpful skill for doing things
---
# My Skill

Instructions here.
"""

result = parse_frontmatter(content)
frontmatter = result["frontmatter"]
body = result["body"]

# Validate
validation = validate_frontmatter(frontmatter, "my-skill")
if validation["valid"]:
    print(f"Skill: {frontmatter['name']}")

Storage (Memory vs Filesystem)

from elizaos_plugin_agent_skills import (
    MemorySkillStore,
    FileSystemSkillStore,
    load_skill_from_storage,
    install_from_github,
)

# Memory storage (browser/virtual FS)
store = MemorySkillStore("/virtual/skills")
await store.initialize()

# Load from content
await store.load_from_content("my-skill", skill_md_content)

# Or from GitHub
skill = await install_from_github(store, "owner/repo", path="skills/my-skill")

# Load skill
skill = await load_skill_from_storage(store, "my-skill")
print(f"Loaded: {skill['name']}")

Generate XML for Agent Prompts

from elizaos_plugin_agent_skills import generate_skills_xml

skills = [
    {"name": "skill-one", "description": "First skill", "location": "/path/to/skill"},
    {"name": "skill-two", "description": "Second skill", "location": "/path/to/skill"},
]

xml = generate_skills_xml(skills, include_location=True)
print(xml)

Testing

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# With Anthropic integration tests
ANTHROPIC_API_KEY=your-key pytest

Specification

See: https://agentskills.io

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

elizaos_plugin_agent_skills-2.0.0a5.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_agent_skills-2.0.0a5-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_agent_skills-2.0.0a5.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_agent_skills-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 968ddcb69caa11eaa1480c1c53a3d985a29d2f2debcbc5846062e023f8711671
MD5 3bef946ab346e169252d5aea337a18ba
BLAKE2b-256 100358c670dc1b91064bfa59c6c8ca05bcc0f816d62101d13dacb99ddcaa2e18

See more details on using hashes here.

File details

Details for the file elizaos_plugin_agent_skills-2.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_agent_skills-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 3987ca7b957044a727583dc02a5c4384b655ee03d18732b80fb050b0c3c4e8f0
MD5 aadf44f56a6684c98732672123eb418b
BLAKE2b-256 442738374505eeab299b5ea0095fd5926a54306d96ca3898bee74ce499f0d040

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