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.0a4.tar.gz (29.8 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.0a4-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_agent_skills-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 8da508496b5f6bed7db4f74bbe800a00aa802e111f7ddfc6aaaecae84161478d
MD5 1fd382b69b41950aaa84c97194ac715f
BLAKE2b-256 81fd040d564a1fba536cff1553cf41d0ab1c90013dcc9205d008e60301419ddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_agent_skills-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 706eb6fe481aead9b5f4169f64c7e705a5531c438119d32e0a1af5a955bd5f1c
MD5 71f3cdd121ad965280831704c4f7164a
BLAKE2b-256 5372d73bcc686210370e29b9b90b566bc7f1848d612996c5d27a372a35fcdc8c

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