skills

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package skills generates SKILL.md files from the CLI's own schema registry.

Usage: glean generate-skills [--output-dir skills/]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(outputDir string) error

Generate writes SKILL.md files to outputDir for all registered schemas.

Types

type CommandEntry

type CommandEntry struct {
	Name        string
	Description string
}

CommandEntry is used by the shared skill template.

type FlagInfo

type FlagInfo struct {
	Name        string
	Type        string
	Default     string
	Description string
	Required    bool
}

FlagInfo holds rendered flag data for templates.

type SkillData

type SkillData struct {
	Name        string
	Description string
	Command     string
	SchemaDesc  string
	Flags       []FlagInfo
	Subcommands []SubcommandInfo
	Example     string
	HasDryRun   bool
}

SkillData holds all data needed to render a SKILL.md template.

type SubcommandInfo

type SubcommandInfo struct {
	Name        string
	Description string
}

SubcommandInfo describes a subcommand.

Jump to

Keyboard shortcuts

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