Skip to main content
skill CX Codex

electron-dev · pedronauck — Claude Code skill: what it does, how to install

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

no license 311 installs ★ 655 updated 2026-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pedronauck/skills --skill electron-dev -a claude-code
Open on GitHub

What electron-dev 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.

What it helps with

  • 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 for the agent

  • 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

How to install electron-dev

1Skills CLI (Vercel)

npx skills add pedronauck/skills --skill electron-dev -a claude-code

2Manually: put the files in place

~/.claude/skills/electron-dev/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/electron-dev/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about electron-dev

How to install electron-dev in Claude Code?

Run npx skills add pedronauck/skills --skill electron-dev -a claude-code. The skill file will be placed in ~/.claude/skills/electron-dev/SKILL.md.

What does electron-dev do?

It equips your assistant with guidelines for Electron architecture, covering secure IPC channels, Vite configurations, and distribution steps.

How does it handle native modules?

It directs you to externalize them in electron-vite.config.ts, rebuild them using @electron/rebuild, and register them under extraResources.

Similar skills

All skills for Frontend and UI →

electron-dev by other authors comes first.

From the same set52

The whole set →
to-prompt to-prompt turns a task into a written brief under docs/prompts/, so a different model can carry out the implementation. CX Codex +1 348installs writing-skills Walks the agent through writing, refactoring and debugging skills, and through finding out why a reference file never loaded. CX Codex +1 338installs storybook-stories Writes and edits Storybook stories the way your repo already does it. Handy once a project has plenty of stories and the naming rules live only in people's heads. CX Codex +1 317installs ui-craft ui-craft — a skill for designing and building visible interfaces: pages, components, forms, loading and error states, AI chat surfaces with streaming. Works within your project's design system and validates accessibility. CX Codex +1 314installs writing-agents-md writing-agents-md is a Claude Code skill for writing and reviewing AGENTS.md and CLAUDE.md files. It covers projects with rules agents cannot infer from code or tooling alone. CX Codex +1 305installs app-renderer-systems The app-renderer-systems skill structures frontend modules in systems/ directories with clear layers: adapters, Query hooks, local state, and public exports. CX Codex +1 299installs rust-best-practices rust-best-practices — a skill for writing, refactoring, and optimizing Rust code with ownership, error handling, Tokio, traits, and testing. Use it for systems programming or async workloads where correctness matters. CX Codex +1 298installs es-toolkit Guides your AI assistant to use es-toolkit utility functions for arrays, objects, and strings instead of custom helpers. CX Codex +1 293installs

Project sponsors

Companies that keep this analytics open