skills

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSkillsPrompt

func BuildSkillsPrompt(skills []Skill) string

BuildSkillsPrompt generates a prompt section describing available skills.

Types

type Skill

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

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

func Load

func Load() []Skill

Load discovers and loads all skills from standard locations. Skills are loaded from (in order, later overrides earlier):

  • ~/.codex/skills/ (recursive)
  • ~/.claude/skills/ (flat)
  • ./.claude/skills/ (flat, project-local)

Jump to

Keyboard shortcuts

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