Index of every page on this site: llms.txt
All skills
meza avatar

/charm-tui

@982e21e
by mezameza/skills2 stars
Run it yourself

Design, build, refactor, and review Go terminal interfaces using Bubble Tea, Bubbles, Lip Gloss, and Bubblebook. Use whenever work involves Charm TUI components, message routing, focus, terminal layout, styling, component stories, or UI tests. Teaches one native v2 architecture with a coordinating root, reusable components, and isolated Bubblebook stories. Does not cover unrelated Charm services or authorize a v1 migration.

Use this Skill: https://skilld.dev/gh/meza/skills/charm-tui

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestesting.md

≈871 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Test the component and its host

Read this when designing tests for a Charm component or investigating an interaction regression. Use the component from SKILL.md through its narrow operations. Test root routing separately, then use a small runtime suite for behavior that depends on Bubble Tea delivering commands and events.

Choose the observation point

Layer What it proves Harness Controlled inputs Useful assertions
Component state Selection, validation, loading, retry, stale results Direct operations with testing Fresh component and injected dependencies Public state and returned actions
Rendering Width, height, selected/error/empty appearance Direct Render Dimensions, styles, data Cell bounds, exact output, golden
Component contract Reusability across parents and stories Factory-driven cases Fresh inputs and dimensions Isolation, repeatability, focus and resize behavior
Root composition Modal precedence, focus and result ownership Root Update with synthetic messages Explicit initial root state Only the intended component changes
Bubble Tea runtime Commands return to the loop and input produces a journey teatest/v2 Fixed terminal, theme, bounded effects Intermediate output and final model
Bubblebook story Human assessment of interaction and appearance Named fresh story factory Shared fixture Cursor, focus, spacing, edge states
Application smoke A critical journey through real composition Small runtime or manual suite Controlled configuration and backend User-visible completion and failure

Most coverage belongs in the first four rows. A selection clamp does not need a terminal process. A bug caused by losing a command at a hosting boundary does need a check that crosses that boundary.

flowchart LR
    Inputs["Fresh controlled inputs"] --> State["Direct component tests"]
    Inputs --> Render["Render assertions"]
    Inputs --> Stories["Bubblebook stories"]
    Component["Production component"] --> State
    Component --> Render
    Component --> Stories
    Component --> Root["Root composition tests"]
    Root --> Runtime["Small runtime suite"]

Read the applicable test guides

For design, implementation, review, and regression investigation, select the layers above before choosing checks. Read every guide that applies to the behavior being changed or reviewed; a task can require several guides.

Work in scope Required guide
Component state, public operations, isolation, focus, or style overrides Component contract tests
Commands, asynchronous results, loading, retry, cancellation, or time Effect and time tests
Rendering, geometry, cursor output, fixtures, or golden expectations Rendering tests
Parent routing, focus, modals, resize, lifecycle, or result ownership Root routing tests
Real runtime scheduling, event delivery, or an application smoke journey Runtime integration tests

Run component tests first, root integration next, and the relevant runtime journey last. Use the tooling and diagnostics reference for race checks and performance investigation. Inspect the same fresh fixture states in Bubblebook for human interaction review.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The Charm TUI skill provides architectural guidance and practical examples for building terminal user interfaces in Go using the Bubble Tea ecosystem. It promotes best practices like component isolation, deterministic rendering, and comprehensive testing. No malicious code, data exfiltration, or obfuscation patterns were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 982e21e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 3 months ago

README badge

README badge for meza/skills/charm-tui