cli-design
Design command-line interfaces with task-oriented commands, predictable arguments, composable output, stable exit behavior, safe destructive operations…
от Dadmin88★ 52 звезды на GitHub
Установить cli-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CLI Design
Use when creating or materially changing a CLI consumed by developers, operators, automation, or other tools.
Procedure
- Identify primary users and tasks before choosing commands. Design around outcomes people need rather than mirroring internal object/class structure mechanically.
- Choose command/subcommand, argument, option, stdin/stdout/stderr, and environment/config responsibilities consistently with the existing tool ecosystem.
- Make defaults safe and common tasks concise. Require explicit intent for destructive, irreversible, remote, or scope-broadening actions and provide preview/dry-run when it materially reduces risk.
- Define stdout for the requested result and stderr for diagnostics/progress so piping and automation remain reliable. Offer stable machine-readable output when scripts need structured data.
- Define exit codes/behavior for success, usage error, partial failure, not-found/no-op, and operational failure according to project conventions.
- Design idempotent or safely repeatable behavior where commands will be used in automation; make uncertain remote outcomes and retries visible.
- Provide contextual
--help/usage/examples and actionable errors that name the invalid input, expected form, and recovery path without dumping internal stack traces by default. - Handle configuration precedence deliberately and make effective target/context inspectable so users know which environment/repository/account/node a command affects.
- Preserve backward compatibility for scripted interfaces or provide deprecation/migration when names/output/semantics must change.
- Test interactive usage, shell quoting/paths, piped/structured output, failure exits, repeated runs, destructive confirmation, and representative supported platforms.
Decision rules
- Human-readable output may evolve; documented machine-readable output is a contract.
- Do not require interactivity for commands intended for automation.
- A CLI wrapper is useful when it creates a safer or clearer task interface, not when it merely renames another command and hides diagnostics.
Quality gate
The CLI is ready when common tasks are obvious, risky actions require clear intent, automation can rely on stable input/output/exit semantics, errors lead to recovery, configuration/target context is inspectable, compatibility is addressed, and representative interactive plus scripted tests pass.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cli-design?
Design command-line interfaces with task-oriented commands, predictable arguments, composable output, stable exit behavior, safe destructive operations, discoverable help, and script compatibility.
Как установить скилл cli-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cli-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…