skills

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package skills discovers and parses application-owned SKILL.md files.

Discovery walks a host-only MountSession (AgentSpec.OpenSkills). That session is not the agent /workspace tree. The agent reads instructions only through read_skill.

Index

Constants

View Source
const DefaultRoot = vfs.WorkspacePoint + "/skills"

DefaultRoot is the virtual directory the loader walks when Root is empty.

Variables

This section is empty.

Functions

func Catalog

func Catalog(loaded []Skill) string

Catalog creates the small prompt section shown before a skill is selected. Full instructions are intentionally omitted to preserve context window.

Types

type Loader

type Loader struct {
	Session *vfs.MountSession
	// Root is the virtual directory that holds one child folder per skill.
	// Empty means DefaultRoot (/workspace/skills).
	Root string
}

Loader loads one skill per immediate child of Root. A nil session or missing Root directory loads nothing.

func (Loader) Load added in v0.2.0

func (l Loader) Load(ctx context.Context) ([]Skill, error)

Load implements SkillLoader.

type Skill

type Skill struct {
	Name         string
	Description  string
	Instructions string
	// Path is the virtual path of SKILL.md when loaded from a mount.
	Path string
}

type SkillLoader

type SkillLoader interface {
	Load(ctx context.Context) ([]Skill, error)
}

SkillLoader discovers skills for the harness. A loader owns its source configuration; callers only provide the lifetime context for the load.

Jump to

Keyboard shortcuts

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