Skill Properties • Rust AI Agent SDK
SkillProperties: Properties of a skill parsed from SKILL.md frontmatter.
SkillProperties
Defined in the skills module.
Rust AI Agent SDK
Properties of a skill parsed from SKILL.md frontmatter.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Skill name (1-64 chars, lowercase, hyphens only) |
description | String | Skill description (1-1024 chars) |
license | Option<String> | License (optional) |
compatibility | Option<String> | Compatibility notes (optional) |
allowed_tools | Option<String> | Allowed tools (space-delimited) |
metadata | HashMap<String | Additional metadata |
path | Option<PathBuf> | Path to the skill directory |
instructions | Option<String> | Instructions (markdown body) |
Methods
new
fn new(name: impl Into<String>, description: impl Into<String>) -> SelfCreate a new SkillProperties with name and description.
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
description | impl Into<String> |
get_allowed_tools
fn get_allowed_tools(&self) -> Vec<&str>Get allowed tools as a vector.
validate
fn validate(&self) -> Result<(), ValidationError>Validate the skill properties.
Source
View on GitHubpraisonai/src/skills/mod.rs at line 26