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 skills_ref 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.1.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.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skills_ref-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6b400ca6e0049be62dca0167ff943ba2745fd67efb37fbba4d0ee341fccd2695
MD5 5e9c27824364f7511fa115f7651dc789
BLAKE2b-256 2342943d3ba8b097af7068b7178563a5062ad8a977982f4a7b4f67facfc575e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skills_ref-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d35db5bb8de71ae301daf5ca9cb71f8a555e8c6f83a6d40e46a5bc09f8f461b5
MD5 d41ab2c4ae67bddca4d9b6b3b77d9680
BLAKE2b-256 af2536a43c3a61fb6cc3984e6ad5e556929b8ae71c95eba615dae4cf2f427964

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