skills

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 GetUserSkillsPathForUser

func GetUserSkillsPathForUser(userID string) string

func MCPHealth

func MCPHealth() map[string]string

func MCPServers

func MCPServers() []string

func ParseBooleanFrontmatter

func ParseBooleanFrontmatter(value interface{}) bool

func ReadEnabled

func ReadEnabled(path string) bool

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.

func UserPath

func UserPath(userID string) string

Types

type Alias

type Alias = internalskills.SkillAlias

func Aliases

func Aliases() []Alias

type FrontmatterData

type FrontmatterData = internalskills.FrontmatterData

func ParseFrontmatter

func ParseFrontmatter(content string, filePath string) (FrontmatterData, string)

type Skill

type Skill = internalskills.Skill

func All

func All(cwd string) ([]Skill, error)

func AllForUser

func AllForUser(cwd string, userID string) ([]Skill, error)

func Bundled

func Bundled() []Skill

func DiscoverMCP

func DiscoverMCP(ctx context.Context) ([]Skill, error)

func ForContext

func ForContext(cwd string, filePaths []string, userID string) ([]Skill, error)

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

func MatchTrigger(userInput string, skills []Skill) *Skill

MatchTrigger returns the first skill whose trigger phrases match userInput, or nil.

type SkillSource

type SkillSource = internalskills.SkillSource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL