skill

package
v0.3.34 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package skill defines injectable boundaries for skill discovery and loading.

skill/filesystem (*plugins/skill.Registry) implements Registry via deps.fs and deps.workspace.

prompt/section/skills and tool/skill require cap/skill.Registry (typically skills.default). tool/skill also requires cap/session.Skills for RenderSkillContent and AppendSkillLoad.

Parsing and bundle layout live in runtime/skill; only skill/filesystem imports that package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Name          string            `json:"name"`
	Description   string            `json:"description"`
	Body          string            `json:"body"`
	Path          string            `json:"path"`
	License       string            `json:"license,omitempty"`
	Compatibility string            `json:"compatibility,omitempty"`
	AllowedTools  string            `json:"allowedTools,omitempty"`
	Metadata      map[string]string `json:"metadata,omitempty"`
}

type Descriptor

type Descriptor struct {
	Name          string `json:"name"`
	Description   string `json:"description"`
	Path          string `json:"path"`
	License       string `json:"license,omitempty"`
	Compatibility string `json:"compatibility,omitempty"`
}

type Registry

type Registry interface {
	List(context.Context) ([]Descriptor, error)
	Load(context.Context, string) (Content, error)
}

Jump to

Keyboard shortcuts

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