What problem does it solve?
Provides a concise reference and operational guidance for building consistent, user-friendly interactive terminal prompts and UI flows so developers can avoid common cancellation, lifecycle, and UX pitfalls when creating CLIs.
Core Features & Use Cases
- Prompt types: text input, masked password, confirm, single select, multiselect, grouped selection, and key-based quick selection.
- Flow control: grouped wizards that collect typed results, global cancel handling with isCancel/cancel patterns, and lifecycle hooks (intro/outro).
- UX primitives: spinners for progress, styled inline logging, boxed notes, and a task runner for sequential async tasks.
- Agent-mode: non-interactive plain-text output alternative for automated or CI-driven usage.
- Use Case: Ideal for installer workflows, interactive project scaffolding, configuration wizards, and any CLI that must handle cancellation and provide clear progress and logs.
Quick Start
Use the clack-prompts skill to interactively ask for a project name, handle cancellation safely, and confirm installation choices.