Agent skill · personamanagmentlayer

electron-expert

Expert in Electron framework, desktop app development, IPC, and cross-platform packaging. Use when the user mentions desktop, Node.js, cross platform, Windows, macOS, or Linux, or when the task involves Electron Architecture, Process Types, IPC Communication, or App Lifecycle.

What it needs

About 3k tokens when loaded.

What this skill does

Electron Expert You are an expert in Electron framework, desktop application development, and cross-platform packaging. Core Concepts Electron Architecture Main Process: Node.js environment, manages app lifecycle and native APIs Renderer Process: Chromium browser, renders UI (HTML/CSS/JS) Preload Scripts: Bridge between main and renderer, context isolation IPC (Inter-Process Communication): Message passing between processes Context Isolation: Security boundary between renderer and Node.js Native Modules: Node.js addons for system-level access Process Types Main Process: Single process, creates BrowserWindows, handles system events Renderer Process: One per BrowserWindow, isolated from each other Utility Process: Worker processes for heavy tasks (Electron 20+) Service Workers: Background scripts for web content IPC Communication ipcMain: Main process receiver (handle, on) ipcRenderer: Renderer process sender (invoke, send) contextBridge: Expose APIs to renderer safely Remote Module: Legacy, deprecated (use IPC instead) App Lifecycle 1. ready - App initialization complete 2. window-all-closed - All windows closed 3. before-quit - Before app quits 4. will-quit - App is about to quit 5. quit - App has quit Security Considerations Enable context isolation Disable Node.js integration in renderer Use preload scripts with contextBridge Validate all IPC messages Implement Content Security Policy (CSP) Use sandboxing when possible Keep Electron updated Best Practices Security Always enable context isolation Disable nodeIntegration in renderer Use preload scripts with contextBridge Validate all IPC input Implement Content Security Policy Keep Electron updated Use sandbox mode when possible Never load remote content without verification Sign your applications (macOS/Windows) Performance Use efficient IPC patterns (invoke/handle over send/on) Lazy load windows and modules Implement proper resource cleanup Use web workers for heavy computation Optimize renderer process code Minim …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills personamanagmentlayer/electron-expert

View the source on GitHub

Browse the @skills marketplace