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.