discovery

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveredSkill

type DiscoveredSkill struct {
	Name      string // directory name containing SKILL.md
	SkillPath string // absolute path to SKILL.md
	EvalPath  string // absolute path to eval.yaml (empty if not found)
	Dir       string // absolute path to the skill directory
}

DiscoveredSkill represents a skill found during directory traversal.

func Discover

func Discover(root string) ([]DiscoveredSkill, error)

Discover walks the given root directory and finds all skills with eval configs. A skill is a directory containing SKILL.md. An eval config is eval.yaml either in the same directory, in an evals/ subdirectory, or in a tests/ subdirectory.

func FilterWithEval

func FilterWithEval(skills []DiscoveredSkill) []DiscoveredSkill

FilterWithEval returns only skills that have a discovered eval config.

func FilterWithoutEval

func FilterWithoutEval(skills []DiscoveredSkill) []DiscoveredSkill

FilterWithoutEval returns only skills that lack an eval config.

func (DiscoveredSkill) HasEval

func (d DiscoveredSkill) HasEval() bool

HasEval returns true if the skill has a discovered eval config.

Jump to

Keyboard shortcuts

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