debugging-gengar-tui-commands

Debug Gengar TUI slash command failures across Python, JSON-RPC, and Ink/TypeScript layers.

Updated May 4, 2026
One-click install
npx skills add https://github.com/JamesFincher/gengar --skill debugging-gengar-tui-commands
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debugging-gengar-tui-commands
Source: https://github.com/JamesFincher/gengar/tree/main/skills/software-development/debugging-hermes-tui-commands
Command: npx skills add https://github.com/JamesFincher/gengar --skill debugging-gengar-tui-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging Gengar slash commands can fail silently when the Python registry, the TUI gateway, and the Ink/TypeScript frontend drift out of sync.

Core Features & Use Cases

  • Identify layer mismatches: Pinpoint whether autocomplete, dispatch, or frontend handling is inconsistent across Python, gateway JSON-RPC, and the TUI UI.
  • Guide targeted fixes: Add or update the canonical CommandDef in the Python COMMAND_REGISTRY, ensure aliases/subcommands are correct, and wire handlers when needed.
  • Verify end-to-end behavior: Confirm the command appears in autocomplete and actually executes in the TUI, with live UI state updates where applicable.

Quick Start

Use the debugging-gengar-tui-commands skill to troubleshoot a missing slash command by telling it which command name is failing and whether autocomplete and TUI execution both work.

Frequently Asked Questions about debugging-gengar-tui-commands

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

FAQPage Schema
Why are slash commands missing from autocomplete in my TUI application?▼

Slash commands missing from autocomplete usually indicate a mismatch between the Python command registry and the frontend Ink/TypeScript handlers. Debugging requires checking each layer for command presence and comparing the canonical `COMMAND_REGISTRY` entry with frontend handler availability to resolve the sync drift.

How do I fix a TUI slash command that is ignored by the JSON-RPC gateway dispatch?▼

To fix a slash command ignored by the JSON-RPC gateway dispatch, you must verify the command's presence across the Python registry and the tui_gateway dispatcher. Ensuring the canonical `CommandDef` is correctly updated in the `COMMAND_REGISTRY` resolves gateway dispatch failures.

What causes a slash command to behave differently in the CLI versus the TUI?▼

Divergent behavior between CLI and TUI happens when the Python command registry, the JSON-RPC dispatcher, and the Ink/TypeScript slash handlers drift out of sync. You need to compare the registry entry with frontend handler availability and validate both dispatch and live state updates.

How do I troubleshoot a slash command that persists configuration but does not update the live UI state?▼

When a slash command persists configuration without applying live UI state changes, it indicates a frontend handler mismatch. You must validate live state updates after rebuilding the TUI and ensure the Ink/TypeScript handlers correctly process the JSON-RPC dispatch response.

Do I need to rebuild the TUI after updating the Python command registry?▼

Yes, you need to rebuild the TUI after updating the Python `COMMAND_REGISTRY` to validate both dispatch and live state updates. Rebuilding ensures the Ink/TypeScript frontend syncs with the updated command definitions and confirms the command appears in autocomplete and executes correctly.

What is the best way to debug a missing slash command across multiple application layers?▼

The best way to debug missing slash commands across layers is to pinpoint whether autocomplete, dispatch, or frontend handling is inconsistent. Add or update the canonical `CommandDef` in the Python registry, ensure aliases are correct, and wire frontend handlers to verify end-to-end behavior.