skills

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSkillPrompt

func BuildSkillPrompt(skill *config.Skill) string

BuildSkillPrompt builds the full prompt for a single activated skill

Types

type Manager

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

Manager manages skills loaded from config

func GetManager

func GetManager() *Manager

GetManager returns the global skills manager

func (*Manager) BuildAllSkillsPrompt added in v1.33.55

func (m *Manager) BuildAllSkillsPrompt() string

BuildAllSkillsPrompt builds the system prompt section with ALL skills and their full instructions

func (*Manager) BuildFullPrompt

func (m *Manager) BuildFullPrompt(skillNames []string) string

BuildFullPrompt builds a prompt section with full instructions for specific skills Use this when a skill has been matched/activated

func (*Manager) Count

func (m *Manager) Count() int

Count returns the number of enabled skills

func (*Manager) GetAll

func (m *Manager) GetAll() []config.Skill

GetAll returns all enabled skills

func (*Manager) GetByCategory

func (m *Manager) GetByCategory(category string) []config.Skill

GetByCategory returns skills by category

func (*Manager) GetByName

func (m *Manager) GetByName(name string) *config.Skill

GetByName returns a skill by name

func (*Manager) GetInstructions

func (m *Manager) GetInstructions(name string) string

GetInstructions returns the full instructions for a skill

func (*Manager) GetRequiredTools

func (m *Manager) GetRequiredTools(name string) []string

GetRequiredTools returns the MCP/builtin tools required by a skill

func (*Manager) GetSkillsSummary

func (m *Manager) GetSkillsSummary() string

GetSkillsSummary returns a brief summary of available skills

func (*Manager) Initialize

func (m *Manager) Initialize(cfg *config.SkillsConfig)

Initialize loads skills from config

func (*Manager) IsEnabled

func (m *Manager) IsEnabled() bool

IsEnabled returns whether skills are enabled

func (*Manager) MatchSkills added in v1.33.55

func (m *Manager) MatchSkills(input string) []config.Skill

MatchSkills matches user input against skill name and description Returns skills that are relevant to the input

Jump to

Keyboard shortcuts

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