clack

Build interactive CLIs with clack core and prompts in JavaScript and TypeScript.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/ahmadawais/skills --skill clack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clack
Source: https://github.com/ahmadawais/skills/tree/main/skills/clack
Command: npx skills add https://github.com/ahmadawais/skills --skill clack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Comprehensive guidance for building and debugging JavaScript and TypeScript CLIs with @clack/core and @clack/prompts, backed by bundled upstream source and examples. Use when implementing clack prompt flows, deciding between core primitives and styled prompts, adapting clack examples, or validating clack API usage.

Core Features & Use Cases

  • Step-by-step workflow for choosing between @clack/prompts and @clack/core.
  • Access to upstream source, references, and examples to accelerate CLI development.
  • Guidance on cancellation handling, session lifecycle, and UX polish across prompts, spinners, progress, and streaming.

Quick Start

Integrate clack prompts into your CLI by following the examples and references.

Frequently Asked Questions about clack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build interactive CLI prompts in JavaScript and TypeScript?

Build interactive CLI prompts in JavaScript and TypeScript using @clack/core and @clack/prompts. This Skill provides workflows and bundled examples to implement guided prompt flows, manage session lifecycles, and apply UX design patterns.

When should I use @clack/core versus @clack/prompts for my CLI?

Choose @clack/core for building custom primitives when you need fine-grained control over interactive CLI behavior. Use @clack/prompts for pre-styled, ready-to-use components. This Skill provides a step-by-step workflow to help you decide between them.

How do I handle user cancellation in interactive CLI flows?

Handle user cancellation in interactive CLI flows by applying the cancellation handling patterns provided by this Skill. It guides you through safely managing session lifecycles and ensuring robust UX when users exit prompt sequences.

What's the best way to add spinners and progress indicators to a CLI?

Add spinners and progress indicators to a CLI by leveraging the UX polish guidance in this Skill. It provides access to upstream source references and examples for implementing streaming, progress, and spinner patterns in JavaScript and TypeScript.

Does this Skill provide examples for validating clack API usage?

Yes, this Skill provides access to bundled upstream source and examples for validating clack API usage. You can adapt these references to debug and verify your interactive JavaScript and TypeScript CLI implementations.