skilltool

package
v0.85.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package skilltool provides the built-in activate_skill tool, a dedicated activation entry point for agentskills.io skills (issue #65, gaps #13/#14).

While a skill can always be activated by reading its SKILL.md with the generic read tool, a dedicated tool offers an enum-constrained skill name (preventing hallucinated names), bundled-resource enumeration, and per-session deduplication so the same skill is not re-injected repeatedly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(names []string, provider SkillProvider) fantasy.AgentTool

New builds the activate_skill tool. names is the initial set of skill names used to populate the enum constraint on the name parameter; provider is queried at call time to resolve the skill by name (so runtime additions resolve even if absent from the enum). Returns nil when no skill names are available.

Types

type SkillProvider

type SkillProvider func() []*skills.Skill

SkillProvider returns the skills currently available for activation. It is queried on every call so runtime skill mutations are reflected.

Jump to

Keyboard shortcuts

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