# electron-pro

A Claude subagent that runs an Electron project written in TypeScript: main and renderer processes, IPC through a preload bridge, packaging with electron-builder.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 1357 repo stars
- Author: qdhenry
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/electron-pro.md
- Updated: 2026-03-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/qdhenry-electron-pro

## What it does

It splits an Electron app into the parts that matter: a main process, a renderer, and a preload script that hands over a narrow API through `contextBridge`. Channels carry TypeScript types, so a mismatch surfaces at build time. Security gets the same treatment: context isolation on, sandboxing, a restrictive CSP, and no Node.js inside windows that load remote pages. Native work such as file access and dialogs stays in the main process.

The tool list is broad: file reads and edits, `Bash`, glob and grep, web search and fetch. Two MCP servers back the thinking side — context7 for library docs, sequential-thinking for architecture calls. It runs on sonnet. Work goes in a plain order: scaffold the folders and a strict `tsconfig.json` first, then typed IPC, tests, `electron-builder` targets and code signing.

Behaviour checks go to Playwright end-to-end tests rather than hand clicking. Its tool list names `mcp__context7__get-library-docs` and `mcp__sequential-thinking__sequentialthinking`; skip connecting those MCP servers and the library lookups plus the separate reasoning pass are not available to it.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/electron-pro.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/electron-pro.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/electron-pro.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/electron-pro.md

## When to use it
- scaffold an Electron + TypeScript project from scratch
- type the IPC channels between main and renderer
- lock down context isolation and CSP before release
- package builds for several platforms with `electron-builder`
- cover a window with a Playwright end-to-end test

## Example prompts
- Scaffold an Electron + TypeScript app with separate main, renderer and preload folders and a strict `tsconfig.json`.
- Wire IPC between renderer and main through `contextBridge` and type the channels.
- Set up `electron-builder` for Windows and macOS and add a Playwright end-to-end test.

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

## Other versions with the same name
- [electron-pro · voltagent](https://affpapa.org/en/nevibecode/agents/electron-pro.md) — 376 installs
- [electron-pro · voltagent](https://affpapa.org/en/nevibecode/agents/voltagent-electron-pro.md) — ★ 6505 repo stars

From the same set: [qdhenry/claude-command-suite](https://affpapa.org/en/nevibecode/by/qdhenry/claude-command-suite.md) — 112 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
