seiyajapon/ia-handbooks/cli-design
Claude Code and agent skill by seiyajapon/ia-handbooks
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install seiyajapon/ia-handbooks/cli-designSKILL.md
The same SKILL.md was published earlier as seiyajapon/ia-handbooks/cli-design.
CLI Design Skill
When to use
The user asked about command-line interface design: subcommands, flags, positional arguments, exit codes, help, output format, progress reporting.
When not to use
- The CLI is a thin wrapper around an HTTP API:
api-designfor the underlying contract. - The CLI's internals are software design:
software-design.
Inputs to inspect first
- CLI library in use (argparse, Click, Typer, oclif, commander, cobra).
- Existing subcommands and conventions.
- Exit code policy.
- Help and version output.
How to work
- Inspect the existing CLI surface.
- Walk concerns: subcommand grouping, flag consistency, positional vs optional, exit codes, help quality, output for humans vs scripts.
- Recommend minimal changes.
Output
Findings tied to subcommand or flag.
Escalation
- Underlying API contract:
api-design. - CLI as a driving adapter: relevant architecture skill.
Purpose
Estructurar herramientas de línea de comandos para que sean descubribles, predecibles y seguras. Una buena CLI deja claro qué hace sin abrir el código y nunca sorprende al usuario con efectos no deseados.
Responsibilities
- Diseñar jerarquía de subcomandos coherente con el dominio
- Definir flags con nombres consistentes (
--apply,--dry-run,--verbose) - Asignar exit codes con significado (0 éxito, distintos no-cero por familia de error)
- Garantizar que
--helpy la salida sin args son auto-explicativos - Distinguir output legible (TTY) de output máquina (
--json) - Detectar acciones destructivas sin gating explícito
- Verificar comportamiento ante señales (
SIGINT,SIGTERM) y entrada cancelada
Instructions
- Comprueba: ejecutar sin args o con
--help¿explica lo esencial? - Comprueba: los subcomandos agrupan funcionalidad de forma natural (
tool run,tool list,tool doctor) - Comprueba: las acciones irreversibles requieren flag explícito (
--apply,--force) - Comprueba: el exit code distingue éxito, error de usuario, error interno y interrupción
- Comprueba: la salida cambia cuando se redirige a pipe (sin colores, sin spinners)
- Comprueba: los mensajes de error dicen qué pasó y qué hacer, no sólo "Error"
- Comprueba: no hay efectos secundarios en
--helpni en commands de lectura
Heuristics
Treat as stronger concerns when:
- El comportamiento por defecto es destructivo y
--dry-runes opt-in --helpes un muro de texto sin ejemplos- Exit code es siempre 0 o 1 sin distinguir tipos de fallo
- La CLI mezcla output legible y datos máquina por el mismo stdout
- Acciones lentas sin progreso ni feedback al usuario
- Flags con nombres ambiguos (
-fpuede ser--forceo--file) - Cambios silenciosos en flags entre versiones (rotura de scripts que la usan)
Treat as acceptable when:
- Scripts internos one-shot sin necesidad de subcomandos
- Output JSON puro en herramientas pensadas para pipelining
Rules
- Toda CLI tiene
--helpautocontenido y al menos un ejemplo - Acciones destructivas requieren flag explícito, nunca por defecto
- Exit codes siguen una tabla documentada; nunca son aleatorios
- Output a stderr para mensajes operativos, stdout para resultados
SIGINTcierra limpiamente: sin estado corrupto y con mensaje al usuario
Activity Traceability
🔧 Loading skill: cli-design
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghandbook_v3/handbook/skills/software-design/cli-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/seiyajapon/ia-handbooks/cli-design)