Skip to main content

Reference library for Agent Skills

Project description

Agent Skills

Agent Skills are a simple, open format for giving agents new capabilities and expertise.

Skills are folders of instructions, scripts, and resources that agents can discover and use to perform better at specific tasks. Write once, use everywhere.

Installation

pip install skills-ref

Or using uv:

uv add skills-ref

Quick Start

CLI Usage

# Validate a skill
agentskills validate path/to/skill

# Read skill properties (outputs JSON)
agentskills read-properties path/to/skill

# Generate <available_skills> XML for agent prompts
agentskills to-prompt path/to/skill-a path/to/skill-b

Python API

from pathlib import Path
from agentskills import validate, read_properties, to_prompt

# Validate a skill directory
errors = validate(Path("my-skill"))
if errors:
    print("Validation errors:", errors)
else:
    print("Valid skill!")

# Read skill properties
props = read_properties(Path("my-skill"))
print(f"Skill: {props.name}")
print(f"Description: {props.description}")

# Generate prompt XML for agent integration
prompt = to_prompt([Path("skill-a"), Path("skill-b")])
print(prompt)

Features

  • Validation: Check skills for proper format and required fields
  • Parsing: Extract skill metadata from SKILL.md frontmatter
  • Prompt Generation: Create XML blocks for agent system prompts
  • i18n Support: Full Unicode support for international skill names
  • CLI Tools: Command-line utilities for skill management

Documentation

About

Agent Skills is an open format maintained by Anthropic and open to contributions from the community.

License

Apache 2.0

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

skills_ref-0.1.0.tar.gz (93.5 kB view details)

Uploaded Source

Built Distribution

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

skills_ref-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skills_ref-0.1.0.tar.gz
  • Upload date:
  • Size: 93.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for skills_ref-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2362ac5a5bb874ff2f39c6ddc229b0c4c0e79b6b94cfb0f71f423b75f1d3f7fd
MD5 553384a21a77770c2b8a148f3cbca172
BLAKE2b-256 7ac789e1055cfe7026e970c558470c036b233e56a862eb4fba5800d4ac01f06b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skills_ref-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for skills_ref-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd59cef5faca469797ef45b5de84258996decae8a65238db48656537687d30d5
MD5 b0894fec460fa370c47cd4921e9c7d72
BLAKE2b-256 ddf5f466ff9202d2f0c57be771182067f3bffab6e22c574b8e93f649d5eb4aa8

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