| Crates.io | agent-skills |
| lib.rs | agent-skills |
| version | 0.2.0 |
| created_at | 2026-01-23 23:06:49.847463+00 |
| updated_at | 2026-01-23 23:06:49.847463+00 |
| description | Parse, validate, and work with Agent Skills as defined by the Agent Skills specification |
| homepage | |
| repository | https://github.com/Govcraft/agent-skills |
| max_upload_size | |
| id | 2065627 |
| size | 87,604 |
Parse, validate, and work with Agent Skills—the open standard for AI agent instruction packages.
cargo add agent-skills
Parse skill content directly or load a complete skill directory.
use agent_skills::Skill;
let content = r#"---
name: my-skill
description: Does something useful.
---
# Instructions
Follow these steps...
"#;
let skill = Skill::parse(content)?;
assert_eq!(skill.name().as_str(), "my-skill");
use agent_skills::SkillDirectory;
use std::path::Path;
let dir = SkillDirectory::load(Path::new("./my-skill"))?;
let skill = dir.skill();
println!("Name: {}", skill.name());
println!("Description: {}", skill.description());
Validation occurs automatically during parsing. Invalid skills return descriptive errors.
| 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 |
This crate implements the Agent Skills specification.
MIT