skill

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package skill implements procedural memory — reusable step sequences. A skill is a named sequence of steps that can be stored, retrieved, and replayed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replay

func Replay(s *Skill) string

Replay returns the steps of a skill as a formatted string for agent injection.

func Store

func Store(ctx context.Context, eng *engine.Engine, s *Skill, project string) (*storage.Node, error)

Store saves a skill as a node in the memory graph.

Types

type Skill

type Skill struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Steps       []Step `json:"steps"`
	Tags        string `json:"tags,omitempty"`
}

Skill is a named procedural memory with ordered steps.

func ListSkills

func ListSkills(ctx context.Context, store storage.Storage, project string) ([]*Skill, error)

ListSkills returns all skill nodes for a project.

func Load

func Load(ctx context.Context, store storage.Storage, name, project string) (*Skill, error)

Load retrieves a skill by name from the memory graph.

type Step

type Step struct {
	Order       int    `json:"order"`
	Description string `json:"description"`
	Command     string `json:"command,omitempty"` // optional shell command
	Tool        string `json:"tool,omitempty"`    // optional MCP tool name
}

Step is a single step in a skill.

Jump to

Keyboard shortcuts

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