cli-patterns — for Claude Code cli-patterns, community, for Claude Code, ide skills, log-level, max-files, prompt-id, logLevel, maxfiles, verbose

v1.0.0

이 스킬 정보

적합한 상황: Ideal for AI agents that need each command is a cobra command object:. 현지화된 요약: Sample prompts for testing Azure SDK documentation quality with doc-review-agent ## Context Hyoka's CLI is built with Cobra, a popular Go CLI framework. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

기능

Each command is a Cobra command object:
var runCmd = &cobra.Command{
Short: "Run evaluation",
Long: "Run an evaluation with prompts and configs.",
Args: cobra.NoArgs, // Positional arguments check

# Core Topics

ronniegeraghty ronniegeraghty
[0]
[0]
Updated: 4/7/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
70
Canonical Locale
en
Detected Body Locale
en

적합한 상황: Ideal for AI agents that need each command is a cobra command object:. 현지화된 요약: Sample prompts for testing Azure SDK documentation quality with doc-review-agent ## Context Hyoka's CLI is built with Cobra, a popular Go CLI framework. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

이 스킬을 사용하는 이유

추천 설명: cli-patterns helps agents each command is a cobra command object:. Sample prompts for testing Azure SDK documentation quality with doc-review-agent ## Context Hyoka's CLI is built with Cobra, a popular Go CLI

최적의 용도

적합한 상황: Ideal for AI agents that need each command is a cobra command object:.

실행 가능한 사용 사례 for cli-patterns

사용 사례: Applying Each command is a Cobra command object:
사용 사례: Applying var runCmd = &cobra.Command{
사용 사례: Applying Short: "Run evaluation",

! 보안 및 제한 사항

  • 제한 사항: cmd.Flags().String("tags", "", "Comma-separated tags (must quote: \"auth,crud\")")
  • 제한 사항: Requires repository-specific context from the skill documentation
  • 제한 사항: Works best when the underlying tools and dependencies are already configured

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is cli-patterns?

적합한 상황: Ideal for AI agents that need each command is a cobra command object:. 현지화된 요약: Sample prompts for testing Azure SDK documentation quality with doc-review-agent ## Context Hyoka's CLI is built with Cobra, a popular Go CLI framework. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

How do I install cli-patterns?

Run the command: npx killer-skills add ronniegeraghty/hyoka/cli-patterns. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for cli-patterns?

Key use cases include: 사용 사례: Applying Each command is a Cobra command object:, 사용 사례: Applying var runCmd = &cobra.Command{, 사용 사례: Applying Short: "Run evaluation",.

Which IDEs are compatible with cli-patterns?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for cli-patterns?

제한 사항: cmd.Flags().String("tags", "", "Comma-separated tags (must quote: \"auth,crud\")"). 제한 사항: Requires repository-specific context from the skill documentation. 제한 사항: Works best when the underlying tools and dependencies are already configured.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add ronniegeraghty/hyoka/cli-patterns. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use cli-patterns immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

cli-patterns

Install cli-patterns, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Context

Hyoka's CLI is built with Cobra, a popular Go CLI framework. Commands are organized in the cmd/ package with consistent flag naming and help text patterns.

Command Structure

Each command is a Cobra command object:

go
1// cmd/run.go 2var runCmd = &cobra.Command{ 3 Use: "run", 4 Short: "Run evaluation", 5 Long: "Run an evaluation with prompts and configs.", 6 7 Args: cobra.NoArgs, // Positional arguments check 8 9 RunE: func(cmd *cobra.Command, args []string) error { 10 // Retrieve flags 11 promptID, _ := cmd.Flags().GetString("prompt-id") 12 config, _ := cmd.Flags().GetString("config") 13 14 // Validate 15 if promptID == "" && config == "" { 16 return fmt.Errorf("either --prompt-id or --config required") 17 } 18 19 // Execute 20 return run(promptID, config) 21 }, 22} 23 24func init() { 25 rootCmd.AddCommand(runCmd) 26 runCmd.Flags().StringP("prompt-id", "", "", "Single prompt ID") 27 runCmd.Flags().StringP("config", "", "", "Config (comma-sep for multiple)") 28}

Flag Naming Conventions

  • Kebab-case: --log-level, --max-files, --prompt-id (not --logLevel, --maxfiles)
  • Short flags: Single-letter for common flags (e.g., -v for --verbose)
  • Suffixes:
    • --*-timeout for duration limits (e.g., --gen-timeout)
    • --skip-* for skipping phases (e.g., --skip-review)
    • --*-file for file paths (e.g., --log-file)

Flag Types and Patterns

String flags:

go
1cmd.Flags().StringP("config", "", "", "Config name")

Comma-separated lists:

go
1cmd.Flags().String("tags", "", "Comma-separated tags (must quote: \"auth,crud\")") 2// Parsed as: strings.Split(value, ",")

Boolean flags:

go
1cmd.Flags().Bool("dry-run", false, "Show what would run without executing")

Numeric flags:

go
1cmd.Flags().Int("max-files", 50, "Max files per eval") 2cmd.Flags().Duration("gen-timeout", 600*time.Second, "Generation timeout")

Help Text Guidelines

Keep help text brief but actionable:

// Good
--config          Config name or comma-sep list
--prompt-id       Single prompt ID (e.g., identity-dp-python-default-credential)
--service         Azure service (e.g., identity, key-vault)
--dry-run         List matching prompts without executing

// Bad (too verbose, no examples)
--prompt-id       The prompt identifier
--config          The configuration to use

Command Execution Pattern

go
1RunE: func(cmd *cobra.Command, args []string) error { 2 // 1. Get flags 3 promptID, _ := cmd.Flags().GetString("prompt-id") 4 config, _ := cmd.Flags().GetString("config") 5 6 // 2. Validate 7 if promptID == "" { 8 return fmt.Errorf("--prompt-id required") 9 } 10 11 // 3. Execute 12 ctx := context.Background() 13 return executeEval(ctx, promptID, config) 14}

Common Commands in Hyoka

  • run — Execute evaluation
  • list — List available prompts
  • validate — Validate prompt schema
  • check-env — Check environment (Copilot SDK, Go version)
  • clean — Clean orphaned sessions
  • serve — Start local web server for results

Error Handling in Commands

Return errors from RunE. Cobra catches them and prints with exit code 1:

go
1RunE: func(cmd *cobra.Command, args []string) error { 2 result, err := runEval(...) 3 if err != nil { 4 slog.Error("Evaluation failed", "error", err) 5 return err // Cobra handles exit 6 } 7 return nil 8}

Output and Logging

  • User output (results, progress): Write to stdout
  • Diagnostic logs: Use slog with --log-level flag
  • Errors: Return error from RunE, let Cobra print

Flag Validation Example

go
1RunE: func(cmd *cobra.Command, args []string) error { 2 config, _ := cmd.Flags().GetString("config") 3 allConfigs, _ := cmd.Flags().GetBool("all-configs") 4 5 if config == "" && !allConfigs { 6 return fmt.Errorf("either --config or --all-configs required") 7 } 8 9 if config != "" && allConfigs { 10 return fmt.Errorf("cannot use both --config and --all-configs") 11 } 12 13 return runWithConfig(config, allConfigs) 14}
  • Root command: hyoka/cmd/root.go
  • Subcommands: hyoka/cmd/*.go
  • Flag parsing utilities: hyoka/cmd/common.go (if shared parsing logic)

Anti-Patterns

  • CamelCase flag names
  • Positional arguments instead of flags
  • Ambiguous short flags (avoid single -a if context unclear)
  • Printing errors and returning them (let Cobra handle)
  • Hardcoding defaults without CLI override

관련 스킬

Looking for an alternative to cli-patterns or another community skill for your workflow? Explore these related open-source skills.

모두 보기

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
인공지능

widget-generator

Logo of f
f

prompts.chat 피드 시스템을 위한 사용자 지정 가능한 위젯 플러그인을 생성합니다

149.6k
0
인공지능

flags

Logo of vercel
vercel

리액트 프레임워크

138.4k
0
브라우저

pr-review

Logo of pytorch
pytorch

파이썬에서 텐서와 동적 신경망 구현 및 강력한 GPU 가속 지원

98.6k
0
개발자