
Description
desktop is an agent skill from the LobeHub repository that guides development of the Electron desktop app. It describes the main-renderer architecture: the main process in apps/desktop/src/main handles the app lifecycle, system APIs and window management; the renderer process reuses the web code from src/; and preload scripts in apps/desktop/src/preload expose the main process to the renderer in a controlled way. The skill then gives the steps for adding a feature. The first is to create a controller in apps/desktop/src/main/controllers, built on the ControllerModule and IpcMethod exports, and then expose it to the renderer through IPC handlers and the preload scripts, with window and menu changes where needed. It is useful for contributors who need to add a native capability to LobeHub's desktop build, because the skill keeps the renderer code separate from system access. It is limited to the desktop app's own structure and does not describe the web app or the server. The skill passes Gen Agent Trust Hub and Snyk, and Socket shows a warning on skills.sh. Install it with npx skills add https://github.com/lobehub/lobehub --skill desktop.…
Highlights
- Explains the Electron main-renderer architecture
- Adds desktop features through controllers and IPC handlers
- Covers preload scripts that expose the main process safely
- Guides window and menu management
Ratings & Reviews
No ratings yet
Be the first to rate desktop.
People also visit
desktop FAQ
What does the skill cover?
Development of the LobeHub Electron desktop app, including its main process, renderer, preload scripts, IPC handlers and controllers.
Where do new controllers go?
In apps/desktop/src/main/controllers, using the ControllerModule and IpcMethod exports.
What runs in the renderer?
The renderer reuses the web code in src/, and preload scripts expose the main process to it.
How do I install it?
Run npx skills add https://github.com/lobehub/lobehub --skill desktop.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub and Snyk pass, and Socket shows a warning.
What are the best desktop alternatives?
Popular alternatives to desktop include add-provider-doc, add-setting-env and debug. See all desktop alternatives





