glyph

Build declarative terminal UIs in Go with functional components and pointer-based data binding.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Glyph provides a declarative approach to building terminal UIs in Go, replacing boilerplate with concise patterns that map UI state to views.

Core Features & Use Cases

  • Declarative UI trees via the functional API (VBox, Text, etc.)
  • Dynamic rendering with If/Switch/ForEach to reflect state
  • Pointer-based data binding and automatic rendering when state changes
  • Clear separation of view code from business logic for maintainability

Quick Start

Install the Glyph library in your Go project and start building a declarative terminal UI.

Frequently Asked Questions about glyph

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

FAQPage Schema
How do I build a terminal UI in Go without writing imperative boilerplate?

You can build a terminal UI in Go declaratively by mapping UI state directly to views using a functional API. This approach replaces boilerplate-heavy rendering logic with concise patterns like VBox and Text components for minimal imperative code.

How does conditional rendering work in a declarative Go terminal application?

Conditional rendering in a declarative Go terminal application works by using If, Switch, and ForEach constructs. These dynamic rendering blocks automatically reflect state changes, allowing the UI to update conditionally without manual imperative redraw calls.

What is the best way to bind data in a Go terminal UI dashboard?

The best way to bind data in a Go terminal UI dashboard is using pointer-based data binding. This mechanism automatically triggers rendering updates when the bound state changes, ensuring your dashboard views stay synchronized with underlying data.

Can I use declarative UI patterns for multi-view forms and inline prompts in Go?

Yes, declarative UI patterns support multi-view forms and inline prompts in Go. The functional API enforces a clear separation between view code and business logic, making complex state-driven interfaces maintainable across single-view dashboards and interactive forms.

Why should I choose a declarative approach over imperative terminal UI construction in Go?

You should choose a declarative approach for terminal UI construction in Go to achieve a clear separation of view code from business logic. This pattern ensures maintainability, reduces boilerplate, and allows UI state to drive rendering with minimal imperative code.

Do I need external dependencies to start building terminal UIs with Glyph patterns?

No external dependencies are required to start building terminal UIs with Glyph patterns. You simply install the Glyph library in your existing Go project to begin constructing declarative interfaces with functional APIs and pointer-based data binding.