pub struct SkillSpec<'a> {
pub name: &'a str,
pub source: &'a str,
pub title: &'a str,
pub marker_slug: &'a str,
pub assets: &'a [SkillAsset<'a>],
}Expand description
Identity of the skill being managed and the tool that manages it.
name is both the skill directory name and the name: front-matter field. source is the
bundled SKILL.md (typically include_str!). title is a human label for error messages.
marker_slug seeds the managed-skill marker and the Generated by <slug> skill install
comment, and is referenced in hints (e.g. afwidget). assets are auxiliary files bundled
under the skill directory (e.g. references/); empty for a single-file skill.
Fields§
§name: &'a strSkill directory name and front-matter name (e.g. agent-first-widget).
source: &'a strBundled SKILL.md contents.
title: &'a strHuman-readable skill title for error messages (e.g. Agent-First Widget).
marker_slug: &'a strShort tool slug used in the managed marker, generated-by comment, and hints (e.g. afwidget).
assets: &'a [SkillAsset<'a>]Auxiliary files bundled under the skill directory alongside SKILL.md
(e.g. references/). Installed and removed with the skill; empty &[]
for a single-file skill.