tanstack-hotkeys
Installation
SKILL.md
TanStack Hotkeys
Use this skill when work touches TanStack Hotkeys, especially React keyboard shortcuts, command palettes, shortcut settings UIs, scoped shortcuts, Vim-style sequences, or held-key state.
Workflow
- Inspect the local shortcut stack before changing code:
- Package versions for
@tanstack/react-hotkeys(0.12.x),@tanstack/hotkeys(0.10.x), devtools, React, framework adapter, and test utilities. Code written for core0.8or older may rely on pre-0.9recorder and type behavior. - Shortcut shape: one-off hotkeys, dynamic shortcut lists, element-scoped shortcuts, global defaults, sequences, user-recorded bindings, or shortcut palettes.
- Interaction constraints: focused inputs, modals, command palettes, native browser shortcuts, app modes, disabled state, and accessibility.
- Package versions for
- Refresh current docs and package evidence when behavior or versions matter. Start from source-map.md.
- For installation, ESM/runtime requirements, logical vs physical bindings,
HotkeysProvider,useHotkey,useHotkeys, defaults, options, scoped targets, and registrations, use setup-core.md. - For
useHotkeySequence,useHotkeySequences,useHotkeyRecorder,useHotkeySequenceRecorder, recorder validation/conflicts, held-key hooks,useHotkeyHint, and dynamic user shortcuts, use sequences-recording-state.md. - For display formatting, shortcut palettes, devtools, SSR notes, accessibility, and testing, use display-production.md.