skills

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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.

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.

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