skill

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSkillNotFound = errors.New("skill: SKILL.md not found")
	ErrSkillParse    = errors.New("skill: parse error")
)

@sk-task skills-system#T1.1: sentinel errors for skill loading (AC-001, AC-003, AC-011)

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry scans a directory for skill subdirectories and provides listing and lookup.

func NewRegistry

func NewRegistry(basePath string) *Registry

NewRegistry creates a new Registry that scans the given base path for skills.

func (*Registry) List

func (r *Registry) List() ([]Skill, error)

List scans the base path for subdirectories containing SKILL.md and returns all parsed skills. Returns an empty slice if the base path does not exist or contains no valid skills.

func (*Registry) Lookup

func (r *Registry) Lookup(name string) (*Skill, bool)

Lookup searches for a skill with the given name in the base path. Returns the skill and true if found, or nil and false if not found.

type Skill

type Skill struct {
	Name         string
	Description  string
	Body         string
	Version      string
	Dependencies []string
}

Skill represents a single domain-expertise package loaded from a SKILL.md file.

func LoadSkills

func LoadSkills(paths []string) ([]Skill, error)

@sk-task skills-system#T1.1: LoadSkills loads multiple skills from directory paths (AC-001, AC-007, AC-011)

func ParseSKILL

func ParseSKILL(path string) (*Skill, error)

@sk-task skills-system#T1.1: ParseSKILL reads a SKILL.md file and returns a Skill (AC-001, AC-002, AC-003, AC-007)

Jump to

Keyboard shortcuts

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