agent-skills
Parse, validate, and work with Agent Skills—the open standard for AI agent instruction packages.
Installation
Usage
Parse skill content directly or load a complete skill directory.
Parse SKILL.md Content
use Skill;
let content = r#"---
name: my-skill
description: Does something useful.
---
# Instructions
Follow these steps...
"#;
let skill = parse?;
assert_eq!;
Load a Skill Directory
use SkillDirectory;
use Path;
let dir = load?;
let skill = dir.skill;
println!;
println!;
Validation occurs automatically during parsing. Invalid skills return descriptive errors.
Key Types
| Type | Purpose |
|---|---|
Skill |
A parsed skill with frontmatter and body |
SkillDirectory |
A loaded skill directory with file access |
Frontmatter |
YAML metadata (name, description, license, etc.) |
SkillName |
A validated skill name |
SkillDescription |
A validated description |
Specification
This crate implements the Agent Skills specification.
License
MIT