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

cli-creator

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

यह स्किल API, वेब ऐप या मौजूदा स्क्रिप्ट से टिकाऊ कमांड-लाइन टूल बनाने में मदद करती है, ताकि उसे किसी भी फ़ोल्डर से चलाया जा सके। यह उन लोगों के लिए है जो एक ही काम बार-बार करते हैं और उसके लिए भरोसेमंद टूल चाहते हैं।

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

  • ✓जब आपको ऐसा कमांड-लाइन टूल चाहिए जो उस API से डेटा पढ़े या लिखे जिसे आप अक्सर इस्तेमाल करते हैं।
  • ✓जब आपके पास curl उदाहरण या OpenAPI spec हो और आप उन्हें दोबारा इस्तेमाल होने वाले कमांड में बदलवाना चाहें।
  • ✓जब आपको ऐसा टूल चाहिए जिसे AI एजेंट किसी भी प्रोजेक्ट से स्थिर JSON आउटपुट के साथ चला सके।

Skill का लिंक

https://github.com/openai/skills/blob/main/skills/.curated/cli-creator/SKILL.md

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

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

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

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

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

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

“मेरे साझा किए API दस्तावेज़ का इस्तेमाल करके एक कमांड-लाइन टूल बनाइए जो मेरे असफल CI जॉब्स की सूची दिखाए।”

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

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

एजेंट जांचता है कि कौन से टूल इंस्टॉल हैं, उपयुक्त भाषा चुनता है, कमांड का ढांचा बनाता है, लॉगिन संभालता है, और टूल को एक छोटे कमांड नाम के नीचे इंस्टॉल करता है।

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

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

CLI Creator

Create a real CLI that future Codex threads can run by command name from any working directory.

This skill is for durable tools, not one-off scripts. If a short script in the current repo solves the task, write the script there instead.

Start

Name the target tool, its source, and the first real jobs it should do:

  • Source: API docs, OpenAPI JSON, SDK docs, curl examples, browser app, existing internal script, article, or working shell history.
  • Jobs: literal reads/writes such as list drafts, download failed job logs, search messages, upload media, read queue schedule.
  • Install name: a short binary name such as ci-logs, slack-cli, sentry-cli, or buildkite-logs.

Prefer a new folder under ~/code/clis/<tool-name> when the user wants a personal tool and has not named a repo.

Before scaffolding, check whether the proposed command already exists:

command -v <tool-name> || true

If it exists, choose a clearer install name or ask the user.

Choose the Runtime

Before choosing, inspect the user's machine and source material:

command -v cargo rustc node pnpm npm python3 uv || true

Then choose the least surprising toolchain:

  • Default to Rust for a durable CLI Codex should run from any repo: one fast binary, strong argument parsing, good JSON handling, easy copy/install into ~/.local/bin.
  • Use TypeScript/Node when the official SDK, auth helper, browser automation library, or existing repo tooling is the reason the CLI can be better.
  • Use Python when the source is data science, local file transforms, notebooks, SQLite/CSV/JSON analysis, or Python-heavy admin tooling that can still be installed as a durable command.

Do not pick a language that adds setup friction unless it materially improves the CLI. If the best language is not installed, either install the missing toolchain with the user's approval or choose the next-best installed option.

State the choice in one sentence before scaffolding, including the reason and the installed toolchain you found.

Command Contract

Sketch the command surface in chat before coding. Include the binary name, discovery commands, resolve or ID-lookup commands, read commands, write commands, raw escape hatch, auth/config choice, and PATH/install command.

When designing the command surface, read references/agent-cli-patterns.md for the expected composable CLI shape.

Build toward this surface:

  • tool-name --help shows every major capability.
  • tool-name --json doctor verifies config, auth, version, endpoint reachability, and missing setup.
  • tool-name init ... stores local config when env-only auth is painful.
  • Discovery commands find accounts, projects, workspaces, teams, queues, channels, repos, dashboards, or other top-level containers.
  • Resolve commands turn names, URLs, slugs, permalinks, customer input, or build links into stable IDs so future commands do not repeat broad searches.
  • Read commands fetch exact objects and list/search collections. Paginated lists support a bounded --limit, cursor, offset, or clearly documented default.
  • Write commands do one named action each: create, update, delete, upload, schedule, retry, comment, draft. They accept the narrowest stable resource ID, support --dry-run, draft, or preview first when the service allows it, and do not hide writes inside broad commands such as fix, debug, or auto.
  • --json returns stable machine-readable output.
  • A raw escape hatch exists: request, tool-call, api, or the nearest honest name.

Do not expose only a generic request command. Give Codex high-level verbs for the repeated jobs.

Document the JSON policy in the CLI README or equivalent: API pass-through versus CLI envelope, success shape, error shape, and one example for each command family. Under --json, errors must be machine-readable and must not contain credentials.

Auth and Config

Support the boring paths first, in this precedence order:

  1. Environment variable using the service's standard name, such as GITHUB_TOKEN.
  2. User config under ~/.<tool-name>/config.toml or another simple documented path.
  3. --api-key or a tool-specific token flag only for explicit one-off tests. Prefer env/config for normal use because flags can leak into shell history or process listings.

Never print full tokens. doctor --json should say whether a token is available, the auth source category (flag, `env

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

सिर्फ़ स्क्रिप्ट क्यों न लिखें?

स्किल कहती है कि एक बार के काम के लिए मौजूदा प्रोजेक्ट में छोटी स्क्रिप्ट ठीक है, पर यह स्किल टिकाऊ टूल के लिए है।

कौन सी भाषा इस्तेमाल होती है?

स्किल एक तेज़ बाइनरी के लिए डिफ़ॉल्ट रूप से Rust चुनती है, पर मशीन के हिसाब से दूसरा टूलचेन भी चुन सकती है।

लॉगिन कैसे संभाला जाता है?

स्किल कहती है कि यह टूल बनाने के हिस्से के रूप में ऑथेंटिकेशन संभालती है।

जानकारी

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

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

repo: openai/skills

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

aspnet-core

28k

यह आपके एजेंट को ASP.NET Core वेब ऐप बनाने, जांचने या अपग्रेड करने में मदद करती है, सही ऐप प्रकार चुनकर और .NET के लिए Microsoft के मौजूदा दिशानिर्देश मानकर।

कोडिंगAPI और सर्वर (backend)

chatgpt-apps

28k

यह आपके एजेंट को ChatGPT ऐप बनाने में मदद करती है, जो MCP सर्वर को widget UI के साथ जोड़ता है, टूल डिज़ाइन, UI resources, metadata और लोकल सेटअप सहित।

AI और एजेंटकनेक्टर (MCP)

define-goal

28k

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

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

figma-code-connect-components

28k

यह आपके एजेंट को Code Connect की मदद से Figma डिज़ाइन कंपोनेंट्स को उनके कोड संस्करणों से जोड़ने में मदद करती है, ताकि डिज़ाइन और कोड एक जैसे रहें।

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

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