skills

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package skills exposes three LLM-callable tools that surface Agent Skills to a chat model through progressive disclosure. It is a thin adapter over the skills module's github.com/Tangerg/scope/skills.Source capability: the base module parses, validates, and serves skill content; this package maps that onto the shared `tool.Tool` contract.

Each disclosure step has one tool and one input shape:

  • list_skills — every skill's name + description
  • load_skill — one skill's full instruction body, by name
  • read_skill_resource — one bundled file under a skill

Scripts bundled with a skill are NOT executed here — the model runs them with its own shell/file tools after reading the instructions.

Index

Constants

View Source
const (
	DefaultMaxOutputBytes = int64(256 * 1024)
)

Variables

View Source
var ErrNilSource = errors.New("skills: source must not be nil")

Functions

func NewTools

func NewTools(source skillsrc.ResourceSource, config Config) ([]toolcontract.Tool, error)

Types

type Config

type Config struct {
	MaxOutputBytes int64
}

type LoadSkillRequest

type LoadSkillRequest struct {
	Name string `` /* 136-byte string literal not displayed */
}

type ReadSkillResourceRequest

type ReadSkillResourceRequest struct {
	Name string `` /* 129-byte string literal not displayed */
	Path string `` /* 159-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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