skills

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 15 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 SearchResult

type SearchResult struct {
	ID       string `json:"id"`
	SkillID  string `json:"skillId"`
	Name     string `json:"name"`
	Installs int    `json:"installs"`
	Source   string `json:"source"`
}

SearchResult represents a skill from the skills.sh ecosystem.

func Search(ctx context.Context, query string, limit int) ([]SearchResult, error)

Search queries the skills.sh API for skills matching the query.

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