pub struct SkillFrontmatter {Show 15 fields
pub name: String,
pub description: String,
pub when_to_use: Option<String>,
pub argument_hint: Option<String>,
pub arguments: Option<Vec<String>>,
pub disable_model_invocation: Option<bool>,
pub user_invocable: Option<bool>,
pub allowed_tools: Option<Vec<String>>,
pub disallowed_tools: Option<Vec<String>>,
pub model: Option<String>,
pub effort: Option<SkillEffort>,
pub context: Option<SkillContext>,
pub agent: Option<String>,
pub paths: Option<Vec<String>>,
pub shell: Option<SkillShell>,
}Expand description
YAML frontmatter prepended to SKILL.md.
description remains required by this crate for cross-harness safety,
even though Claude can infer it in some cases.
Fields§
§name: StringSkill identifier surfaced in tooling (typically matches the directory name).
description: StringSentence (or short paragraph) explaining when the skill should activate. Required by both Claude and Antigravity; the activation model matches against this string.
when_to_use: Option<String>Optional Claude when_to_use field.
argument_hint: Option<String>Optional Claude argument-hint field.
arguments: Option<Vec<String>>Optional Claude arguments list.
disable_model_invocation: Option<bool>Optional Claude disable-model-invocation field.
user_invocable: Option<bool>Optional Claude user-invocable field.
allowed_tools: Option<Vec<String>>Optional allowed-tools list (Claude). When None, the field is
omitted from the frontmatter.
disallowed_tools: Option<Vec<String>>Optional Claude disallowed-tools list.
model: Option<String>Optional Claude model override.
effort: Option<SkillEffort>Optional Claude effort override.
context: Option<SkillContext>Optional Claude context mode.
agent: Option<String>Optional Claude agent to use with forked context.
paths: Option<Vec<String>>Optional Claude paths list.
shell: Option<SkillShell>Optional Claude shell override.
Trait Implementations§
Source§impl Clone for SkillFrontmatter
impl Clone for SkillFrontmatter
Source§fn clone(&self) -> SkillFrontmatter
fn clone(&self) -> SkillFrontmatter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more