skills

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, source, targetDir string) (string, error)

Install fetches a skill from source and installs it into targetDir. Source formats:

Returns the installed skill name.

func Remove

func Remove(name, skillDir string) error

Remove deletes an installed skill directory after validating the name.

func SkillsDefinition added in v0.8.0

func SkillsDefinition() toolspec.Definition

SkillsDefinition returns the tool definition without requiring runtime paths.

Types

type SkillsTool

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

SkillsTool exposes skill management as an agent tool.

func NewTool

func NewTool(annaHome, workspace, cwd string) *SkillsTool

NewTool creates a SkillsTool for the given anna home, workspace and working directory. The workspace should be a per-agent workspace path (e.g. workspaces/{agentID}/) so that installed skills are isolated per agent.

func (*SkillsTool) Definition

func (t *SkillsTool) Definition() toolspec.Definition

Definition returns the tool definition for the LLM.

func (*SkillsTool) Execute

func (t *SkillsTool) Execute(ctx context.Context, args map[string]any) (string, error)

Execute runs the skills tool action.

Jump to

Keyboard shortcuts

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