Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cli-for-agents

БесплатноБез исполняемых скриптовНе проверен

Designing CLIs that AI agents will invoke — non-interactive flags, layered --help with examples, stdin/pipeline composition, actionable errors, idempotency…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Agent-Friendly CLI Design Best Practices

Prescriptive design and review standards for Command-Line Interface Design targeting AI agents and scripts, not just humans typing at a prompt. Human-oriented CLIs often block agents: interactive prompts, huge upfront docs, help text without copy-pasteable examples, error messages without fixes, no dry-run mode. This skill prioritizes rules by blast radius — from "the agent cannot use this CLI at all" (CRITICAL) to "the agent has to read help one extra time" (MEDIUM).

Use this skill both when building a new CLI and when reviewing an existing one for agent-friendliness.

This skill contains 45 rules across 8 categories.

When to Apply

Reference these guidelines when:

  • Writing --help text for any subcommand
  • Designing new flags, arguments, or subcommands
  • Crafting error messages or exit codes
  • Adding destructive operations that need dry-run or confirmation
  • Choosing between interactive prompts and flag-only inputs
  • Shaping success output so agents can chain commands
  • Reviewing an existing CLI for headless-usability regressions

Rule Categories by Priority

Priority Category Impact Prefix
1 Non-interactive Operation CRITICAL interact-
2 Help Text Design HIGH help-
3 Error Messages HIGH err-
4 Destructive Action Safety HIGH safe-
5 Input Handling HIGH input-
6 Output Format MEDIUM-HIGH output-
7 Idempotency & Retries MEDIUM-HIGH idem-
8 Command Structure MEDIUM struct-

Note: help-examples-in-help is rated CRITICAL within the HIGH help- category because its specific failure — help text without examples — makes every other help rule moot. The category label reflects the average, not the worst case.

Quick Reference

1. Non-interactive Operation (CRITICAL)

2. Help Text Design (HIGH)

3. Error Messages (HIGH)

4. Destructive Action Safety (HIGH)

5. Input Handling (HIGH)

Полный SKILL.md на GitHub

Установить cli-for-agents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/err-actionable-fix.mdreferences/err-exit-fast-on-missing-required.mdreferences/err-include-example-invocation.mdreferences/err-no-stack-traces-by-default.mdreferences/err-non-zero-exit-codes.mdreferences/err-stderr-not-stdout.mdreferences/help-examples-in-help.mdreferences/help-flag-summary.mdreferences/help-layered-discovery.mdreferences/help-no-flag-required.mdreferences/help-per-subcommand.mdreferences/help-suggest-next-steps.mdreferences/idem-create-or-skip.mdreferences/idem-retry-safe.mdreferences/idem-stable-identifiers.mdreferences/idem-stable-output-on-skip.mdreferences/idem-state-reconciliation.mdreferences/input-accept-stdin-dash.mdreferences/input-env-var-fallback.mdreferences/input-flags-over-positional.mdreferences/input-no-prompt-fallback.mdreferences/input-stdin-for-secrets.mdreferences/interact-detect-tty.mdreferences/interact-flags-first.mdreferences/interact-no-arrow-menus.mdreferences/interact-no-hang-on-stdin.mdreferences/interact-no-input-flag.mdreferences/interact-no-timed-prompts.mdreferences/output-bounded-by-default.mdreferences/output-json-flag.mdreferences/output-machine-ids-on-success.mdreferences/output-ndjson-streaming.mdreferences/output-no-decorative-only.mdreferences/output-one-record-per-line.mdreferences/output-respect-no-color.mdreferences/safe-confirm-by-typing-name.md

FAQ

Что делает скилл cli-for-agents?

Designing CLIs that AI agents will invoke — non-interactive flags, layered --help with examples, stdin/pipeline composition, actionable errors, idempotency, dry-run, destructive-action safety, and predictable command structure. Use when designing, building, or reviewing a command-line tool that AI agents or automation will invoke. Trigger even if the user doesn't explicitly say "agent-friendly" — apply whenever they are writing `--help` text, adding a new subcommand, designing error messages, or reviewing a CLI's UX.

Как установить скилл cli-for-agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cli-for-agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cli-for-agents с