मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग7.4k · #13230

create-cli

यह क्या करती है

यह स्किल बनने से पहले तय करती है कि कोई कमांड लाइन टूल कैसा व्यवहार करे, जिसमें उसके कमांड, विकल्प, आउटपुट और एरर कोड शामिल हैं। यह नया टर्मिनल टूल बनाने वाले डेवलपर्स के लिए है।

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

  • ✓जब आप नया कमांड लाइन टूल डिज़ाइन कर रहे हैं।
  • ✓जब आपको पढ़ने योग्य आउटपुट, JSON आउटपुट और exit codes में से चुनना है।
  • ✓जब किसी कमांड को सुरक्षित विकल्प चाहिए, जैसे dry run या पुष्टि के प्रॉम्प्ट।

Skill का लिंक

https://github.com/steipete/agent-scripts/blob/main/skills/create-cli/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

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

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/steipete/agent-scripts/blob/main/skills/create-cli/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं एक कमांड लाइन टूल बनाना चाहता हूँ जो मेरे नोट्स एक्सपोर्ट करे। इसके कमांड और फ़्लैग डिज़ाइन करने में मदद कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट इंटरफ़ेस तय करने के लिए सिर्फ़ ज़रूरी सवाल पूछता है, फिर सार्वजनिक कमांड लाइन दिशानिर्देशों के अनुसार एक संक्षिप्त स्पेक लिखता है, जिसमें कमांड ट्री, विकल्प, आउटपुट नियम, एरर कोड और सुरक्षा विकल्प होते हैं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Create CLI

Design CLI surface area (syntax + behavior), human-first, script-friendly.

Do This First

Clarify (fast)

Ask, then proceed with best-guess defaults if user is unsure:

  • Command name + one-sentence purpose.
  • Primary user: humans, scripts, or both.
  • Input sources: args vs stdin; files vs URLs; secrets (never via flags).
  • Output contract: human text, --json, --plain, exit codes.
  • Interactivity: prompts allowed? need --no-input? confirmations for destructive ops?
  • Config model: flags/env/config-file; precedence; XDG vs repo-local.
  • Platform/runtime constraints: macOS/Linux/Windows; single binary vs runtime.

Deliverables (what to output)

When designing a CLI, produce a compact spec the user can implement:

  • Command tree + USAGE synopsis.
  • Args/flags table (types, defaults, required/optional, examples).
  • Subcommand semantics (what each does; idempotence; state changes).
  • Output rules: stdout vs stderr; TTY detection; --json/--plain; --quiet/--verbose.
  • Error + exit code map (top failure modes).
  • Safety rules: --dry-run, confirmations, --force, --no-input.
  • Config/env rules + precedence (flags > env > project config > user config > system).
  • Shell completion story (if relevant): install/discoverability; generation command or bundled scripts.
  • 5–10 example invocations (common flows; include piped/stdin examples).

Default Conventions (unless user says otherwise)

  • -h/--help always shows help and ignores other args.
  • --version prints version to stdout.
  • Primary data to stdout; diagnostics/errors to stderr.
  • Add --json for machine output; consider --plain for stable line-based text.
  • Prompts only when stdin is a TTY; --no-input disables prompts.
  • Destructive operations: interactive confirmation + non-interactive requires --force or explicit --confirm=....
  • Respect NO_COLOR, TERM=dumb; provide --no-color.
  • Handle Ctrl-C: exit fast; bounded cleanup; be crash-only when possible.

Templates (copy into your answer)

CLI spec skeleton

Fill these sections, drop anything irrelevant:

  1. Name: mycmd
  2. One-liner: ...
  3. USAGE:
    • mycmd [global flags] <subcommand> [args]
  4. Subcommands:
    • mycmd init ...
    • mycmd run ...
  5. Global flags:
    • -h, --help
    • --version
    • -q, --quiet / -v, --verbose (define exactly)
    • --json / --plain (if applicable)
  6. I/O contract:
    • stdout:
    • stderr:
  7. Exit codes:
    • 0 success
    • 1 generic failure
    • 2 invalid usage (parse/validation)
    • (add command-specific codes only when actually useful)
  8. Env/config:
    • env vars:
    • config file path + precedence:
  9. Examples:
    • …

Notes

  • Prefer recommending a parsing library (language-specific) only when asked; otherwise keep this skill language-agnostic.
  • If the request is “design parameters”, do not drift into implementation.
अक्सर पूछे जाने वाले सवाल

क्या यह पूरा तैयार टूल लिखती है?

नहीं। यह एक संक्षिप्त स्पेक बनाती है, जिसे आप या कोई डेवलपर लागू कर सके।

क्या सीक्रेट फ़्लैग के ज़रिए दिए जाने चाहिए?

नहीं। स्किल कहती है कि सीक्रेट कभी फ़्लैग के ज़रिए न दिए जाएँ।

यह कौन-से दिशानिर्देश मानती है?

clig.dev पर सार्वजनिक कमांड लाइन दिशानिर्देशों पर आधारित एक साथ दिया गया संदर्भ।

जानकारी

लेखक का मूल विवरण

CLI UX/spec: args, flags, help, output, errors, config, dry-run.

repo: steipete/agent-scripts

लोकप्रियता

GitHub स्टार
7.4k
रैंकिंग में स्थान
#13230
लाइसेंस
MIT
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

beeper

7.4k

आपके एजेंट को आपकी लोकल Beeper चैट हिस्ट्री में संदेश खोजने और यह पता करने में मदद करती है कि कोई अस्पष्ट संकेत किस चैट या संपर्क का है।

डेटाडेटाबेस

cloudflare-registrar

7.4k

आपके एजेंट को Cloudflare Registrar पर डोमेन की कीमत और उपलब्धता जाँचने, और पुष्टि के बाद डोमेन रजिस्टर या सूचीबद्ध करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

codexbar

7.4k

आपके एजेंट को Codex, Claude और Kimi जैसी AI सेवाओं पर आपका कितना उपयोग बचा है, यह जाँचने में मदद करती है, जिसमें सीमा, क्रेडिट और रीसेट का समय शामिल है।

AI और एजेंटएजेंट

frontend-design

7.4k

आपके एजेंट को साफ़ डिज़ाइन दिशा के साथ अलग और प्रोडक्शन-गुणवत्ता वाले वेब इंटरफ़ेस बनाने में मदद करती है, और आम AI जैसे लेआउट से बचती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

मिलती-जुलती skills