Documentation
¶
Overview ¶
Package skills provides parsing and access to SKILL.md-based skill directories via fs.FS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResource ¶
GetResource reads a file from the named skill's directory at the given relative path.
Types ¶
type SearchMode ¶
type SearchMode int
SearchMode determines how multiple search terms are combined.
const ( SearchAND SearchMode = iota // all terms must match SearchOR // at least one term must match )
type SkillMeta ¶
type SkillMeta struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
Version string `yaml:"version,omitempty" json:"version,omitempty"`
Dir string `yaml:"-" json:"dir"` // directory name within the fs.FS
}
SkillMeta holds the frontmatter metadata of a SKILL.md file.
func ListSkills ¶
ListSkills scans the root of fsys for subdirectories containing SKILL.md, parses their frontmatter, and returns the metadata.
func SearchSkills ¶
SearchSkills searches for skills matching query terms against name, description, and body. Multiple terms (space-separated) are combined using the given SearchMode (AND or OR). An empty query returns all skills.
Click to show internal directories.
Click to hide internal directories.