# electron-dev

electron-dev guides agents through building Electron apps with Electron Vite and Electron Builder. It focuses on process separation, IPC safety, and native dependencies.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 311 installs · ★ 655 repo stars
- Author: pedronauck
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pedronauck/skills/tree/HEAD/skills/curated/electron-dev/SKILL.md
- Updated: 2026-10-20
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pedronauck-electron-dev

## What it does

The skill enforces architectural boundaries between the main process and UI renderers. The preload layer serves as the single bridge, exposing whitelisted channels via `contextBridge`.

Security settings remain strict across all browser windows. Direct Node.js access is barred via disabled `nodeIntegration`, while `contextIsolation` and `sandbox` stay active. For native C++ packages such as `better-sqlite3`, the instructions guide bundling: exclude them in Rollup, rebuild with `@electron/rebuild`, and declare them inside `extraResources`. Missing these packaging steps breaks the release build instantly.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill electron-dev -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/electron-dev/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/electron-dev/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill electron-dev -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/electron-dev/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill electron-dev -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/electron-dev/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pedronauck/skills skills/curated/electron-dev
```

2. **Manually: put the files in place**
- File: `.github/skills/electron-dev/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill electron-dev -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pedronauck/skills --path skills/curated/electron-dev
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/electron-dev/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill electron-dev -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pedronauck/skills/tree/HEAD/skills/curated/electron-dev/SKILL.md

## When to use it
- set up whitelisted IPC communication in preload scripts
- configure Electron Vite bundling for C++ native modules
- enforce sandbox and context isolation flags in web preferences
- package desktop distributions using Electron Builder

## Example prompts
- Audit my preload script and IPC handlers against security leaks
- Configure electron-vite to bundle our app with better-sqlite3 externalized
- Help me debug a white screen error in our production Electron build

## Similar
- [electron-skills](https://affpapa.org/en/nevibecode/skills/electron-skills.md) — skill · 1 install
- [electron-development](https://affpapa.org/en/nevibecode/skills/mindrally-electron-development.md) — skill · 1500 installs
- [electron](https://affpapa.org/en/nevibecode/skills/gentleman-programming-electron.md) — skill · 175 installs
- [electron-pro](https://affpapa.org/en/nevibecode/agents/qdhenry-electron-pro.md) — subagent · ★ 1357 repo stars
- [electron-desktop](https://affpapa.org/en/nevibecode/skills/electron-desktop.md) — skill · 236 installs
- [electron-expert](https://affpapa.org/en/nevibecode/agents/electron-expert.md) — subagent · ★ 1029 repo stars

## Other versions with the same name
- [electron-dev · jamditis](https://affpapa.org/en/nevibecode/skills/electron-dev.md) — 319 installs

From the same set: [pedronauck/skills](https://affpapa.org/en/nevibecode/by/pedronauck/skills.md) — 52 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
