skill

package
v0.0.0-...-f56615f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package skill discovers SKILL.md instructions and injects explicitly named skills into a model turn.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	// contains filtered or unexported fields
}

func Discover

func Discover(roots ...string) (*Catalog, error)

Discover reads SKILL.md files below each root. Later roots override an earlier skill with the same name, so project skills can override user skills.

func (*Catalog) Instructions

func (c *Catalog) Instructions(prompt string) string

Instructions returns the model-visible local skill catalog with exact file paths. The model reads a selected local SKILL.md through normal read-only filesystem tools; special skill tools are reserved for non-file authorities that SuperCode does not currently expose.

func (*Catalog) Len

func (c *Catalog) Len() int

func (*Catalog) Reload

func (c *Catalog) Reload() error

func (*Catalog) Skills

func (c *Catalog) Skills() []Skill

type Skill

type Skill struct {
	Name        string
	Description string
	Path        string
	Content     string
	Requires    []string
	Triggers    []string
}

func (Skill) MissingDependencies

func (s Skill) MissingDependencies() []string

Jump to

Keyboard shortcuts

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