[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75PS2XCXZA6F1KF116ADETQ":3,"skill-same:01M75PS2XCXZA6F1KF116ADETQ":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75PS2XCXZA6F1KF116ADETQ","ratatui-patterns",null,"Architecture, event-loop, and rendering patterns for ratatui TUIs. Use when building or extending `roder-tui` or any other Rust ratatui application — adding components, popups, async event handling, layout, focus, or message passing.","RoderAI\u002Froder","RoderAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F284978122?v=4","01M75PQQ8DXA6WMHGMZXS7CTP5","Roder","01M75PQQ91JEF84WMNZG8GQH8Q",9,"MIT","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fratatui-patterns\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ratatui-patterns\ndescription: Architecture, event-loop, and rendering patterns for ratatui TUIs. Use when building or extending `roder-tui` or any other Rust ratatui application — adding components, popups, async event handling, layout, focus, or message passing.\n---\n\n# Ratatui Patterns\n\nDistilled from the official ratatui docs (ratatui.rs) and the most-loved production TUIs in `awesome-ratatui` — `gitui`, `bottom`, `yazi`, `slumber`, `ATAC`, `spotify-player`, `gobang`, `kdash`. Ratatui is an immediate-mode terminal UI library: the whole frame is redrawn from application state on every tick, so architecture work goes into *state*, *events*, and *messages* — not retained widget trees.\n\n## Instructions\n\n### Pick an architecture before writing widgets\n\nThree patterns are blessed by the docs. Pick one and stay with it — mixing styles is what makes ratatui apps hard to maintain.\n\n1. **The Elm Architecture (TEA)** — one `Model`, one `Msg` enum, pure `update(&mut Model, Msg) -> Option\u003CMsg>`, pure `view(&Model, &mut Frame)`. `update` may return a follow-up message so cascading transitions stay explicit. Best for small\u002Fmedium apps with a single coherent state. Examples: most ratatui tutorial code, smaller awesome-ratatui entries.\n2. **Component Architecture** — each widget is a struct implementing a `Component` trait with `handle_events`, `update`, `render`, plus optional `focus`\u002F`hide`\u002F`show`. State lives inside the component. Best for apps with many independent panes. Examples: `gitui` (asymmetric `Component` + `DrawableComponent` traits with `event_pump`\u002F`command_pump` helpers), the official `ratatui\u002Ftemplates\u002Fcomponent` template, `gobang`.\n3. **Hybrid with an Action enum** — components emit `Action`s (or `InternalEvent`s in `gitui`) into a shared queue; the app loop drains the queue and applies actions to model + components. Decouples \"key pressed\" (event) from \"what changes\" (action). The component template uses this; `gitui` calls it `Queue\u003CInternalEvent>` (`Rc\u003CRefCell\u003CVecDeque\u003C_>>>` for single-threaded sharing).\n\nInside the gode repo, `crates\u002Froder-tui\u002Fsrc\u002Fapp.rs` is currently a monolithic `TuiApp` mixing event read, draw, and async-server calls. When growing it past one screen, refactor toward **Component + Action queue** — it matches gode's multi-pane direction (transcript \u002F composer \u002F footer \u002F popups) and keeps async server events orthogonal to keyboard input.\n\n### Run the event loop on tokio with `EventStream` + `select!`\n\nFor any app using tokio (gode does), do **not** use the blocking `event::poll(Duration::from_millis(50))` pattern. It pegs a thread, fights tokio's scheduler, and makes tick\u002Frender rates wobble. Use this canonical async pattern:\n\n```rust\nlet mut reader = crossterm::event::EventStream::new();\nlet mut tick = tokio::time::interval(Duration::from_millis(250));   \u002F\u002F business logic\nlet mut render = tokio::time::interval(Duration::from_millis(16));  \u002F\u002F ~60fps draw\n\nloop {\n    tokio::select! {\n        _ = cancel.cancelled() => break,\n        Some(Ok(ev)) = reader.next() => tx.send(Event::from(ev))?,\n        _ = tick.tick()   => tx.send(Event::Tick)?,\n        _ = render.tick() => tx.send(Event::Render)?,\n        Some(server_ev) = server_rx.recv() => tx.send(Event::App(server_ev))?,\n    }\n}\n```\n\nForward to the main loop through an `UnboundedSender\u003CEvent>`. The main loop awaits `rx.recv()`, classifies the event, and either updates state or pushes an `Action` onto its queue. Separate `Tick` (state advance — animations, spinners, polling) from `Render` (redraw) so a heavy update can't stall drawing.\n\nDefine one canonical `Event` enum: `Init`, `Quit`, `Error`, `Closed`, `Tick`, `Render`, `FocusGained`, `FocusLost`, `Paste(String)`, `Key(KeyEvent)`, `Mouse(MouseEvent)`, `Resize(u16, u16)`, plus app-specific variants (`App(AppEvent)` for server pushes, jobs finishing, etc.).\n\n### Keep `update` \u002F `view` pure-ish and side-effect free\n\nThe view function gets a `&Model` (or `&mut self` for components) and a `Frame`, and must do **nothing** but compute widgets. No I\u002FO, no spawning tasks, no allocating long-lived state. The `update`\u002F`handle_action` step is the only place state mutates. Side effects (HTTP, RPC, file I\u002FO) are triggered by *returning a command* — spawn a tokio task that sends a result back as an `Event::App(...)`, never `.await` inside `update`.\n\nThis is the bug to avoid in `roder-tui\u002Fsrc\u002Fapp.rs:216` — `tokio::spawn` is fired from inside the keyboard branch with no way to surface errors or completion as an event. Convert it: the key handler emits `Action::SendTurn { text }`, the update step issues the RPC as a spawned task, and the task's result returns as an `AppEvent`.\n\n### Render popups with `Clear` first\n\nRatatui widgets do not always blank every cell they cover, so popups bleed through. Always render `Clear` to the popup `Rect` before the popup's own widgets:\n\n```rust\nf.render_widget(Clear, popup_area);\nf.render_widget(popup_block, popup_area);\n```\n\nFor centering popups, prefer the modern `Flex` layout (`Layout::horizontal([Constraint::Length(w)]).flex(Flex::Center)` chained with a vertical equivalent) over the older three-way split-and-take-middle trick. Manage stacked popups with an explicit `PopupStack` (`Vec\u003CPopupKind>`) — `gitui` does this so Esc unwinds one level at a time.\n\n### Compose text via `Span → Line → Text`, not `format!`-into-`Paragraph`\n\nBuild styled output by composing spans into lines into a `Text`. `Paragraph::new(text)` accepts anything `Into\u003CText>`, so `\"hi\".yellow()` (via the `Stylize` trait) is enough for one-off spans. Use `.wrap(Wrap { trim: true })` only when you actually want wrapping; long-running transcript views generally want **explicit line breaks plus a vertical scroll offset** rather than `Wrap`, which recomputes wrapping on every draw and is O(text length).\n\nFor anything resembling a text editor (composer with multi-line input, cursor, selection, undo) reach for `tui-textarea`. The hand-rolled `String + push\u002Fpop` composer in `roder-tui\u002Fsrc\u002Fapp.rs:185-189` is fine as a placeholder, but it can't handle paste, multi-line, Unicode width, or cursor movement.\n\n### Theming and color: route through one module\n\nDon't sprinkle `Color::Rgb(...)` or named colors across render code. Define a `Theme` struct with semantic roles (`text`, `text_muted`, `accent`, `border`, `error`, `header_bg`, etc.) and pass it (or store on `App`) so the whole UI restyles in one place. This is exactly what gode's existing `tui-theming` skill enforces on the Bubble Tea side — mirror that discipline in ratatui code. Avoid hard-coding `Color::White`\u002F`Color::Black`; on light terminals they invert. Prefer terminal-default (`Color::Reset`) for primary text unless you have a real reason.\n\n### State + async + cancellation\n\n- Use `tokio_util::sync::CancellationToken` to shut down the event loop, background streams, and in-flight requests in one place.\n- For long-running work owned by a component, store a `JoinHandle` on the component and `abort()` it on `Drop` or on state transitions that obsolete the result.\n- Subscribe to server\u002Fbus events with a `broadcast::Receiver` or `mpsc::Receiver` and pump them into the same `Event` channel — do **not** poll `try_recv()` inside the draw loop (current pattern at `app.rs:229`). Drained-in-draw means events stall behind keystrokes and rendering races state.\n\n### Layout, resize, and constraints\n\n- Define layouts top-down with `Layout::vertical([...])` \u002F `Layout::horizontal([...])` and `Constraint::{Length, Min, Max, Percentage, Ratio, Fill}`. Prefer `Length`\u002F`Min` for chrome (header, footer, borders) and `Min(1)`\u002F`Fill(1)` for the growable area.\n- Cache `Layout` only if it shows up in profiles; ratatui's constraint solver is cheap.\n- Recompute layout every draw — never store `Rect`s across frames. Terminal size changes arrive as `Event::Resize`; the next draw picks the new size from `frame.area()` automatically.\n- Reserve one row for a status\u002Ffooter that always shows mode + key hints; users navigate TUIs by reading that line.\n\n### Common ecosystem crates worth knowing\n\n- `tui-textarea` — multi-line input widget with editing, paste, selection.\n- `tui-input` — single-line input.\n- `tui-tree-widget` — tree view (file managers, JSON viewers).\n- `tui-big-text` — splash\u002Fbanner text.\n- `ratatui-image` — render images via Kitty\u002FSixel\u002FiTerm2 protocols where supported.\n- `throbber-widgets-tui` — spinners.\n- `tui-logger` — in-app log panel hooked into `log`\u002F`tracing`.\n- `color-eyre` + `better-panic` — pretty error reporting; install panic hooks **before** entering the alternate screen so a panic does not leave the terminal scrambled.\n\n### Terminal lifecycle hygiene\n\n- Wrap enter\u002Fleave alternate screen + raw mode in a guard type with a `Drop` impl, or install a panic hook that runs `disable_raw_mode()` + `LeaveAlternateScreen` before unwinding. The current `roder-tui` does these inline at the end of `run()` — if anything between them panics, the terminal is left broken.\n- Enable bracketed paste (`EnableBracketedPaste`) and focus change reporting (`EnableFocusChange`) explicitly if you want `Paste`\u002F`FocusGained`\u002F`FocusLost` events.\n- Restore the terminal **before** printing anything on shutdown (errors, summaries) so output goes to the real screen, not the alternate one.\n\n### Pitfalls to avoid\n\n- Don't redraw less than you need to, but don't try to be clever about \"dirty rects\" either — ratatui already diffs the previous buffer against the new one. Just call `terminal.draw(...)` on each `Render` tick.\n- Don't `event::read()` from inside `update`\u002F`view`. Events come from the event task only.\n- Don't allocate large strings every draw (e.g., joining all transcript messages into one `String`). Build a `Vec\u003CLine\u003C'static>>` once when messages mutate and pass a slice to `Paragraph` \u002F `List`.\n- Don't reach for `mouse` events until keyboard navigation is solid — most TUI users disable mouse capture.\n- Don't use `cargo run` for visual sanity — pipe through `gode-tmux-capture` (see related skill) or run interactively.\n\n## Reference apps to read when stuck\n\nWhen you have a concrete question (\"how do I do a fuzzy finder popup?\", \"how does a tab bar carry focus?\"), open the source of the closest analogue rather than guessing:\n\n- **gitui** — multi-tab app, popup stack, queue-based actions, async git via `git2`\u002F`gitoxide`. Strong reference for *anything* keyboard-driven and modal.\n- **bottom** — heavy data refresh, charts, customizable layout via config. Reference for tick-driven data widgets.\n- **slumber** \u002F **ATAC** — request-builder UIs, forms, navigation between many input fields. Reference for form-heavy screens.\n- **yazi** — async I\u002FO file manager, image preview, plugin system. Reference for highly async UIs.\n- **spotify-player** — long-running streaming events, OAuth flows surfaced in the UI.\n- **kdash** \u002F **gobang** — table-heavy CRUD-style screens.\n\nThe `ratatui\u002Ftemplates` repo (`simple`, `event-driven`, `component`) is the canonical starting point — `component` is the closest match to what `roder-tui` should grow into.\n\n## Verification\n\n- After non-trivial UI changes, run the relevant crate tests: `cargo test -p roder-tui` and `cargo clippy -p roder-tui --all-targets -- -D warnings`.\n- For visual changes, capture a session via the `gode-tmux-capture` skill and inspect contrast on a light terminal — see the `tui-theming` skill for the contrast rules.\n- For event-handling changes, write a unit test that drives a sequence of `Event`s through `update`\u002F`handle_action` and asserts on model state; this is the payoff of keeping `update` pure.\n","# Ratatui Patterns\n\nDistilled from the official ratatui docs (ratatui.rs) and the most-loved production TUIs in `awesome-ratatui` — `gitui`, `bottom`, `yazi`, `slumber`, `ATAC`, `spotify-player`, `gobang`, `kdash`. Ratatui is an immediate-mode terminal UI library: the whole frame is redrawn from application state on every tick, so architecture work goes into *state*, *events*, and *messages* — not retained widget trees.\n\n## Instructions\n\n### Pick an architecture before writing widgets\n\nThree patterns are blessed by the docs. Pick one and stay with it — mixing styles is what makes ratatui apps hard to maintain.\n\n1. **The Elm Architecture (TEA)** — one `Model`, one `Msg` enum, pure `update(&mut Model, Msg) -> Option\u003CMsg>`, pure `view(&Model, &mut Frame)`. `update` may return a follow-up message so cascading transitions stay explicit. Best for small\u002Fmedium apps with a single coherent state. Examples: most ratatui tutorial code, smaller awesome-ratatui entries.\n2. **Component Architecture** — each widget is a struct implementing a `Component` trait with `handle_events`, `update`, `render`, plus optional `focus`\u002F`hide`\u002F`show`. State lives inside the component. Best for apps with many independent panes. Examples: `gitui` (asymmetric `Component` + `DrawableComponent` traits with `event_pump`\u002F`command_pump` helpers), the official `ratatui\u002Ftemplates\u002Fcomponent` template, `gobang`.\n3. **Hybrid with an Action enum** — components emit `Action`s (or `InternalEvent`s in `gitui`) into a shared queue; the app loop drains the queue and applies actions to model + components. Decouples \"key pressed\" (event) from \"what changes\" (action). The component template uses this; `gitui` calls it `Queue\u003CInternalEvent>` (`Rc\u003CRefCell\u003CVecDeque\u003C_>>>` for single-threaded sharing).\n\nInside the gode repo, `crates\u002Froder-tui\u002Fsrc\u002Fapp.rs` is currently a monolithic `TuiApp` mixing event read, draw, and async-server calls. When growing it past one screen, refactor toward **Component + Action queue** — it matches gode's multi-pane direction (transcript \u002F composer \u002F footer \u002F popups) and keeps async server events orthogonal to keyboard input.\n\n### Run the event loop on tokio with `EventStream` + `select!`\n\nFor any app using tokio (gode does), do **not** use the blocking `event::poll(Duration::from_millis(50))` pattern. It pegs a thread, fights tokio's scheduler, and makes tick\u002Frender rates wobble. Use this canonical async pattern:\n\n```rust\nlet mut reader = crossterm::event::EventStream::new();\nlet mut tick = tokio::time::interval(Duration::from_millis(250));   \u002F\u002F business logic\nlet mut render = tokio::time::interval(Duration::from_millis(16));  \u002F\u002F ~60fps draw\n\nloop {\n    tokio::select! {\n        _ = cancel.cancelled() => break,\n        Some(Ok(ev)) = reader.next() => tx.send(Event::from(ev))?,\n        _ = tick.tick()   => tx.send(Event::Tick)?,\n        _ = render.tick() => tx.send(Event::Render)?,\n        Some(server_ev) = server_rx.recv() => tx.send(Event::App(server_ev))?,\n    }\n}\n```\n\nForward to the main loop through an `UnboundedSender\u003CEvent>`. The main loop awaits `rx.recv()`, classifies the event, and either updates state or pushes an `Action` onto its queue. Separate `Tick` (state advance — animations, spinners, polling) from `Render` (redraw) so a heavy update can't stall drawing.\n\nDefine one canonical `Event` enum: `Init`, `Quit`, `Error`, `Closed`, `Tick`, `Render`, `FocusGained`, `FocusLost`, `Paste(String)`, `Key(KeyEvent)`, `Mouse(MouseEvent)`, `Resize(u16, u16)`, plus app-specific variants (`App(AppEvent)` for server pushes, jobs finishing, etc.).\n\n### Keep `update` \u002F `view` pure-ish and side-effect free\n\nThe view function gets a `&Model` (or `&mut self` for components) and a `Frame`, and must do **nothing** but compute widgets. No I\u002FO, no spawning tasks, no allocating long-lived state. The `update`\u002F`handle_action` step is the only place state mutates. Side effects (HTTP, RPC, file I\u002FO) are triggered by *returning a command* — spawn a tokio task that sends a result back as an `Event::App(...)`, never `.await` inside `update`.\n\nThis is the bug to avoid in `roder-tui\u002Fsrc\u002Fapp.rs:216` — `tokio::spawn` is fired from inside the keyboard branch with no way to surface errors or completion as an event. Convert it: the key handler emits `Action::SendTurn { text }`, the update step issues the RPC as a spawned task, and the task's result returns as an `AppEvent`.\n\n### Render popups with `Clear` first\n\nRatatui widgets do not always blank every cell they cover, so popups bleed through. Always render `Clear` to the popup `Rect` before the popup's own widgets:\n\n```rust\nf.render_widget(Clear, popup_area);\nf.render_widget(popup_block, popup_area);\n```\n\nFor centering popups, prefer the modern `Flex` layout (`Layout::horizontal([Constraint::Length(w)]).flex(Flex::Center)` chained with a vertical equivalent) over the older three-way split-and-take-middle trick. Manage stacked popups with an explicit `PopupStack` (`Vec\u003CPopupKind>`) — `gitui` does this so Esc unwinds one level at a time.\n\n### Compose text via `Span → Line → Text`, not `format!`-into-`Paragraph`\n\nBuild styled output by composing spans into lines into a `Text`. `Paragraph::new(text)` accepts anything `Into\u003CText>`, so `\"hi\".yellow()` (via the `Stylize` trait) is enough for one-off spans. Use `.wrap(Wrap { trim: true })` only when you actually want wrapping; long-running transcript views generally want **explicit line breaks plus a vertical scroll offset** rather than `Wrap`, which recomputes wrapping on every draw and is O(text length).\n\nFor anything resembling a text editor (composer with multi-line input, cursor, selection, undo) reach for `tui-textarea`. The hand-rolled `String + push\u002Fpop` composer in `roder-tui\u002Fsrc\u002Fapp.rs:185-189` is fine as a placeholder, but it can't handle paste, multi-line, Unicode width, or cursor movement.\n\n### Theming and color: route through one module\n\nDon't sprinkle `Color::Rgb(...)` or named colors across render code. Define a `Theme` struct with semantic roles (`text`, `text_muted`, `accent`, `border`, `error`, `header_bg`, etc.) and pass it (or store on `App`) so the whole UI restyles in one place. This is exactly what gode's existing `tui-theming` skill enforces on the Bubble Tea side — mirror that discipline in ratatui code. Avoid hard-coding `Color::White`\u002F`Color::Black`; on light terminals they invert. Prefer terminal-default (`Color::Reset`) for primary text unless you have a real reason.\n\n### State + async + cancellation\n\n- Use `tokio_util::sync::CancellationToken` to shut down the event loop, background streams, and in-flight requests in one place.\n- For long-running work owned by a component, store a `JoinHandle` on the component and `abort()` it on `Drop` or on state transitions that obsolete the result.\n- Subscribe to server\u002Fbus events with a `broadcast::Receiver` or `mpsc::Receiver` and pump them into the same `Event` channel — do **not** poll `try_recv()` inside the draw loop (current pattern at `app.rs:229`). Drained-in-draw means events stall behind keystrokes and rendering races state.\n\n### Layout, resize, and constraints\n\n- Define layouts top-down with `Layout::vertical([...])` \u002F `Layout::horizontal([...])` and `Constraint::{Length, Min, Max, Percentage, Ratio, Fill}`. Prefer `Length`\u002F`Min` for chrome (header, footer, borders) and `Min(1)`\u002F`Fill(1)` for the growable area.\n- Cache `Layout` only if it shows up in profiles; ratatui's constraint solver is cheap.\n- Recompute layout every draw — never store `Rect`s across frames. Terminal size changes arrive as `Event::Resize`; the next draw picks the new size from `frame.area()` automatically.\n- Reserve one row for a status\u002Ffooter that always shows mode + key hints; users navigate TUIs by reading that line.\n\n### Common ecosystem crates worth knowing\n\n- `tui-textarea` — multi-line input widget with editing, paste, selection.\n- `tui-input` — single-line input.\n- `tui-tree-widget` — tree view (file managers, JSON viewers).\n- `tui-big-text` — splash\u002Fbanner text.\n- `ratatui-image` — render images via Kitty\u002FSixel\u002FiTerm2 protocols where supported.\n- `throbber-widgets-tui` — spinners.\n- `tui-logger` — in-app log panel hooked into `log`\u002F`tracing`.\n- `color-eyre` + `better-panic` — pretty error reporting; install panic hooks **before** entering the alternate screen so a panic does not leave the terminal scrambled.\n\n### Terminal lifecycle hygiene\n\n- Wrap enter\u002Fleave alternate screen + raw mode in a guard type with a `Drop` impl, or install a panic hook that runs `disable_raw_mode()` + `LeaveAlternateScreen` before unwinding. The current `roder-tui` does these inline at the end of `run()` — if anything between them panics, the terminal is left broken.\n- Enable bracketed paste (`EnableBracketedPaste`) and focus change reporting (`EnableFocusChange`) explicitly if you want `Paste`\u002F`FocusGained`\u002F`FocusLost` events.\n- Restore the terminal **before** printing anything on shutdown (errors, summaries) so output goes to the real screen, not the alternate one.\n\n### Pitfalls to avoid\n\n- Don't redraw less than you need to, but don't try to be clever about \"dirty rects\" either — ratatui already diffs the previous buffer against the new one. Just call `terminal.draw(...)` on each `Render` tick.\n- Don't `event::read()` from inside `update`\u002F`view`. Events come from the event task only.\n- Don't allocate large strings every draw (e.g., joining all transcript messages into one `String`). Build a `Vec\u003CLine\u003C'static>>` once when messages mutate and pass a slice to `Paragraph` \u002F `List`.\n- Don't reach for `mouse` events until keyboard navigation is solid — most TUI users disable mouse capture.\n- Don't use `cargo run` for visual sanity — pipe through `gode-tmux-capture` (see related skill) or run interactively.\n\n## Reference apps to read when stuck\n\nWhen you have a concrete question (\"how do I do a fuzzy finder popup?\", \"how does a tab bar carry focus?\"), open the source of the closest analogue rather than guessing:\n\n- **gitui** — multi-tab app, popup stack, queue-based actions, async git via `git2`\u002F`gitoxide`. Strong reference for *anything* keyboard-driven and modal.\n- **bottom** — heavy data refresh, charts, customizable layout via config. Reference for tick-driven data widgets.\n- **slumber** \u002F **ATAC** — request-builder UIs, forms, navigation between many input fields. Reference for form-heavy screens.\n- **yazi** — async I\u002FO file manager, image preview, plugin system. Reference for highly async UIs.\n- **spotify-player** — long-running streaming events, OAuth flows surfaced in the UI.\n- **kdash** \u002F **gobang** — table-heavy CRUD-style screens.\n\nThe `ratatui\u002Ftemplates` repo (`simple`, `event-driven`, `component`) is the canonical starting point — `component` is the closest match to what `roder-tui` should grow into.\n\n## Verification\n\n- After non-trivial UI changes, run the relevant crate tests: `cargo test -p roder-tui` and `cargo clippy -p roder-tui --all-targets -- -D warnings`.\n- For visual changes, capture a session via the `gode-tmux-capture` skill and inspect contrast on a light terminal — see the `tui-theming` skill for the contrast rules.\n- For event-handling changes, write a unit test that drives a sequence of `Event`s through `update`\u002F`handle_action` and asserts on model state; this is the payoff of keeping `update` pure.\n",{"name":5,"description":7},"master","cc8a773a0aeb90b9a2c6d9496045d0086befa159",".agents\u002Fskills\u002Fratatui-patterns",1,"https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder","https:\u002F\u002Froder.sh","https:\u002F\u002Fgithub.com\u002FRoderAI","roder.sh","Roder maintain the last model harness the world will need","2026-11-13 16:46:55",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add RoderAI\u002Froder --skill ratatui-patterns",{"tool":40,"command":41},"bunx","bunx skills add RoderAI\u002Froder --skill ratatui-patterns",{"tool":43,"command":44},"pnpm","pnpm dlx skills add RoderAI\u002Froder --skill ratatui-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fratatui-patterns\u002FSKILL.md",true,[],[49,56,63,70,77,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75PV4G2KGTM7SWT2CH1V4AF","repo-tour","Use when a user asks for an orientation tour of an unfamiliar repository. Produces a structured tour of entry points, key modules, and how to run tests.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fexamples\u002Fpackages\u002Fdemo-roder-package\u002Fskills\u002Frepo-tour\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M75PV378N4WSCDFRD1BCDAPS","review","Review code changes.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fcrates\u002Froder-skills\u002Ftests\u002Ffixtures\u002Fmodel\u002Fworkspace-review\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M75PV216EXMRD1ZXTWZ94CZD","vcs-snapshot","Create a scoped version-control snapshot.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fcrates\u002Froder-skills\u002Ftests\u002Ffixtures\u002Fmodel\u002Fbuiltin-vcs-snapshot\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M75PTW4RMS1K8FTKGSXBC895","webwright","Drive a local Playwright browser through a Roder-owned Webwright workspace with plan, final script, screenshots, logs, and verification evidence.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fcrates\u002Froder-skills\u002Fbuiltin\u002Fwebwright\u002FSKILL.md",[],[],{"skillNo":78,"name":65,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M75PTRBG4VZVNJY9D7C8J7RK","Create scoped VCS snapshots from the current workspace state.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fcrates\u002Froder-skills\u002Fbuiltin\u002Fvcs-snapshot\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M75PTNTG14BJ27N6S5QBVGNA","roder-config","Configure and live-reload Roder from pasted config snippets, especially MCP server JSON, without leaking secrets or enabling executable integrations without approval.","https:\u002F\u002Fgithub.com\u002FRoderAI\u002Froder\u002Fblob\u002Fmaster\u002Fcrates\u002Froder-skills\u002Fbuiltin\u002Froder-config\u002FSKILL.md",[],[]]