claude/plugins/kitty-tui-debug/skills/kitty-tui-debug/SKILL.md
Use when visually verifying terminal UI rendering, testing TUI interactions, debugging Bubbletea display issues, or when asked to "test the TUI", "screenshot the terminal", "check what the TUI looks like", or "visually verify". Requires Kitty terminal with allow_remote_control and macOS for screencapture.
npx skillsauth add raphi011/skills kitty-tui-debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Visually verify TUI apps by launching them in a Kitty window, sending keystrokes, and taking PNG screenshots — all without leaving your terminal.
One shared Kitty OS window ("TUI Debug") with one tab per session. The user positions this window once and it persists. Multiple Claude sessions can run in parallel — each gets its own tab via --session <name>.
allow_remote_control yes and listen_on unix:/tmp/kitty-{kitty_pid} in kitty.confscreencapture -l (window-specific PNG capture)just build)$SCRIPT --session $ID launch <command> — creates a tab in the shared debug window$SCRIPT --session $ID screenshot → then Read /tmp/tui-debug-<session>.png to view$SCRIPT --session $ID send-key enter or $SCRIPT --session $ID send-text "hello"$SCRIPT --session $ID close when done (closes tab, OS window stays)Important: Shell state does not persist between Bash tool calls. Set these at the start of every command:
SCRIPT="${CLAUDE_SKILL_DIR}/scripts/tui-debug.sh"
ID="my-session" # pick a unique name for this session
Use distinct screenshot filenames to compare states (e.g. /tmp/tui-initial.png, /tmp/tui-after-input.png).
| Command | Description | Example |
|---|---|---|
| launch <cmd...> | Start TUI in a new tab | $SCRIPT --session $ID launch ./bin/app |
| screenshot [path] | Capture PNG (default: /tmp/tui-debug-<session>.png) | $SCRIPT --session $ID screenshot /tmp/after.png |
| text | Dump visible terminal text (no image) | $SCRIPT --session $ID text |
| send-key <keys...> | Send key presses | $SCRIPT --session $ID send-key ctrl+c |
| send-text <text> | Type text into the TUI | $SCRIPT --session $ID send-text "query" |
| focus | Focus this session's tab | $SCRIPT --session $ID focus |
| close | Close tab (OS window stays) | $SCRIPT --session $ID close |
| status | Check if tab is alive | $SCRIPT --session $ID status |
Common keys: enter, escape, tab, shift+tab, space, backspace, delete
Arrow keys: up, down, left, right
Modifiers: ctrl+c, ctrl+d, ctrl+l, ctrl+a, ctrl+e, ctrl+k, ctrl+u
Function keys: f1 through f12
sleep before screenshots when the TUI is doing async work:
sleep 2-5sleep 1-2sleep 1| Problem | Fix |
|---|---|
| "Kitty remote control not available" | Add allow_remote_control yes to kitty.conf and restart Kitty |
| "Could not find tab for session" | TUI may have crashed — run launch again and check for errors |
| Window exists but blank | TUI may need a server running — check if API is reachable |
| Screenshot shows wrong tab | The script auto-focuses before capture, but sleep 0.2 may need increasing |
development
Create polished, professional reveal.js presentations. Use when the user asks to create slides, a presentation, a deck, or a slideshow. Supports themes, multi-column layouts, code highlighting, animations, speaker notes, and custom styling. Generates HTML + CSS with no build step required.
tools
Use when writing Tailwind CSS v4 code, configuring Tailwind v4 with @theme or @variant directives, migrating from Tailwind v3 to v4, setting up CSS-native config (no tailwind.config.js), defining semantic color tokens, implementing dark mode with class-based @variant, creating design system tokens, or styling components with utility classes. Covers @import "tailwindcss", @theme blocks, @variant, @layer, CSS custom properties for colors, and common layout/component patterns.
development
Use whenever working with SurrealDB — writing queries, defining schemas, configuring indexes, debugging errors, handling record IDs, using the Go SDK, or discussing SurrealDB architecture. Activate on any mention of SurrealDB, SurrealQL, HNSW indexes, or surreal-related Go SDK code.
development
Use when visually verifying terminal UI rendering, testing TUI interactions, debugging Bubbletea display issues, or when asked to "test the TUI", "screenshot the terminal", "check what the TUI looks like", or "visually verify". Requires Kitty terminal with allow_remote_control and macOS for screencapture.