Toolverse
All skills

gentleman-bubbletea

by Gentleman-Programming

Bubbletea TUI patterns for Gentleman.Dots installer. Trigger: When editing Go files in installer/internal/tui/, working on TUI screens, or adding new UI features.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security
Views
2

About this skill

Bubbletea TUI patterns for Gentleman.Dots installer. Trigger: When editing Go files in installer/internal/tui/, working on TUI screens, or adding new UI features.

How to use

  1. Zainstaluj skill gentleman-bubbletea w swoim projekcie Gentleman.Dots, umieszczając go w katalogu skills/ lub dodając referencję do repozytorium autora.

  2. Gdy dodajesz nowy ekran do instalatora, otwórz plik model.go i zdefiniuj nowy ekran jako stałą typu Screen w bloku const — każdy ekran otrzymuje unikalny identyfikator poprzez iota.

  3. Rozszerz strukturę Model w model.go o pola przechowujące stan nowego ekranu — dodaj zmienne dla danych, pozycji kursora, scrollowania lub innych informacji potrzebnych do renderowania.

  4. W funkcji Update() obsługuj nowe typy wiadomości za pomocą type switch — rozpoznaj tea.KeyMsg dla wejścia klawiatury, tea.WindowSizeMsg dla zmian rozmiaru okna i niestandardowe wiadomości dla logiki biznesowej.

  5. Utwórz dedykowany handler dla nowego ekranu (np. handleNewFeatureKeys), który zwraca parę (tea.Model, tea.Cmd) — handler obsługuje klawisze (up, down, enter) i zwraca zaktualizowany model oraz ewentualne komendy do wykonania.

  6. Renderuj ekran w funkcji View(), używając Lipgloss do stylizacji — odwołuj się do pól Model, aby wyświetlić bieżący stan, pozycję kursora i dostępne opcje.

Related skills

reviewing-code

by CaptainCrouton89

Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.

Security
1493

openapi-spec-generation

by wshobson

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

Security
18109

gmail-manager

by jeffvincent

Manage Gmail - send, read, search emails, manage labels and drafts. Use when user wants to interact with their Gmail account for email operations.

Security
17128

content-creator

by alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content

Security
25124

brand-voice

by anthropics

Apply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, adapting tone for different audiences, or checking terminology and style guide compliance.

Security
48158

google-analytics

by davila7

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

Security
1260