Documentation
¶
Index ¶
- Constants
- func GetBuiltinSkillsPath() string
- func GetManagedSkillsPath() string
- func GetSkillReposPath() string
- func GetSkillsRootPath() string
- func GetUserSkillsPath() string
- func GetUserSkillsPathForUser(userID string) string
- func MCPHealth() map[string]string
- func MCPServers() []string
- func ParseBooleanFrontmatter(value interface{}) bool
- func ReadEnabled(path string) bool
- func UserPath(userID string) string
- type Alias
- type FrontmatterData
- type Skill
- func All(cwd string) ([]Skill, error)
- func AllForUser(cwd string, userID string) ([]Skill, error)
- func Bundled() []Skill
- func DiscoverMCP(ctx context.Context) ([]Skill, error)
- func ForContext(cwd string, filePaths []string, userID string) ([]Skill, error)
- func MatchTrigger(userInput string, skills []Skill) *Skill
- type SkillSource
Constants ¶
View Source
const ( SourceBundled = internalskills.SourceBundled SourceCommands = internalskills.SourceCommands SourcePlugin = internalskills.SourcePlugin SourceManaged = internalskills.SourceManaged SourceMCP = internalskills.SourceMCP )
Variables ¶
This section is empty.
Functions ¶
func GetBuiltinSkillsPath ¶
func GetBuiltinSkillsPath() string
func GetManagedSkillsPath ¶
func GetManagedSkillsPath() string
func GetSkillReposPath ¶
func GetSkillReposPath() string
func GetSkillsRootPath ¶
func GetSkillsRootPath() string
func GetUserSkillsPath ¶
func GetUserSkillsPath() string
func MCPServers ¶
func MCPServers() []string
func ParseBooleanFrontmatter ¶
func ParseBooleanFrontmatter(value interface{}) bool
func ReadEnabled ¶
ReadEnabled reads the user-invocable (enabled) status of a skill.md file. Returns true when the file cannot be read or the field is absent.
Types ¶
type FrontmatterData ¶
type FrontmatterData = internalskills.FrontmatterData
func ParseFrontmatter ¶
func ParseFrontmatter(content string, filePath string) (FrontmatterData, string)
type Skill ¶
type Skill = internalskills.Skill
func ForContext ¶
ForContext returns skills active for the given file paths. Skills with a paths restriction are included only when a file matches; all others are always returned. Equivalent to AllForUser when filePaths is empty.
func MatchTrigger ¶
MatchTrigger returns the first skill whose trigger phrases match userInput, or nil.
type SkillSource ¶
type SkillSource = internalskills.SkillSource
Click to show internal directories.
Click to hide internal directories.