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

NameTypeDescription
nameStringSkill name (1-64 chars, lowercase, hyphens only)
descriptionStringSkill description (1-1024 chars)
licenseOption<String>License (optional)
compatibilityOption<String>Compatibility notes (optional)
allowed_toolsOption<String>Allowed tools (space-delimited)
metadataHashMap<StringAdditional metadata
pathOption<PathBuf>Path to the skill directory
instructionsOption<String>Instructions (markdown body)

Methods

new

rust
fn new(name: impl Into<String>, description: impl Into<String>) -> Self

Create a new SkillProperties with name and description.

Parameters:

NameType
nameimpl Into&lt;String&gt;
descriptionimpl Into&lt;String&gt;

get_allowed_tools

rust
fn get_allowed_tools(&self) -> Vec<&str>

Get allowed tools as a vector.

validate

rust
fn validate(&self) -> Result<(), ValidationError>

Validate the skill properties.

Source

View on GitHub

praisonai/src/skills/mod.rs at line 26


Related Documentation