pub struct SkillSnapshot {
pub id: String,
pub name: String,
pub instruction_fragment: String,
pub keywords: Vec<String>,
pub priority: u8,
pub tools: Vec<String>,
}Expand description
One skill the CLI should be able to invoke.
For Claude Code this becomes ~/.claude/skills/<id>/SKILL.md (or
<workdir>/.claude/skills/<id>/SKILL.md for project scope).
For Cursor this maps to .cursor/rules/<id>.mdc. For Gemini and
Codex (which lack a native concept) skills are concatenated into
the system-instruction file.
Fields§
§id: String§name: String§instruction_fragment: String§keywords: Vec<String>§priority: u8§tools: Vec<String>Tool names this skill expects to be available. Up to the vendor
adapter how to surface this (Claude allows --allowed-tools;
others may just list them in the instruction fragment).
Trait Implementations§
Source§impl Clone for SkillSnapshot
impl Clone for SkillSnapshot
Source§fn clone(&self) -> SkillSnapshot
fn clone(&self) -> SkillSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillSnapshot
impl Debug for SkillSnapshot
Source§impl<'de> Deserialize<'de> for SkillSnapshot
impl<'de> Deserialize<'de> for SkillSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkillSnapshot
impl RefUnwindSafe for SkillSnapshot
impl Send for SkillSnapshot
impl Sync for SkillSnapshot
impl Unpin for SkillSnapshot
impl UnsafeUnpin for SkillSnapshot
impl UnwindSafe for SkillSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more