Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSkillsPrompt ¶
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):
Global locations (from home directory):
- ~/.codex/skills/ (recursive)
- ~/.claude/skills/ (flat)
- ~/.agents/skills/ (flat)
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)
Click to show internal directories.
Click to hide internal directories.