Documentation
¶
Overview ¶
Package skill parses SKILL.md frontmatter for transitive dependency resolution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkillMeta ¶
type SkillMeta struct {
Name string `yaml:"name"`
Description string `yaml:"description,omitempty"`
Dependencies []string `yaml:"dependencies,omitempty"`
Policy string `yaml:"policy,omitempty"`
}
SkillMeta holds parsed YAML frontmatter from a SKILL.md file.
func ParseFrontmatter ¶
ParseFrontmatter extracts the YAML frontmatter block (delimited by "---") from SKILL.md content and unmarshals it into SkillMeta. Returns nil (no error) if the content has no frontmatter. Returns an error only if frontmatter is present but malformed.
Click to show internal directories.
Click to hide internal directories.