Electron Desktop Development Patterns
Gives Claude production-grade Electron patterns for security, IPC, tray, PTY terminals, WebRTC, and cross-platform packaging.
Dev & CodingIntermediate★ 386⑂ 65AI score 9/10Last updated: Sep 4, 2026
What it does
- Establishes an Electron 30+ security baseline: contextIsolation, sandbox, no nodeIntegration, plus Electron Fuses and ASAR integrity validation (with CVE context).
- Provides the three-layer safe IPC pattern:
ipcMain.handlein main, narrowcontextBridgesurface in preload, typed React hooks in the renderer. - Ready-to-adapt snippets for system tray, global shortcuts, node-pty terminals, MediaRecorder audio capture, and PeerJS calls/screen sharing.
- A full
electron-builder.ymlfor Windows/macOS/Linux, plus macOS notarization and Windows code-signing env vars. - Fixes for common pitfalls: stale closures in async callbacks, and the BrowserView → WebContentsView migration.
Who it's for
- Frontend/fullstack developers shipping desktop apps with React, TypeScript, and Vite.
- Teams auditing an existing Electron app's security posture or finishing the release pipeline (signing, notarization).
- Anyone embedding a terminal, audio recording, or real-time voice/video into a desktop app.
Usage examples
- "Wire an IPC channel so the renderer can ask main to save a recording" → generates preload bridge plus typed renderer call.
- "Package this for macOS DMG without Gatekeeper warnings" → electron-builder config and APPLE_ID/APPLE_TEAM_ID notarization steps.
- "I'm getting a BrowserView deprecation warning" → rewrites to
contentView.addChildViewwith explicitsetBounds.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jamditis/claude-skills-journalism/HEAD/dev-toolkit/skills/electron-dev/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the dev-toolkit/skills/electron-dev folder from the GitHub repo jamditis/claude-skills-journalism into my ~/.claude/skills/electron-dev/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jamditis/claude-skills-journalism.git && mkdir -p ~/.claude/skills && cp -r claude-skills-journalism/dev-toolkit/skills/electron-dev ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and go to your home directory:
cd ~ - Clone the repository:
git clone https://github.com/jamditis/claude-skills-journalism.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r claude-skills-journalism/dev-toolkit/skills/electron-dev ~/.claude/skills/ - Verify with
ls ~/.claude/skills/electron-dev— you should seeSKILL.md. - Restart Claude Code, then ask something like "show me the secure Electron IPC pattern" to trigger it.
- (Optional) For a single project only, copy the folder into that project's
.claude/skills/directory instead.
View source on GitHub ↗License: MIT