huh-v2

Generate, explain, and debug interactive terminal forms with Charm's huh v2 library for Go.

2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/rigerc/bubbletea-v2-scaffold --skill huh-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huh-v2
Source: https://github.com/rigerc/bubbletea-v2-scaffold/tree/main/.claude/skills/huh-v2
Command: npx skills add https://github.com/rigerc/bubbletea-v2-scaffold --skill huh-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of interactive command-line interfaces (CLIs) by providing a robust and flexible library for building forms, prompts, and wizards in Go applications.

Core Features & Use Cases

  • Interactive Forms: Design multi-page forms with various input types (text, select, confirm, etc.).
  • Dynamic Fields: Create fields whose options or titles change based on previous user input.
  • Accessibility: Supports accessible mode for screen readers.
  • Standalone Spinner: Includes a non-blocking spinner for background tasks.
  • Use Case: Develop a CLI tool that guides users through a complex configuration process, asking for input step-by-step with clear prompts and validation.

Quick Start

Use the huh-v2 skill to create a simple input prompt asking for the user's name.

Frequently Asked Questions about huh-v2

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

FAQPage Schema
How do I build interactive terminal forms in Go?

To build interactive terminal forms in Go, use the charm.land/huh v2 library to generate multi-page forms with various input types like text, select, and confirm. It provides robust field composition and validation for command-line interfaces.

Can I create dynamic prompts in Go that change based on previous user input?

Yes, dynamic prompts in Go can be created using the huh v2 library. It supports interactive fields whose options or titles dynamically change based on previous user input, allowing you to build adaptive CLI configuration wizards.

Does the huh v2 library support accessible mode for screen readers in TUI applications?

Yes, the huh v2 library supports accessible mode for screen readers in terminal user interfaces. This ensures interactive CLI forms and prompts remain usable for users relying on accessibility tools during command-line interactions.

What is the best way to integrate a non-blocking spinner for background tasks in a Go CLI?

The best way to integrate a non-blocking spinner for background tasks in a Go CLI is using the standalone spinner package included with huh v2. It runs concurrently during forms, allowing background processing without blocking user prompts.

How does form and group composition work in Go terminal prompts using huh v2?

Form and group composition in Go terminal prompts works by chaining multiple fields and pages using huh v2. You group inputs into logical pages, enabling step-by-step user guidance through complex configuration processes with clear validation.

Can I use huh v2 with BubbleTea for custom terminal user interface layouts in Go?

Yes, you can use huh v2 with BubbleTea for custom terminal user interface layouts in Go. The library integrates seamlessly with BubbleTea, allowing you to apply custom themes and layouts to interactive forms and prompts.