cli-for-agents
यह क्या करती है
यह स्किल असिस्टेंट को ऐसे कमांड-लाइन टूल बनाने या समीक्षा करने में मार्गदर्शन देती है जो ऑटोमेशन के लिए अच्छे हों। यह उन डेवलपर्स के लिए है जो चाहते हैं कि उनका CLI AI एजेंट और स्क्रिप्ट के लिए आसान हो।
कब इस्तेमाल करें
- ✓जब आप नया कमांड-लाइन टूल बना रहे हैं या किसी में नए कमांड जोड़ रहे हैं।
- ✓जब आप असली उदाहरणों के साथ साफ़ help टेक्स्ट चाहते हैं।
- ✓जब आपको ऐसा CLI चाहिए जो स्क्रिप्ट, पाइपलाइन और ऑटोमेशन में अच्छे से चले।
Skill का लिंक
https://github.com/cursor/plugins/blob/main/cli-for-agent/skills/cli-for-agents/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे कमांड-लाइन टूल की समीक्षा कीजिए और पक्का कीजिए कि वह बिना प्रॉम्प्ट चलता है और उपयोगी help उदाहरण देता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
असिस्टेंट जाँचता है कि हर इनपुट फ़्लैग के रूप में दिया जा सके, help में उदाहरण हों, त्रुटियाँ साफ़ और तेज़ हों, और कमांड अनुमानित व दोहराने में सुरक्षित हों।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
CLI for agents
Human-oriented CLIs often block agents: interactive prompts, huge upfront docs, and help text without copy-pasteable examples. Prefer patterns that work headlessly and compose in pipelines.
Non-interactive first
- Every input should be expressible as a flag or flag value. Do not require arrow keys, menus, or timed prompts.
- If flags are missing, then fall back to interactive mode—not the other way around.
Bad: mycli deploy → ? Which environment? (use arrow keys)
Good: mycli deploy --env staging
Discoverability without dumping context
- Agents discover subcommands incrementally:
mycli, thenmycli deploy --help. Do not print the entire manual on every run. - Let each subcommand own its documentation so unused commands stay out of context.
--help that works
- Every subcommand has
--help. - Every
--helpincludes Examples with real invocations. Examples do more than prose for pattern-matching.
Options:
--env Target environment (staging, production)
--tag Image tag (default: latest)
--force Skip confirmation
Examples:
mycli deploy --env staging
mycli deploy --env production --tag v1.2.3
mycli deploy --env staging --force
stdin, flags, and pipelines
- Accept stdin where it makes sense (e.g.
cat config.json | mycli config import --stdin). - Avoid odd positional ordering and avoid falling back to interactive prompts for missing values.
- Support chaining:
mycli deploy --env staging --tag $(mycli build --output tag-only).
Fail fast with actionable errors
- On missing required flags: exit immediately with a clear message and a correct example invocation, not a hang.
Error: No image tag specified.
mycli deploy --env staging --tag <image-tag>
Available tags: mycli build list --output tags
Idempotency
- Agents retry often. The same successful command run twice should be safe (no-op or explicit "already done"), not duplicate side effects.
Destructive actions
- Add
--dry-run(or equivalent) so agents can preview plans before committing. - Offer
--yes/--forceto skip confirmations while keeping the safe default for humans.
Predictable structure
- Use a consistent pattern everywhere, e.g.
resource+verb: ifmycli service listexists,mycli deploy listandmycli config listshould follow the same shape.
Success output
- On success, return machine-useful data: IDs, URLs, durations. Plain text is fine; avoid relying on decorative output alone.
deployed v1.2.3 to staging
url: https://staging.myapp.com
deploy_id: dep_abc123
duration: 34s
When reviewing an existing CLI
- Check: non-interactive path, layered help, examples on
--help, stdin/pipeline story, error messages with invocations, idempotency, dry-run, confirmation bypass flags, consistent command structure, structured success output.
अक्सर पूछे जाने वाले सवाल
इंटरैक्टिव प्रॉम्प्ट से क्यों बचें?
एजेंट तीर कुंजियों या मेन्यू का उपयोग नहीं कर सकते, इसलिए हर इनपुट फ़्लैग के रूप में भी दिया जा सकना चाहिए।
help टेक्स्ट में क्या होना चाहिए?
हर सबकमांड के लिए असली उदाहरण दिखें, सिर्फ़ लंबा विवरण नहीं।
क्या इसमें dry run शामिल है?
हाँ। मार्गदर्शन में dry-run विकल्प और कमांड के सुरक्षित दोहराव व्यवहार शामिल हैं।
जानकारी
लेखक का मूल विवरण
Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors, idempotency, dry-run, and predictable structure. Use when building a CLI, adding commands, writing --help, or when the user mentions agents, terminals, or automation-friendly CLIs.
repo: cursor/plugins
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #10925
- लाइसेंस
- —
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
advisor
15kअगर आप इसे चालू करते हैं, तो आपका एजेंट बड़े फ़ैसले से पहले या किसी त्रुटि में अटकने पर एक ज़्यादा शक्तिशाली दूसरे मॉडल से सलाह ले सकता है।
check-agent-compatibility
15kजाँचती है कि AI कोडिंग एजेंट किसी रिपॉज़िटरी को शुरू, सत्यापित और दस्तावेज़ित कर सकते हैं या नहीं, और एक अनुकूलता स्कोर के साथ मुख्य समस्याएँ लौटाती है।
continual-learning
15kपिछली चैट की समीक्षा का काम एक समर्पित मेमोरी अपडेटर को सौंपकर आपकी AGENTS.md नोट्स को अद्यतन रखती है।
create-plugin-scaffold
15kसही मेनिफ़ेस्ट, कंपोनेंट फ़ोल्डर और मार्केटप्लेस कनेक्शन के साथ एक नया Cursor प्लगइन फ़ोल्डर बनाती है, जो लोकल उपयोग या सबमिशन के लिए तैयार हो।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।