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
46
47
//! Agent skills runtime for Synwire.
//!
//! This crate implements the [agentskills.io](https://agentskills.io)
//! specification for discoverable, composable agent skills, extended with
//! Synwire-specific runtime hints.
//!
//! # Overview
//!
//! A skill is a directory containing:
//! - `SKILL.md` — manifest (YAML frontmatter) + instructions body
//! - `scripts/` — optional runtime scripts
//! - `references/` — optional reference material
//! - `assets/` — optional static assets
//!
//! Skills are discovered from two locations:
//! - Global: `$DATA/<product>/skills/`
//! - Project-local: `.<product>/skills/`
//!
//! # Quick start
//!
//! ```no_run
//! use std::path::Path;
//! use synwire_agent_skills::{loader::SkillLoader, registry::SkillRegistry};
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let loader = SkillLoader::new();
//! let entries = loader.scan(Path::new("/path/to/skills")).await?;
//!
//! let mut registry = SkillRegistry::new();
//! for entry in entries {
//! registry.register(entry);
//! }
//!
//! for (name, desc) in registry.list_names_and_descriptions() {
//! println!("{name}: {desc}");
//! }
//! # Ok(())
//! # }
//! ```