
Description
hotkey is an agent skill from the LobeHub repository with a step-by-step guide for adding a keyboard shortcut to the app. It covers keyboard shortcuts, their registration, key combinations, scope, conflicts and the tooltips that show a shortcut to the user. The steps are short. First, add the new shortcut's id to the HotkeyId union in packages/types/src/hotkey.ts, which is the source of truth that HotkeyEnum is typed against. Second, register the default key combination in packages/const/src/hotkeys.ts by adding an entry to HotkeyEnum and to HOTKEYS_REGISTRATION. The guide notes that KeyEnum and combineKeys are already defined in that file, so no extra import is needed. The skill is for contributors who add a feature that needs a shortcut, or who need to check whether a key combination is already taken before they choose one. It is a convention guide for this one codebase rather than a general introduction to keyboard handling. The skill passes Gen Agent Trust Hub, Socket and Snyk on skills.sh. Install it with npx skills add https://github.com/lobehub/lobehub --skill hotkey.…
Highlights
- Steps for adding a new keyboard shortcut to the app
- Registers default key combinations in one file
- Covers scope, conflicts and shortcut tooltips
- Shows which files hold the shortcut ids and registration
Ratings & Reviews
No ratings yet
Be the first to rate hotkey.
People also visit
hotkey FAQ
What does the skill cover?
Adding keyboard shortcuts to the LobeHub app, including the id, the default key combination, scope, conflicts and tooltips.
Which files do I edit?
packages/types/src/hotkey.ts for the HotkeyId union, and packages/const/src/hotkeys.ts for HotkeyEnum and HOTKEYS_REGISTRATION.
Who is it for?
Contributors to the LobeHub repository who add a feature that needs a shortcut.
How do I install it?
Run npx skills add https://github.com/lobehub/lobehub --skill hotkey.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.
What are the best hotkey alternatives?
Popular alternatives to hotkey include add-provider-doc, add-setting-env and debug. See all hotkey alternatives






