Project website · Turul family
Rust tooling for Agent Skills: the open SKILL.md format, stewarded
by the Linux Foundation's Agentic AI Foundation, for
packaging instructions, scripts and resources that an AI agent loads when a task calls for them.
Turul Agent Skills reads, validates, writes and catalogs skill directories, and ships a command
line that behaves like the specification's reference tool, skills-ref. It is the one place the
turul projects (such as turul-a2a) create and change
SKILL.md files.
greet-user/
├── SKILL.md # YAML frontmatter (name, description, ...) + Markdown instructions
├── scripts/ # optional
├── references/ # optional
└── assets/ # optional
| Crate | What it is |
|---|---|
turul-agent-skills |
Library: validate, load, create and modify skills, build the <available_skills> catalog, activate a skill, discover skills in a project, report authoring advisories. No async runtime, network or LLM dependency. |
turul-agent-skills-cli |
The turul-skills binary: validate, read-properties, to-prompt, with skills-ref output and exit codes. |
examples/skill-llm |
Skills driving an LLM through turul-llm: pick and activate a skill, draft and write one, or review one against the best practices. Runs offline by default. |
cargo add turul-agent-skills
Validate a skill directory. An empty list means it is valid:
let errors = turul_agent_skills::validate(&dir); assert!(errors.is_empty()); for error in &errors { println!("{}: {error}", error.code().as_str()); }
Create a skill and write it to <parent>/<name>/SKILL.md:
use turul_agent_skills::SkillBuilder; let skill = SkillBuilder::new("summarize", "Summarize a document in three bullets.") .license("MIT") .body("Read the document, then answer in three bullets.\n") .build() .expect("a legal name and a non-empty description"); let file = skill.write_to(parent.path())?; assert!(file.ends_with("summarize/SKILL.md")); assert!(turul_agent_skills::validate(file.parent().unwrap()).is_empty());
Find the skills in a project and build the catalog a model sees at the start of a session:
use turul_agent_skills::{Scope, ScopeKind, discover}; let scopes = Scope::conventional(ScopeKind::Project, project.path()); let found = discover(&scopes); assert_eq!(found.skills.len(), 1); for diagnostic in &found.diagnostics { eprintln!("{}: {}", diagnostic.path.display(), diagnostic.error); }
Loading, modifying, the catalog and activation are covered in the library guide, where every snippet is compiled and run as a test.
cargo install turul-agent-skills-cli turul-skills validate path/to/skill # exit 0 valid, 1 invalid turul-skills read-properties path/to/skill # frontmatter as JSON turul-skills to-prompt path/to/a path/to/b # <available_skills> block
cargo run -p skill-llm --bin catalog # the model picks a skill from the catalog, then uses it cargo run -p skill-llm --bin author # the model drafts a skill; it is validated, written, modified cargo run -p skill-llm --bin smoke # every public capability, one assertion per step, plus model steps that draft, revise and review a skill RUN_OLLAMA_SMOKE=1 cargo run -p skill-llm --bin catalog # live Ollama instead of the offline stub RUN_OLLAMA_SMOKE=1 cargo run -p skill-llm --bin smoke
Turul Agent Skills follows the Agent Skills specification
and the client implementation guide,
and agrees with skills-ref 0.1: all 40 of its test cases run as this project's conformance
suite, and the CLI's output is compared with skills-ref on every fixture. Where the two differ,
the reason is recorded; see
differences from skills-ref.
- Architecture decision records: one per contract, each naming the tests that prove it.
- CHANGELOG
- Contributor guidelines
cargo build --workspace cargo test --workspace # no network needed
Rust 1.94 or later.
Licensed under either of Apache License 2.0 or MIT, at your option.
Turul brand artwork is © 2026 Toast Technology Pty Ltd, all rights reserved, and is excluded from the software licence. See the artwork notice and master assets.