skill

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

skill parses SKILL.md files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frontmatter

type Frontmatter struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
}

Frontmatter holds parsed YAML frontmatter from SKILL.md.

type Skill

type Skill struct {
	Frontmatter     Frontmatter
	FrontmatterRaw  map[string]any
	FrontmatterNode *yaml.Node
	Body            string
	Path            string
	RawContent      string
	Tokens          int
	Characters      int
	Lines           int
}

Skill represents the current state of a skill for scoring.

func (*Skill) MarshalText

func (s *Skill) MarshalText() ([]byte, error)

func (*Skill) UnmarshalText

func (s *Skill) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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