Electron
Electron cross-platform desktop apps with web technologies. Use for desktop apps.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill electronAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 243 tokens by cl100k_base, as published. Nobody here has run it
Electron
Electron bundles Chromium and Node.js into a desktop app. It is the industry standard (VS Code, Slack, Discord) despite the file size.
When to Use
- Rich Capabilities: If you need full Node.js access (Filesystem, Serial Port).
- Consistent UI: Loops exactly the same on Windows/Mac/Linux (Pixel Perfect).
- Legacy: Migrating an existing web app to desktop with zero changes.
Core Concepts
Main Process
The Node.js backend. Controls lifecycle and windows.
Renderer Process
The Chromium frontend. Displays UI.
Preload Scripts
The secure bridge between Main and Renderer (Context Isolation).
Best Practices (2025)
Do:
- Enable Context Isolation: Critical security feature (
contextIsolation: true). - Use IPC:
ipcMainandipcRendererfor communication. - Update Chromium: Security patches come via Electron updates.
Don't:
- Don't use
remotemodule: It is deprecated and insecure.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.