skills

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package skills loads SKILL.md bundles from .agents/skills/<name>/ and exposes them as an ADK Toolset the agent can invoke.

The schema mirrors Anthropic's published SKILL.md frontmatter so users can drop existing skill bundles directly into a project.

Bodies load lazily on invocation — we keep cold-start fast by skipping skill.WithCompletePreloadSource.

Index

Constants

View Source
const SkillDirName = "skills"

SkillDirName is the project-local directory holding skill bundles.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name        string
	Description string
}

Info is the per-skill metadata surfaced to hosts that want to render a /skills view.

type Skills

type Skills struct {
	Toolset adktool.Toolset
	Infos   []Info
}

Skills bundles the discovered skills' toolset (for agent.WithToolsets) alongside the metadata list.

func Load

func Load(ctx context.Context, agentsDir string, gate *permissions.Gate) (Skills, error)

Load discovers skills under agentsDir/skills/. A missing directory (or empty agentsDir) yields a zero Skills with no error — most projects don't use skills.

gate (optional) wraps the resulting toolset so skill invocations go through the permission system. Pass nil to skip gating.

func (Skills) Empty

func (s Skills) Empty() bool

Empty reports whether no skills were discovered.

Jump to

Keyboard shortcuts

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