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.
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.
Click to show internal directories.
Click to hide internal directories.