hotkey
Use for keyboard shortcuts, registration, key combinations, scope, conflicts and shortcut tooltips.
Install
git clone https://github.com/lobehub/lobehub /tmp/lobehub && ln -s /tmp/lobehub/.agents/skills/hotkey ~/.claude/skills/hotkey
From README
Adding Keyboard Shortcuts Guide Steps to Add a New Hotkey Update Hotkey Constant In packages/types/src/hotkey.ts, add the new id to the HotkeyId union — it's the source of truth HotkeyEnum is typed against: Register Default Hotkey In packages/const/src/hotkeys.ts, KeyEnum and combineKeys are already defined locally in this file, so no import is needed — add the entry to HotkeyEnum and to HOTKEYSREGISTRATION: Add i18n Translation In packages/locales/src/default/hotkey.ts: Create and Register Hook In src/hooks/useHotkeys/chatScope.ts: Add Tooltip (Optional) Best Practices Scope: Choose global or chat scope based on functionality Grouping: Place in appropriate group (System/Layout/Conversation) Conflict check: Ensure no conflict with system/browser shortcuts Platform: Use KeyEnum.Mod instead of hardcoded Ctrl or Cmd Clear description: Provide title and description for users Troubleshooting Not working: Check scope and RegisterHotkeys hook Not in settings: Verify HOTKEYS\REGISTRATION...
More from this repo
zustand
Use for Zustand stores: state shapes and type sources, state-only stores with xActions classes, replica-backed...
add-setting-env
Used to add server-side environment variables that control default values for user settings.
debug-package
Use for debug() logging, lobe-* namespaces, DEBUG/localStorage.debug configuration and log formatting.
