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

skills

package
v1.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Skill

type Skill struct {
	Name          string            `yaml:"name"`
	Description   string            `yaml:"description"`
	FilePath      string            `yaml:"-"`
	BaseDir       string            `yaml:"-"`
	Files         []string          `yaml:"-"`
	License       string            `yaml:"license"`
	Compatibility string            `yaml:"compatibility"`
	Metadata      map[string]string `yaml:"metadata"`
	AllowedTools  stringOrList      `yaml:"allowed-tools"`
}

Skill represents a loaded skill with its metadata and content location.

func Load

func Load(sources []string) []Skill

Load discovers and loads skills from the given sources. Each source is either "local" (for filesystem-based skills) or an HTTP/HTTPS URL (for remote skills per the well-known skills discovery spec).

Local skills are loaded from (in order, later overrides earlier):

Global locations (from home directory):

  • ~/.codex/skills/ (recursive)
  • ~/.claude/skills/ (flat)
  • ~/.agents/skills/ (recursive)

Project locations (from git root up to cwd, closest wins):

  • .claude/skills/ (flat, only at cwd)
  • .agents/skills/ (flat, scanned from git root to cwd)

Jump to

Keyboard shortcuts

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