skills

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBuiltinSkills added in v0.3.0

func DefaultBuiltinSkills() map[string]string

DefaultBuiltinSkills returns the built-in skills shipped with golem.

func EnsureBuiltinSkills added in v0.3.0

func EnsureBuiltinSkills(configDir string) error

EnsureBuiltinSkills writes default builtin skills into <configDir>/builtin-skills when they do not already exist.

Types

type AvailableSkill added in v0.3.0

type AvailableSkill struct {
	Name        string   `json:"name"`
	Repository  string   `json:"repository"`
	Description string   `json:"description"`
	Author      string   `json:"author"`
	Tags        []string `json:"tags"`
}

AvailableSkill is an entry from the remote skills index.

type Installer

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

Installer manages skill installation and removal.

func NewInstaller

func NewInstaller(workspacePath string) *Installer

NewInstaller creates an installer targeting the given workspace.

func (*Installer) Install

func (i *Installer) Install(ctx context.Context, repo string) error

Install downloads a SKILL.md from a GitHub repository. repo format: "owner/repo" or "owner/repo/path/to/SKILL.md" The skill name is derived from the repo name by default.

func (*Installer) Search added in v0.3.0

func (i *Installer) Search(ctx context.Context) ([]AvailableSkill, error)

Search returns available skills from the configured index URL.

func (*Installer) Uninstall

func (i *Installer) Uninstall(name string) error

Uninstall removes a skill by name.

type Loader

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

Loader discovers and loads skill files.

func NewLoader

func NewLoader(workspacePath string) *Loader

NewLoader creates a skill loader for the given workspace.

func (*Loader) BuildSkillsSummary

func (l *Loader) BuildSkillsSummary() string

BuildSkillsSummary returns a formatted summary of all skills for system prompt injection.

func (*Loader) ListSkills

func (l *Loader) ListSkills() []SkillInfo

ListSkills returns all discovered skills (workspace > global > builtin).

func (*Loader) LoadSkill

func (l *Loader) LoadSkill(name string) (string, error)

LoadSkill reads the content of a skill by name.

type SkillInfo

type SkillInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Path        string `json:"path"`
	Source      string `json:"source"` // "workspace" | "global" | "builtin"
}

SkillInfo describes a loaded skill.

Jump to

Keyboard shortcuts

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