hotkey
Add or edit LobeHub keyboard shortcuts. Use for HotkeyEnum, HOTKEYS_REGISTRATION, combineKeys, useHotkeyById, tooltip hotkeys, shortcut scope, conflicts, or Cmd/Ctrl key combos.
Install
Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.
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 src/types/hotkey.ts: Register Default Hotkey In src/const/hotkeys.ts: 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 Key.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 config Conflict: HotkeyInput component shows warnings Page-specific: Ensure correct scope activation