pub struct Skill {
pub name: String,
pub description: String,
pub argument_hint: Option<String>,
pub compatibility: Option<String>,
pub disable_model_invocation: bool,
pub license: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub user_invocable: bool,
pub content: String,
pub path: PathBuf,
pub source: SkillSource,
}Expand description
A skill discovered from a SKILL.md file.
Skills are reusable instruction sets that can be invoked by the user
(via /skill <name>) or automatically by the model (via the invoke_skill
signal tool). They live in ~/.tinyharness/skills/<name>/SKILL.md (personal)
or .tinyharness/skills/<name>/SKILL.md (project-local).
Fields§
§name: StringThe skill name (from frontmatter name field or directory name).
description: StringA short description of when and how to use this skill.
argument_hint: Option<String>Optional hint shown to the user about what argument to pass (e.g. “file path to review”).
compatibility: Option<String>Optional compatibility string (e.g. “rust”, “python”, “any”).
disable_model_invocation: boolIf true, the model may NOT auto-invoke this skill; only manual /skill invocation is allowed.
license: Option<String>Optional license identifier (e.g. “MIT”, “Apache-2.0”).
metadata: Option<HashMap<String, String>>Optional arbitrary metadata as key-value pairs.
user_invocable: boolIf true, the skill can be invoked by the user via /skill <name>.
content: StringThe full markdown content of the SKILL.md file (after frontmatter).
path: PathBufThe filesystem path where this skill was found.
source: SkillSourceWhether this is a personal (home) or project-local skill.