skills

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSystemPromptInjection

func BuildSystemPromptInjection(skills []Skill) string

BuildSystemPromptInjection generates the skills section for the system prompt. It follows the Lazy Load pattern: listing available skills and instructing the agent to read definition files.

Types

type Skill

type Skill struct {
	Name        string                 `yaml:"name"`
	Description string                 `yaml:"description"`
	Path        string                 `yaml:"-"` // Absolute path to the SKILL.md file
	Metadata    map[string]interface{} `yaml:"metadata,omitempty"`
}

Skill represents a loaded AgentSkill

func LoadSkillsFromDirs

func LoadSkillsFromDirs(dirs []string) ([]Skill, error)

LoadSkillsFromDirs scans the provided directories for SKILL.md files and loads them.

Jump to

Keyboard shortcuts

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