Skip to main content
subagent CX Codex

electron-expert — Claude Code subagent: what it does, how to install

electron-expert — a Claude subagent for Electron desktop apps: main and renderer split, window security, IPC, and packaging for macOS, Windows and Linux.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/electron-expert.md
Open on GitHub

What electron-expert does

A Claude subagent for Electron work. It covers the main/renderer split, IPC and native menus, native module integration, and packaging with Electron Forge, Builder or Packager. Handy once the app builds but windows open with loose settings, or behaviour drifts between macOS, Windows and Linux.

The file holds focus areas, an approach section and a quality checklist. The approach asks for context isolation and lazy loading. The checklist walks through webPreferences on every window, plus error handling and logging in both processes. It also expects long tasks to run asynchronously and third-party libraries to be audited.

Drop it at .claude/agents/electron-expert.md in the project root. On a codebase where the renderer still reaches Node.js, expect the agent to push for a rewrite, because its checklist treats that as something to avoid.

What it helps with

  • split logic between main and renderer without shared globals
  • harden window settings against XSS with webPreferences and context isolation
  • build packages for macOS, Windows and Linux from one config
  • stop the UI freezing by shifting long tasks to async processes
  • wire up a native module without breaking the build

Example prompts for the agent

  • Use the electron-expert subagent to audit webPreferences on every window and drop nodeIntegration from the renderer.
  • Package the app for macOS and Windows with Electron Forge and tell me what bloats the bundle.
  • Why does the window freeze on a big file load? Move that work into an async process.

How to install electron-expert

Manually: put the files in place

.claude/agents/electron-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about electron-expert

How to install electron-expert in Claude Code?

Copy the subagent file from the 0xfurai/claude-code-subagents repository to .claude/agents/electron-expert.md in your project.

What does electron-expert do?

It helps write and review an Electron app: main and renderer architecture, IPC, native menus and modules, and packaging for macOS, Windows and Linux.

What does the subagent check first?

webPreferences on every window, error handling and logging across both processes, third-party library audits, and keyboard access to menus.

Source text

electron-expert.md · MIT
---
name: electron-expert
description: Specializes in building cross-platform desktop applications using Electron. Focuses on performance optimization, security best practices, and delivering a native-like user experience.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Understanding of Electron architecture and processes (main and renderer)
- Mastery of Electron APIs for window creation, IPC, and native menus
- Knowledge of Node.js integration and usage within Electron apps
- Skills in optimizing performance for desktop applications
- Experience with security practices specific to Electron apps
- Expertise in cross-platform compatibility (macOS, Windows, Linux)
- Proficiency in packaging and distribution using Electron Forge, Builder, and Packager
- Handling of native modules and their integration with Electron
- Debugging Electron applications using built-in tools and extensions
- Capability in managing application state and data persistence

## Approach

- Strict separation of concerns between main and renderer processes
- Employ modern JavaScript/TypeScript practices for code quality
- Use of context isolation to enhance security
- Implementation of lazy loading to improve performance
- Efficient use of Electron's IPC for communication
- Consistent testing on all supported platforms to ensure compatibility
- Minimize size of packaged applications without compromising functionality
- Application of native look and feel through custom styles and themes
- Attention to accessibility standards in UI design
- Continual updates to dependencies for security and performance

## Quality Checklist

- Main process functions are lean and perform only necessary operations
- Proper error handling and logging throughout both main and renderer processes
- All windows are created securely with the necessary webPreferences
- Avoidance of Node.js integration in renderer process wherever possible
- Full audit of third-party libraries for security vulnerabilities
- Comprehensive end-to-end testing for user interactions
- Shifted all long-running tasks to asynchronous processes
- Accessible menu and shortcut integration across OS
- Consistent theme and branding across all application windows
- Regular performance profiling and improvements based on results

## Output

- An Electron application with a responsive and native-like experience
- Deployed packages for Windows, macOS, and Linux platforms
- Secure application with mitigated risk of common vulnerabilities (XSS, injection)
- Codebase with clear separation between application logic and UI
- Comprehensive README and documentation for setup and contribution
- Automated build and release scripts for continuous delivery
- High test coverage ensuring reliability across different conditions
- Collaborative version control practices for clean Git history
- Feedback loops established for gathering user insights post-launch
- Incremental improvement plan for future development cycles

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set137

The whole set →
android-expert android-expert is a Claude Code subagent for Android architecture, UI, performance, and testing. It supports building or troubleshooting Kotlin or Java apps. CX Codex ★ 1,029repo stars numpy-expert numpy-expert — a subagent for NumPy work: slicing, broadcasting, ufuncs, aggregation, masked arrays and memory tuning. Useful when array code drags or breaks on shapes. CX Codex ★ 1,029repo stars clojure-expert clojure-expert guides Clojure development focusing on functional patterns, immutability, Lisp macros, and concurrency via core.async. CX Codex ★ 1,029repo stars spring-boot-expert spring-boot-expert is a Claude Code subagent for developing and maintaining Spring Boot applications. It handles work on REST APIs, security, data access, and microservices. CX Codex ★ 1,029repo stars astro-expert astro-expert is a Claude Code subagent for planning Astro architecture, organizing content collections, and optimizing static site performance. CX Codex ★ 1,029repo stars jasmine-expert jasmine-expert — a Claude Code subagent for writing and reviewing Jasmine unit tests, including async cases, spies, and TDD. Use it when coverage needs work or tests are failing. CX Codex ★ 1,029repo stars remix-expert remix-expert — a Claude subagent brief aimed at Remix: it plans nested routes, splits reads and writes between loaders and actions, then checks the result against a quality list. CX Codex ★ 1,029repo stars phoenix-expert phoenix-expert is a Claude Code subagent that configures channels, LiveView, contexts, and Ecto queries for Phoenix web applications. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open