pub struct Skill {
pub name: String,
pub description: String,
pub prompt: String,
pub arguments: Vec<SkillArgument>,
pub config: Option<SlotConfig>,
pub scope: SkillScope,
pub argument_hint: Option<String>,
pub skill_dir: Option<PathBuf>,
}Expand description
A reusable skill template.
Fields§
§name: StringUnique skill name (e.g. “code_review”, “write_tests”).
description: StringHuman-readable description of what this skill does.
prompt: StringPrompt template. Use {arg_name} placeholders for arguments.
arguments: Vec<SkillArgument>Argument definitions (name -> description).
config: Option<SlotConfig>Per-skill config overrides (model, effort, etc.).
scope: SkillScopeWhere this skill is intended to run (advisory).
argument_hint: Option<String>Hint shown in skill listings to indicate expected arguments.
Follows the Agent Skills standard argument-hint field.
Example: "[issue-number]", "<file> [--verbose]".
skill_dir: Option<PathBuf>Path to the skill’s directory on disk.
Set when loaded from a SKILL.md folder (project or global skills).
Used for ${CLAUDE_SKILL_DIR} substitution in prompts, allowing
skills to reference bundled scripts and supporting files.
None for builtins and runtime-added skills.