electron-architect

Architect secure Electron apps with Main/Renderer process and IPC design.

17|1|Updated Apr 20, 2022
One-click install
npx skills add https://github.com/jvegaf/harmony --skill electron-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron-architect
Source: https://github.com/jvegaf/harmony/tree/main/.agents/skills/electron-architect
Command: npx skills add https://github.com/jvegaf/harmony --skill electron-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework and best practices for architecting secure, cross-platform Electron desktop applications, simplifying complex development tasks.

Core Features & Use Cases

  • Secure Architecture Design: Guides the creation of Main/Renderer processes with a focus on security principles like least privilege and defense in depth.
  • IPC Communication: Facilitates safe and type-safe Inter-Process Communication (IPC) between the Main and Renderer processes.
  • Packaging & Distribution: Assists in configuring Electron applications for reliable cross-platform packaging and distribution.
  • Use Case: When starting a new Electron project, use this Skill to scaffold a secure project structure, define IPC channels, and set up build configurations.

Quick Start

Use the electron-architect skill to scaffold a new Electron project named 'my-electron-app' using React and pnpm.

Frequently Asked Questions about electron-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a secure Electron desktop app architecture?

A secure Electron architecture separates Main and Renderer processes, enforcing least privilege and defense in depth. This approach isolates privileged operating system interactions from web content, minimizing remote code execution risks while maintaining clear process boundaries.

What is the best way to implement type-safe IPC communication in Electron?

Type-safe IPC communication in Electron requires defining strict channel contracts between Main and Renderer processes. By validating payloads and limiting exposed APIs, you prevent malicious web content from invoking unrestricted Node.js functions or accessing privileged operating system resources.

How do I scaffold a new Electron project with React and pnpm?

Scaffolding an Electron project with React and pnpm involves generating a base directory structure, configuring window management, and establishing secure IPC channels. This setup provides a ready-to-develop desktop application template adhering to security best practices.

How do I configure cross-platform packaging for an Electron application?

Cross-platform packaging for an Electron application requires configuring build scripts to target Windows, macOS, and Linux. Proper configuration ensures reliable distribution by bundling the correct runtime binaries and adhering to each operating system's specific signing requirements.