builtin

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 6 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 (in this repo, builtin skill refs are flat names like "ghx").

DEPRECATED: Embedded builtin skills are deprecated. Please use remote skill sources via catalog references (skills:, gh:) or direct URLs instead. Configure BuiltinSkillsSource in .holon/config.yaml or use --builtin-skills-source flag. The embedded path will be removed in a future release.

Index

Constants

View Source
const (
	// DeprecationWarning is the warning message shown when using embedded builtin skills
	DeprecationWarning = "Embedded builtin skills are deprecated. " +
		"Please use remote skill sources via catalog references (skills:, gh:) or direct URLs. " +
		"Configure BuiltinSkillsSource in .holon/config.yaml or use --builtin-skills-source flag. " +
		"See https://github.com/holon-run/holon/issues/562 for migration details."
)

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 GitCommit added in v0.11.0

func GitCommit() string

GitCommit returns the git commit SHA at which the builtin skills were generated. Returns empty string if the commit information is not available.

func Has

func Has(ref string) bool

Has checks if a builtin skill exists at the given reference. The reference is the skill directory path within the embedded skills FS (in this repo, typically a flat name like "ghx"). 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 the skill directory path within the embedded skills FS (in this repo, typically a flat name like "ghx"). 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