Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + var ErrModelInvocationDenied = errors.New("skill cannot be invoked by the model") + var ErrNotFound = errors.New("skill not found") + var ErrUserInvocationDenied = errors.New("skill cannot be invoked by the user") + func Listing(skills []Spec, usage map[string]float64) string + func ValidName(name string) bool + type Catalog struct + func NewCatalog(specs []Spec) *Catalog + func (c *Catalog) Active(cwd string) *Catalog + func (c *Catalog) Get(name string) (Spec, bool) + func (c *Catalog) Invoke(ctx context.Context, in InvokeInput) (*Invocation, error) + func (c *Catalog) List() []Spec + type Invocation struct + Agent string + AllowedTools []string + Fork bool + Model string + Prompt string + Spec Spec + type InvokeInput struct + Args string + By Invoker + Name string + SessionID string + type Invoker int + const ByModel + const ByUser + type Spec struct + Agent string + AllowedTools []string + ArgumentHint string + BaseDir string + Context string + Description string + DisableModelInvocation bool + DisableUserInvocation bool + FilePath string + Model string + Name string + Paths []string + Privileged bool + Source string + WhenToUse string + func Bundled(baseDir string) []Spec + func LoadDir(dir string) ([]Spec, []error) + func LoadFile(path, name string) (Spec, error) + func (s Spec) Forked() bool + func (s Spec) Freeze() (Spec, error) + func (s Spec) Privileges() []string + type UsageTracker struct + func NewUsageTracker(path string) (*UsageTracker, error) + func (t *UsageTracker) Record(name string, at time.Time) error + func (t *UsageTracker) Scores(now time.Time) map[string]float64