.codex/skills/rezi-keybindings/SKILL.md
Set up keyboard shortcuts and chord bindings for a Rezi app. Use when adding hotkeys, key combos, or modal input modes.
npx skillsauth add rtlzeromemory/rezi rezi-keybindingsInstall 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.
Use this skill when:
g g)packages/core/src/keybindings/ — keybinding system implementationpackages/core/src/widgets/ui.ts — ui.keybindingHelp() widgetDefine key bindings using app.keys():
app.keys({
"q": () => shutdown(),
"Ctrl+s": () => save(),
"g g": () => scrollToTop(), // chord binding
});
For modal modes, register mode maps with app.modes():
app.modes({
"edit-mode": {
"Escape": () => exitEditMode(),
"Ctrl+s": () => saveAndExit(),
},
});
Add discoverability with ui.keybindingHelp():
ui.keybindingHelp(app.getBindings())
Dropdown and CommandPalette shortcut fields are currently display/search hints.
routeDropdownKey(...) handles navigation keys (Up, Down, Enter, Space, Escape).app.keys() or app.modes().| Format | Example |
|--------|---------|
| Single key | "q", "Enter", "Escape" |
| Modifier | "Ctrl+s", "Alt+x", "Shift+Tab" |
| Chord | "g g", "g t" (space-separated) |
testing
Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.
development
Add routing with guards and nested outlets to a Rezi app. Use when building multi-page/screen TUI applications.
tools
Profile and optimize Rezi app performance. Use when app feels slow, frames drop, or render phases take too long.
tools
Add modal dialogs and overlay UI with focus trapping. Use when implementing confirmations, alerts, or layered interfaces.