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

CreateCLI

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

यह स्किल TypeScript में तैयार-इस्तेमाल कमांड लाइन टूल बनाती है, जिनमें दस्तावेज़ और सही exit codes होते हैं। यह उन डेवलपरों के लिए है जिन्हें किसी API को लपेटने या किसी काम को स्वचालित करने वाला छोटा टूल चाहिए।

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

  • ✓जब आप एक ऐसा कमांड लाइन टूल चाहते हों जो आपके इस्तेमाल किए API को लपेटे।
  • ✓जब आपको कुछ सरल कमांड वाला छोटा स्वचालन टूल चाहिए।
  • ✓जब मौजूदा कमांड लाइन टूल बढ़ गया हो और उसे subcommands चाहिए।

Skill का लिंक

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/CreateCLI/SKILL.md

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

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

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

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

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

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

“मेरे लिए TypeScript में एक कमांड लाइन टूल बनाइए जो मेरा API डेटा JSON में एक्सपोर्ट करे।”

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

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

स्किल कितने कमांड चाहिए, इस आधार पर तीन टेम्पलेट में से एक चुनती है, सरल argument parsing से लेकर बड़े टूल के लिए फ़्रेमवर्क तक। फिर वह कोड, README, package फ़ाइल और सख़्त कॉन्फ़िगरेशन बनाती है।

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

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

CreateCLI

Contents: Ideal State · Intent Routing · Data & Config · Gotchas · Examples

Generates production-ready TypeScript CLIs, from agent-first CLIs for public web apps (API-key auth, browser device login) to personal and project tools. Every CLI ships with full implementation, README and QUICKSTART, a Bun package.json, strict tsconfig, JSON output, and correct exit codes. A three-tier template system picks the right complexity: Tier 1 manual arg parsing with zero deps (most cases), Tier 2 Commander.js for subcommands, Tier 3 oclif as a reference for enterprise scale.

Shared facts the intents rely on:

  • Tiers. Tier 1 parses process.argv by hand with zero framework dependencies, Bun + TypeScript and type-safe interfaces in ~300-400 lines, in four sections: configuration, command functions, help documentation, main entry point. It fits API clients, data transformers and simple automation with 2-10 commands, simple arguments, JSON output and no subcommands. Tier 2 (Commander.js) is the escalation when any Tier 2 indicator holds, the same list for CreateCli and UpgradeTier: 10+ commands that need grouping, git-style subcommands (cli convert json csv / cli convert csv json), a plugin architecture, complex nested option combinations, or multiple output format engines (a --format json flag alone is standard Tier 1 output control). A long list of simple, ungrouped commands is not an indicator. Tier 3 (oclif) is reference only, documentation and no templates, for Heroku CLI or Salesforce CLI scale.
  • Stack. Runtime and package manager are Bun, the language is TypeScript with a strict tsconfig, tests (when added) run under bun test ./<path>, output is deterministic JSON that pipes to jq and grep, and documentation is README + QUICKSTART.
  • Placement. ~/.claude/LIFEOS/TOOLS/[cli-name]/ holds personal CLIs and ~/Projects/[project-name]/ project-specific ones. The two sit in different git repositories, so confirm which repository a CLI directory belongs to before any git operation in it.
  • CLI-First Architecture (LIFEOS/DOCUMENTATION/Tools/CliFirstArchitecture.md): every generated CLI is deterministic (same input → same output), clean (single responsibility), composable (JSON output pipes to other tools), documented (comprehensive help and examples) and testable (predictable behavior).

Ideal State

  • Every CLI the skill creates or changes ships whole: typed source, README.md and QUICKSTART.md, a Bun package.json, a strict tsconfig.json, an .env.example, and --help that lists every command with real examples.
  • Output follows one contract across intents: JSON to stdout, errors with context to stderr, exit code 0 on success and 1 on error, and strict tsc clean before the work is reported done.
  • A CLI for a public-facing app meets the agent-first contract (OPERATIONAL_PREFERENCES § Deployment): a browser device login that mints a scoped, expiring API key; --json stdout and fixed exit codes; a help --json catalog; RateLimit headers with per-key and per-IP limits; /docs/cli rendered from the CLI's own catalog; and a self-hosted, SHA-checked install. Intents/CreateCli.md § Ideal State itemizes it, and Config.md names the reference implementation to match when one is configured. Where that contract and the output contract above differ, the agent-first contract governs.
  • The tier fits the need: Tier 1 unless a Tier 2 indicator holds, oclif never generated, and a CLI moves up a tier only when it has outgrown the one it is on.
  • A change to an existing CLI keeps every command it already had working.

Intent Routing

Intent Trigger File
CreateCli "create CLI", "build a CLI", "wrap this API in a command-line tool" Intents/CreateCli.md
AddCommand "add a command to <cli>" Intents/AddCommand.md
UpgradeTier "upgrade tier", "move this CLI to Commander" Intents/UpgradeTier.md
File Read when
FrameworkComparison.md choosing or justifying a framework: Manual vs Commander vs oclif, plus cleye, citty, Yargs and Ink
Tools/CheckCli.ts proving a CLI meets the output contract: strict tsc, --help names every command, --version, unknown command exits 1, --json-args stdout parses as JSON
Setup.md first-time setup: the optional Reference CLI: key in Config.md

Data & Config

User customizations live at `<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Creat

अक्सर पूछे जाने वाले सवाल

टूल को बड़े टेम्पलेट की ज़रूरत कब होती है?

जब उसे कई समूहित कमांड, git जैसे subcommands, plugin डिज़ाइन या कई आउटपुट फ़ॉर्मेट चाहिए, तब वह फ़्रेमवर्क टेम्पलेट पर जाता है।

बने टूल के साथ क्या मिलता है?

पूरा कोड, README और quickstart, package फ़ाइल और सख़्त TypeScript कॉन्फ़िग।

क्या यह मेरे मौजूदा टूल में कमांड जोड़ सकती है?

हाँ। स्किल में कमांड जोड़ने और टूल को बड़े टेम्पलेट पर अपग्रेड करने के तरीके हैं।

जानकारी

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

Generates production-ready TypeScript CLIs via a 3-tier template system (manual arg parsing, Commander.js, oclif), each shipping full implementation, docs, package.json, strict config, JSON output, and exit-code compliance. USE WHEN create CLI, build CLI, command-line tool, wrap API, add command, upgrade tier, TypeScript CLI. NOT FOR LifeOS skill scaffolding (use CreateSkill).

repo: danielmiessler/LifeOS

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

LifeOS

20k

आपके एजेंट को LifeOS सेट करने में मदद करती है, एक निजी प्रणाली जो एक इंटरव्यू और डैशबोर्ड से आपकी मौजूदा स्थिति को आपके आदर्श लक्ष्य से जोड़ती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

AnnualReports

20k

आपके एजेंट को प्रमुख विक्रेताओं की साइबर सुरक्षा वार्षिक रिपोर्ट खोजने और तुलना करने में मदद करती है, जैसे उल्लंघन और ransomware के रुझान, हर आँकड़े के स्रोत के साथ।

लेखन और डॉक्यूमेंटरिसर्च

ApertureOscillation

20k

आपके एजेंट को एक डिज़ाइन सवाल को संकीर्ण और व्यापक दायरे में परखना सिखाती है, फिर बनाने से पहले बताना कि दोनों जवाब कहाँ टकराते हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

Aphorisms

20k

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

मार्केटिंगकॉपी और सेल्स

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