skill

package
v1.99.0 Latest Latest
Warning

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

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

Documentation

Overview

Package skill defines the shared types used by every source of glab agent skills (bundled, remote, etc.). It intentionally has no dependencies on the source packages — those import this one.

Index

Constants

View Source
const FileName = "SKILL.md"

FileName is the canonical filename for a skill, per the Agent Skills specification (https://agentskills.io).

Variables

This section is empty.

Functions

This section is empty.

Types

type Skill

type Skill struct {
	Name        string
	Description string
	Source      Source
	Files       map[string][]byte
}

Skill is a single agent skill. Files maps each path inside the skill directory (relative to the skill root, e.g. "SKILL.md" or "scripts/extract.py") to its contents. Discovery-only operations (such as `glab skills list`) may return Skill values with Files unpopulated; full skill content is only guaranteed after a Get-style lookup.

func (Skill) SkillFile

func (s Skill) SkillFile() []byte

SkillFile returns the contents of the canonical SKILL.md for this skill, or nil if Files is unpopulated. It is shorthand for s.Files[FileName].

type Source

type Source string

Source identifies where a Skill was loaded from.

const (
	SourceBundled Source = "bundled"
	SourceRemote  Source = "remote"
)

Jump to

Keyboard shortcuts

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