builtin

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package builtin provides embedded builtin skills for Holon. Builtin skills are embedded in the binary using Go's embed package and can be loaded by reference (e.g., "github/solve").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS() fs.FS

FS returns the embedded skills filesystem, rooted at the skills directory. The returned FS provides access to all builtin skills.

func Has

func Has(ref string) bool

Has checks if a builtin skill exists at the given reference. The reference is a slash-separated path like "github/solve". Returns true if the skill directory exists and contains SKILL.md.

func List

func List() ([]string, error)

List returns all builtin skill references. A skill reference is returned if the directory contains a SKILL.md file.

func Load

func Load(ref string) ([]byte, error)

Load reads the SKILL.md file for a builtin skill. The reference is a slash-separated path like "github/solve". Returns the contents of SKILL.md or an error if the skill doesn't exist.

func LoadDir

func LoadDir(ref string) (map[string][]byte, error)

LoadDir reads the entire skill directory for a builtin skill. Returns a map of filename to content for all files in the skill directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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