pub struct SkillEntry {
pub description: String,
pub body: String,
pub dir: PathBuf,
pub always: bool,
pub triggers: SkillTriggers,
}Expand description
A skill that can be loaded by the skill tool (agent-side representation).
SkillSpec in defect-config is the configuration-side source of truth; during CLI
assembly it is projected into this struct before being handed to the tool. The two are
kept separate because defect-config depends on defect-agent — a reverse dependency
would create a cycle (same boundary as crate::tool::SubagentProfile /
ProfileSpec).
Fields§
§description: StringDescription shown in the selection phase, included in the L1 manifest (the catalog of tool descriptions).
body: StringThe full body of SKILL.md after stripping frontmatter — returned to the model
during L2 loading.
dir: PathBufAbsolute path to the skill directory, backfilled in L2 tool results so the model
can construct absolute paths to resources like scripts/ / refs/ for bash /
read_file.
always: boolalways: true ⇒ body is directly appended to the system prompt at session start
(always-on; see crate::hooks::builtin::SkillManifestHook).
triggers: SkillTriggersAutomatic activation triggers (by file glob or prompt keyword); see
SkillTriggers.
Trait Implementations§
Source§impl Clone for SkillEntry
impl Clone for SkillEntry
Source§fn clone(&self) -> SkillEntry
fn clone(&self) -> SkillEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more