Help us shape the future of Go! Take the 2026 Go Developer Survey

skill

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, deps Deps) (skill.Registry, error)

New registers skill/filesystem: Scan skill bundle directories for SKILL.md definitions.

Types

type Config

type Config struct {
	// Dirs are directories to scan, in precedence order; each may use the global: or local: scope prefix.
	Dirs []string `json:"dirs"`
}

func (*Config) SetDefaults added in v0.3.48

func (c *Config) SetDefaults()

SetDefaults implements pluginkit.Defaulter.

type Deps

type Deps struct {
	FS        filesystem.Service `json:"fs"`
	Workspace workspace.Service  `json:"workspace"`
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) List

func (r *Registry) List(ctx context.Context) ([]skill.Descriptor, error)

func (*Registry) Load

func (r *Registry) Load(ctx context.Context, name string) (skill.Content, error)

Jump to

Keyboard shortcuts

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