Documentation
¶
Overview ¶
Package discovery locates SKILL.md bundles within fetched material and enforces naming and frontmatter schema rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSkill is returned when no SKILL.md can be found. ErrNoSkill = errors.New("no SKILL.md found") // ErrAmbiguousSkill is returned when multiple skills are found and no // explicit path selects one. ErrAmbiguousSkill = errors.New("multiple SKILL.md found; specify a path") )
Sentinel discovery errors.
Functions ¶
This section is empty.
Types ¶
type Skill ¶
type Skill struct {
// Dir is the absolute directory containing SKILL.md.
Dir string
// RelDir is Dir relative to the search root (forward-slash, "." at root).
RelDir string
// Frontmatter is the parsed, validated SKILL.md frontmatter.
Frontmatter metadata.Frontmatter
// Body is the markdown body.
Body []byte
// Warnings carries non-fatal validation warnings (e.g. unknown keys).
Warnings []string
}
Skill is a discovered, validated skill bundle.
Click to show internal directories.
Click to hide internal directories.