Repository inventory

gentleman-programming/gentleman-skills

Skills indexed from this repository, with install-style signals scoped to the repo.
12 skills2.4K GitHub stars0 weekly installsGitHubOwner profile

Overview

This skill documents practical Electron patterns for building secure, cross-platform desktop applications. It focuses on project structure, secure IPC between main and renderer, native integrations, auto-updates, and developer ergonomics. Use it to standardize architecture, reduce security risks, and speed up common tasks when using Electron with frameworks like React or Vue.

How this skill works

The skill provides concrete patterns and code examples for organizing main, renderer, preload, and shared code. It defines a type-safe IPC contract, secure contextBridge exposure, and helper React hooks for invoking and listening to IPC channels. It also includes patterns for native menus, auto-updater integration, persistent storage, and safe main-process APIs.

When to use it

  • Starting a new Electron project or refactoring an existing one
  • Implementing secure main <-> renderer communication and typed IPC channels
  • Integrating native OS features (menus, dialogs, notifications, tray)
  • Setting up auto-updates, persistent storage, and native services
  • Combining Electron with React, Vue, or other frontend frameworks
  • Preventing common security anti-patterns like nodeIntegration or remote usage

Best practices

  • Organize code into main, renderer, preload, and shared folders for clear boundaries
  • Expose a minimal, type-safe API through contextBridge; never expose ipcRenderer or enable nodeIntegration
  • Define all IPC channels and request/response types in shared types for compile-time safety
  • Keep file system and native integrations in the main process; use electron-store for persistent settings
  • Use autoUpdater with progress/events forwarded to the renderer and delay checks on startup
  • Follow Electron security checklist: contextIsolation true, nodeIntegration false, sandbox where possible

Example use cases

  • Type-safe file operations: renderer invokes 'file:read' and receives structured responses
  • App version and updater flow: renderer requests version, listens for updater events, and triggers downloads
  • Native dialogs and menus: menu actions send IPC events to renderer to open files or save
  • Persistent settings: main uses electron-store and exposes 'store:get'/'store:set' handlers
  • Renderer hooks: useIPC and useIPCListener provide simple data fetching and real-time events

FAQ

Expose only specific, typed methods via contextBridge; validate and type channels in shared types and never enable nodeIntegration.

Where should native code run?

Run filesystem, dialogs, auto-updater, and platform integrations in the main process and proxy access through typed IPC handlers.

12 skills

electron
Automation

This skill helps you build cross-platform desktop apps with Electron, enabling secure IPC, native integrations, and framework-agnostic setup.

DebuggingFrontendFullstackPerformance+1
hexagonal-architecture-layers-java
Backend

This skill helps you structure Java services with clean hexagonal layers, enforcing boundaries between domain, application, and infrastructure.

InfraJavaRefactorSpring+1
java-21
Code Review

This skill helps you write modern safe Java 21 code using records, sealed types, and virtual threads with best-practice guidance.

DebuggingJavaPerformance
spring-boot-3
Backend

This skill helps you apply Spring Boot 3 configuration, DI, and REST patterns to build robust services with validated properties and transactional services.

DesignJavaRestSpring
architecture
Code Review

This skill helps you structure Angular projects using the Scope Rule, project layout, and naming conventions to improve maintainability.

DesignFrontendProductivityRefactor+1
nextjs-15
Api

This skill helps optimize Next.js 15 apps by applying App Router patterns, server components, and server actions across routing, data fetching, and middleware.

AutomationDebuggingFrontendFullstack+1
github-pr
Ci Cd

This skill helps you craft conventional-commit compliant PRs with clear descriptions, streamlined gh pr create usage, and structured review-ready summaries.

CliCode ReviewDocsGit
django-drf
Api

This skill helps you implement Django REST Framework patterns with ViewSets, serializers, filters, and permissions to build robust APIs.

BackendDebuggingPerformanceRefactor+1
ai-sdk-5
Ai

This skill guides you through AI SDK 5 chat integration, highlighting breaking changes from v4 and enabling smooth transport-based implementations.

ApiBackendDocsFrontend+1
zustand-5
Debugging

This skill helps you implement Zustand state patterns including slices, persistence, selectors, async actions, and middleware for React apps.

FrontendProductivity
forms
Code Review

This skill helps you choose and use Angular forms best practices, including signals and reactive forms, to validate, manage state, and simplify form handling.

DebuggingDocsFrontendFullstack+2
jira-task
Api

This skill creates Jira tasks following Prowler's standard format when you ask to create a Jira task, ticket, or issue.

AutomationDocsPlanningProductivity
More from this maintainer
Other repositories and skills published under the same GitHub owner.
Skills library
Jump back to the full directory or explore grouped topics.
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational