
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
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 -yInstalls 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- Fact Check795
- Web Search782
- Worldbuilding767
- Joke Engineering760
- Docx Generator738
- Summarization725
- Dialogue709
- Story Analysis706
- Novel Revision701
- Story Idea Generator688
- Story Sense674
- Systemic Worldbuilding660
- System Design659
- Character Arc642
- Skill Builder641
- Story Collaborator631
- Typescript Best Practices629
- Interactive Fiction603
- Task Decomposition603
- Musical Dna580
- Prose Style575
- Brainstorming563
- Pptx Generator544
- Good Thinking542
Similar to Electron Best Practices
More Frontend & UI Code
electron-developmentmindrally/skills1.5K installsElectron development guidelines that enforce process separation, context isolation, and validated IPC for desktop apps.
moai-framework-electronmodu-ai/moai-adk193 installsElectron 33+ desktop development guide covering Main/Renderer architecture, type-safe IPC, security defaults, and packaging.
electron-devjamditis/claude-skills-journalism319 installsElectron desktop app patterns covering secure IPC, Fuses and ASAR integrity, tray, PTY terminals, WebRTC, and packaging.
electron-desktoptravisjneuman/.claude235 installsCross-platform Electron guide covering secure main, preload, and renderer architecture for Windows, macOS, and Linux.