New advertisers: 50% off your first month with code FIRSTMONTHSee slots
jwynia avatar

Electron Best Practices

Secure, type-safe Electron and React guidance with IPC patterns, packaging, signing, and Playwright testing.

skills.sh installs
893
GitHub stars
191
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers Electron plus React app development: security patterns, typed IPC, React integration, packaging, code signing, and testing
  • Enforces context isolation, sandbox mode, and disabled nodeIntegration, with contextBridge as the only main-renderer channel
  • Provides a Result type {success, data, error} for IPC returns, with typed channel maps and optional electron-trpc with Zod validation
  • Designed for projects built on electron-vite and Electron Forge, targeting Electron 20 and later

Install

$ npx -y skills add jwynia/agent-skills --skill electron-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Electron + React Best Practices

Guide AI agents in building secure, production-ready Electron applications with React. This skill provides security patterns, type-safe IPC communication, project setup guidance, packaging and code signing workflows, and tools for analysis, scaffolding, and type generation.

When to Use This Skill

Use this skill when:

  • Generating Electron main, preload, or renderer process code
  • Configuring electron-vite or Electron Forge
  • Setting up IPC communication between processes
  • Implementing security patterns (contextBridge, sandbox, CSP)
  • Packaging, signing, and notarizing desktop applications
  • Testing Electron apps with Playwright
  • Designing multi-window architectures

Do NOT use this skill when:

  • Building Tauri apps (different paradigm, use Tauri-specific guidance)
  • Building pure web apps with no desktop requirements
  • Targeting Electron versions below 20 (security defaults differ)
  • Using non-React renderer frameworks (use framework-specific skills)

Core Principles

1. Security First Architecture

Details

Repository
github.com/jwynia/agent-skills
Categories
Frontend & UI Code, Mobile Apps, Security
First seen
May 16, 2026

More from jwynia/agent-skills

All 118

Similar to Electron Best Practices

More Frontend & UI Code