skill

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func ParseFrontmatter(content []byte) (*SkillMeta, error)

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.

Jump to

Keyboard shortcuts

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