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
Project details
Release history Release notifications | RSS feed
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 elizaos_plugin_agent_skills-2.0.0a5.tar.gz.
File metadata
- Download URL: elizaos_plugin_agent_skills-2.0.0a5.tar.gz
- Upload date:
- Size: 32.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
968ddcb69caa11eaa1480c1c53a3d985a29d2f2debcbc5846062e023f8711671
|
|
| MD5 |
3bef946ab346e169252d5aea337a18ba
|
|
| BLAKE2b-256 |
100358c670dc1b91064bfa59c6c8ca05bcc0f816d62101d13dacb99ddcaa2e18
|
File details
Details for the file elizaos_plugin_agent_skills-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_agent_skills-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3987ca7b957044a727583dc02a5c4384b655ee03d18732b80fb050b0c3c4e8f0
|
|
| MD5 |
aadf44f56a6684c98732672123eb418b
|
|
| BLAKE2b-256 |
442738374505eeab299b5ea0095fd5926a54306d96ca3898bee74ce499f0d040
|