diff --git a/internal/cli/skill/list.go b/internal/cli/skill/list.go index 8317277b..4e5e6659 100644 --- a/internal/cli/skill/list.go +++ b/internal/cli/skill/list.go @@ -31,6 +31,10 @@ func init() { } func runList(cmd *cobra.Command, args []string) error { + if listPageSize <= 0 { + return fmt.Errorf("--page-size must be a positive integer, got %d", listPageSize) + } + if apiClient == nil { return fmt.Errorf("API client not initialized") }