discovery

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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, in a tests/ subdirectory, or in a project-layout evals/{name}/ directory two levels above the skill directory (e.g. project-root/skills/{name}/SKILL.md → project-root/evals/{name}/eval.yaml).

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