skillgen

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package skillgen renders an urfave/cli v3 command tree into either a flat markdown lookup table or a structured yaml document. Pairs with

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 Entry

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

Entry is one leaf verb in the structured (yaml) form of the command tree. Programmatic consumers (an external orchestrator, a plan-time

Jump to

Keyboard shortcuts

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