1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! # skills-ref-rs
//!
//! Rust implementation of the agentskills library for validating, parsing,
//! and managing Agent Skills - structured markdown documents that describe
//! capabilities available to AI assistants.
//!
//! ## Core Functionality
//!
//! 1. **Validate** - Check that a skill directory contains a valid SKILL.md
//! 2. **Read Properties** - Parse SKILL.md frontmatter and extract metadata as JSON
//! 3. **To Prompt** - Generate XML blocks for embedding skill information in agent prompts
//!
//! ## Example
//!
//! ```no_run
//! use skills_ref::{read_properties, validate, to_prompt};
//! use std::path::Path;
//!
//! // Validate a skill directory
//! let errors = validate(Path::new("my-skill"));
//! if errors.is_empty() {
//! println!("Skill is valid!");
//! }
//!
//! // Read skill properties
//! let props = read_properties(Path::new("my-skill")).unwrap();
//! println!("Skill name: {}", props.name);
//!
//! // Generate XML prompt
//! let xml = to_prompt(&[Path::new("my-skill")]).unwrap();
//! println!("{}", xml);
//! ```
// Re-export main types and functions for convenience
pub use ;
pub use SkillProperties;
pub use ;
pub use to_prompt;
pub use ;