skillscmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package skillscmd provides Kong-compatible command structs for skillsmith integration. Embed Commands in a Kong CLI options struct to add a "skills" subcommand.

Usage:

type CLIOptions struct {
    Skills *skillscmd.Commands `cmd:"skills" help:"manage agent skills"`
}

After Kong parsing, dispatch with:

smith, _ := skillsmith.New("mytool", version, skillsFS)
err := opts.Skills.Run(ctx, smith)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	List      *ListOption   `cmd:"" help:"list available skills"`
	Install   *ModifyOption `cmd:"" help:"install skills"`
	Update    *ModifyOption `cmd:"" help:"update installed skills"`
	Reinstall *ModifyOption `cmd:"" help:"reinstall all managed skills"`
	Uninstall *ModifyOption `cmd:"" help:"uninstall managed skills"`
	Status    *StatusOption `cmd:"" help:"show installation status"`
}

Commands defines Kong subcommands for skills management.

func (*Commands) Run

func (c *Commands) Run(ctx context.Context, s *skillsmith.Smith) error

Run dispatches to the active subcommand based on which option is non-nil.

type ListOption

type ListOption struct{}

ListOption defines CLI options for the list subcommand.

type ModifyOption

type ModifyOption struct {
	Scope  string `help:"install scope (user or repo)" default:"user" enum:"user,repo"`
	Prefix string `help:"override install directory" default:""`
	DryRun bool   `help:"preview changes without applying" name:"dry-run" default:"false"`
	Force  bool   `help:"overwrite unmanaged skills or force downgrade" default:"false"`
}

ModifyOption defines CLI options for install/update/reinstall/uninstall subcommands.

type StatusOption

type StatusOption struct {
	Scope  string `help:"install scope (user or repo)" default:"user" enum:"user,repo"`
	Prefix string `help:"override install directory" default:""`
}

StatusOption defines CLI options for the status subcommand.

Jump to

Keyboard shortcuts

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