skills

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) 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 takes priority over global).

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