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

skill

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatForPrompt

func FormatForPrompt(skills []Skill) string

FormatForPrompt only includes skills with an on-disk Location; bundled skills appear only after the user has invoked one (which materializes it). The slash-command picker UI lists everything regardless.

func MaterializeBundled added in v0.6.2

func MaterializeBundled(s *Skill) (string, error)

Types

type Skill

type Skill struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	WhenToUse   string `yaml:"when-to-use"`

	Arguments []string `yaml:"arguments"`

	Location string `yaml:"-"`

	Content string `yaml:"-"`

	Raw string `yaml:"-"`

	Bundled bool `yaml:"-"`
}

func Discover

func Discover(root string) ([]Skill, error)

func DiscoverPersonal added in v0.6.2

func DiscoverPersonal() ([]Skill, error)

func FindSkill added in v0.6.2

func FindSkill(name string, skills []Skill) *Skill

func LoadBundled added in v0.6.2

func LoadBundled(fsys fs.FS, root string) ([]Skill, error)

func Merge added in v0.6.2

func Merge(bundled, discovered []Skill) []Skill

func MustDiscover added in v0.6.2

func MustDiscover(root string) []Skill

func MustDiscoverPersonal added in v0.6.2

func MustDiscoverPersonal() []Skill

func (*Skill) AbsoluteDir added in v0.6.2

func (s *Skill) AbsoluteDir(workDir string) string

func (*Skill) ApplyArguments added in v0.6.2

func (s *Skill) ApplyArguments(content, args, skillDir string) string

func (*Skill) GetContent added in v0.6.2

func (s *Skill) GetContent(workingDir string) (string, error)

Jump to

Keyboard shortcuts

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