Help us shape the future of Go! Take the 2026 Go Developer Survey

skillgen

package
v0.248.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package skillgen renders an urfave/cli v3 command tree into agent-facing discovery artifacts without making those artifacts runtime authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMarkdown

func RenderMarkdown(commands []*cli.Command, root string) string

RenderMarkdown walks commands and emits a deterministic markdown lookup table, one section per leaf verb:

func RenderYAML

func RenderYAML(commands []*cli.Command, root string) (string, error)

RenderYAML walks commands and emits a yaml document of Entry rows under a top-level `commands:` key. Each path is prefixed with root.

Types

type Bundle

type Bundle struct {
	Name         string
	Skill        string
	CommandsYAML string
}

Bundle is one native agent skill plus its lazy command index.

func RenderSkill

func RenderSkill(commands []*cli.Command, root string) (Bundle, error)

RenderSkill builds a concise SKILL.md plus a complete lazy command index. Live help and describe output remain authoritative for command behavior.

type Entry

type Entry struct {
	Path    []string `yaml:"path"`
	Summary string   `yaml:"summary,omitempty"`
	Flags   []string `yaml:"flags,omitempty"`
}

Entry is one reachable leaf in the structured YAML command index.

Jump to

Keyboard shortcuts

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