rust-tui-ratatui

Installation
SKILL.md

Rust TUI Ratatui

Build terminal applications with clear state ownership, predictable rendering, responsive input, and testable UI contracts.

Operating Model

  1. Identify whether the app is a true TUI, a CLI with occasional prompts, or a daemon dashboard. Use Ratatui only when persistent terminal state and interactive views are justified.
  2. Keep rendering pure: widgets read immutable view models and write to frames. Event handlers mutate application state through explicit actions.
  3. Use an app/event/action/update/render shape for nontrivial TUIs. Avoid spreading terminal I/O across widgets.
  4. Treat terminal cleanup as reliability-critical. Restore raw mode and alternate screen on all normal and error exits.
  5. Preserve accessibility of terminal UX: discoverable keybindings, no required color-only state, clear focus, and deterministic fallback for narrow terminals.

Reference Map

  • references/ratatui-app-architecture.md for app structure, state machines, view models, layout, widgets, and theme ownership.
  • references/events-async-terminal.md for crossterm, async tasks, cancellation, terminal restoration, and resize handling.
  • references/testing-ux.md for buffer assertions, insta snapshots, keybinding tests, and performance checks.

Defaults

Related skills

More from bjornmelin/dev-skills

Installs
1
GitHub Stars
2
First Seen
1 day ago