一键导入
add-command
Add a new cobra subcommand to the CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new cobra subcommand to the CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
QA the honeycomb CLI against a live account to find bugs and feature gaps. Target one command or resource family for manual testing, or sweep everything before a release. Use when dogfooding the CLI, reproducing a bug, or producing a findings report mapped to issues.
Manage Honeycomb boards: create, update panels, configure visualizations, and review in Chrome. Activated by explicit mention of Honeycomb boards or /board invocation.
Design and build Honeycomb queries: calculations, filters, breakdowns, visualization selection, granularity tuning, and anti-patterns. Activated by explicit mention of Honeycomb queries or /query invocation.
Honeycomb CLI and MCP server usage — auth, queries, datasets, SLOs, boards, triggers, markers, columns, and raw API requests for observability workflows
Working with Honeycomb SLOs, burn alerts, and SLO history
基于 SOC 职业分类
| name | add-command |
| description | Add a new cobra subcommand to the CLI |
| user_invocable | true |
Add a new cobra subcommand following the project's patterns.
cmd/ to understand patternscmd/<name>.go with a New<Name>Cmd factory function*iostreams.IOStreamsAddCommand in the parent's factory--format output support (json, table, yaml)cmd/<name>_test.go with tests using iostreams.Test()func NewExampleCmd(ios *iostreams.IOStreams) *cobra.Command {
opts := &ExampleOptions{IOStreams: ios}
cmd := &cobra.Command{
Use: "example",
Short: "One-line description",
RunE: func(_ *cobra.Command, _ []string) error {
return runExample(opts)
},
}
cmd.Flags().StringVar(&opts.Format, "format", "", "Output format: json, table, yaml")
return cmd
}
func runExample(opts *ExampleOptions) error {
// Implementation
return nil
}
New*Cmd factory, no init()SilenceUsage: true on subcommands that have RunE--format flag if command produces outputios.CanPrompt())iostreams.Test()