कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

create-cli

steipete द्वारा

CLI Utilities
2.4kclawskills.sh द्वारा बताए गए डाउनलोड
8स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Design CLI arguments, flags, subcommands.

विवरण

यह स्किल क्या करती है

Designs CLI surface area before or during implementation: command trees, flags, subcommands, help text, output formats, exit codes, and config precedence. Applies the clig.dev rubric to produce a complete, implementable spec rather than ad-hoc interface decisions.

Producing a full spec first prevents interface changes after users depend on the CLI, which are expensive to backtrack.

इसे कब इस्तेमाल करें

  • Spec out a new build tool's subcommands and flags before writing any code
  • Audit an existing CLI for inconsistent flag naming across subcommands
  • Define exit codes and error messages for a deployment script
  • Add --json output and --dry-run support to a command that lacks them
  • Establish config file vs env var precedence for a multi-environment tool

उदाहरण वर्कफ़्लो

इनपुट

User asks: design a CLI for a file sync tool that targets both humans and scripts

एजेंट
  1. 1

    Asks minimum clarifying questions: command name, input sources, interactivity needs, and output contract

  2. 2

    Produces a command tree with init, sync, and status subcommands

  3. 3

    Defines a flags table with types, defaults, and required/optional markers

  4. 4

    Specifies stdout vs stderr contract, --json mode, and exit code map

  5. 5

    Outputs 5-10 example invocations including piped and --no-input cases

आउटपुट

A compact CLI spec the user can hand directly to an implementer or use as a coding prompt

इंस्टॉलेशन

clawhub install steipete/create-cli

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक