Electron — безопасная архитектура IPC и главного процесса
engineering
electron-dev is a Claude Code skill that establishes secure and consistent patterns for Electron main process development in the Gemini-Subtitle-Pro project. It activates when creating or modifying IPC handlers (`ipcMain.handle()`), preload scripts with contextBridge, native integrations with ffmpeg, whisper, and yt-dlp, file system operations, and protocol handlers. The skill provides a four-step IPC contract pattern — handler in `electron/main.ts`, bridge in `electron/preload.ts`, type definitions in `electron.d.ts`, and renderer usage — along with a `feature:action` naming convention for IPC channels. A critical security section enforces non-negotiable BrowserWindow settings: `nodeIntegration: false`, `contextIsolation: true`, and `sandbox: true`. Designed for TypeScript desktop app developers who need reproducible, security-conscious inter-process communication architecture.
- #electron
- #ipc
- #desktop-app
- #security
- #native-integration
- #typescript