skillbundle

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package skillbundle embeds the skills shipped inside the binary (bundled/). A fresh install can then provision an agent client before any KB exists. They are handed to the tools as a filesystem, alongside the skills a KB provides.

Index

Constants

This section is empty.

Variables

Functions

func LegacyNames added in v0.26.0

func LegacyNames() map[string]string

LegacyNames returns a copy of the old-name → current-name map.

func ProcedureNames added in v0.26.0

func ProcedureNames() []string

ProcedureNames returns the short names, in listing order.

func Renamed added in v0.26.0

func Renamed(name string) (current string, ok bool)

Renamed returns the current name of a bundled skill that was known by name before D958.

Types

type Procedure added in v0.26.0

type Procedure struct {
	// Short is the name a caller types; Skill is the bundled skill's name.
	Short, Skill string
	// UseWhen is the one-line trigger shown in the procedures list.
	UseWhen string
	// Note is one line for a reader without a shell; empty when the body
	// needs none.
	Note string
}

Procedure is a bundled skill that kb_guide serves as a step-by-step procedure to a client with no filesystem (D1100).

func FindProcedure added in v0.26.0

func FindProcedure(name string) (Procedure, bool)

FindProcedure resolves a short or full bundled name (trimmed, case-insensitive). A bundled skill that is not served, and a pre-D958 name, are not found.

func Procedures added in v0.26.0

func Procedures() []Procedure

Procedures returns a copy of the served list, in listing order.

func (Procedure) Body added in v0.26.0

func (p Procedure) Body(fsys fs.FS) (string, error)

Body returns the procedure's SKILL.md without its frontmatter, read from fsys (rooted so that bundled/<skill>/SKILL.md exists).

func (Procedure) Reference added in v0.26.0

func (p Procedure) Reference(fsys fs.FS, file string) (text string, ok bool)

Reference returns a file under the procedure's references/ verbatim. file must be canonical slash form, start with references/ and name a regular file; anything else is refused with ok false.

func (Procedure) ReferenceFiles added in v0.26.0

func (p Procedure) ReferenceFiles(fsys fs.FS) []string

ReferenceFiles lists the files under the procedure's references/, sorted, as "references/<name>"; empty when the directory is absent.

Jump to

Keyboard shortcuts

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