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.

referencesdebugging.md

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

Terminal debugging

Read this guide when diagnosing a running TUI with logs or a debugger. The shared architecture and scope rules in SKILL.md apply.

Debug without corrupting the terminal

While the program owns the terminal, send debug output to a file. In a function returning error, before calling tea.NewProgram(...).Run():

debugFile, err := tea.LogToFile("debug.log", "ui")
if err != nil {
    return err
}
defer debugFile.Close()

This redirects the default Go logger. Inside the root's update path, a temporary log.Printf("message=%T", message) records message types without printing user text. Include safe instance and request identifiers when diagnosing stale-result routing. Avoid dumping arbitrary message values that may contain credentials, clipboard contents, or private input. Remove temporary noisy instrumentation after finding the cause. The Bubble Tea logging helper owns file setup and supports a supplied logger through LogToFileWith.

Follow the log from another terminal with tail -f debug.log on a POSIX shell, or Get-Content -Wait debug.log in PowerShell. For breakpoints, start Delve in the application's main-package directory:

dlv debug --headless --api-version=2 --listen=127.0.0.1:43000 .

Connect from a second terminal:

dlv connect 127.0.0.1:43000

Then set the desired breakpoint and continue from that debugger session. The application keeps its terminal while the debugger uses the other session. Bubble Tea's debugging instructions describe this arrangement. Live reload can shorten manual iteration when the project already uses it; it does not alter component lifecycle contracts.

Document the project's actual headless Delve invocation and attachment steps in its existing CONTRIBUTING.md, together with the logging setup and log-following commands. Component authors need a durable contributor entry point for these commands, so they can debug without printing into the controlled terminal.

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