EL

electron-skills

Applies standard architecture patterns for Electron desktop development.

Install

mkdir -p .claude/skills/electron-skills && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3548" && unzip -o skill.zip -d .claude/skills/electron-skills && rm skill.zip

Installs to .claude/skills/electron-skills

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Electron patterns for LlamaFarm Desktop. Covers main/renderer processes, IPC, security, and packaging.
102 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Implement IPC handlers in main process
  • Expose APIs via contextBridge
  • Configure BrowserWindow with context isolation
  • Manage main and renderer process lifecycle
  • Package applications for cross-platform distribution

How it works

The skill utilizes a main process entry point for lifecycle management and IPC handlers, while exposing a secure bridge via contextBridge to the renderer process.

Inputs & outputs

You give it
IPC channel name and payload
You get back
Serialized data returned from main process handler

When to use electron-skills

  • Implement IPC handlers for main process
  • Expose APIs via contextBridge safely
  • Configure main and renderer isolation

About this skill

Electron Skills for LlamaFarm Desktop

Electron 28 + Electron Vite patterns for the LlamaFarm Desktop application.

Overview

This skill extends typescript-skills with Electron-specific patterns for main/renderer process architecture, IPC communication, security, and performance.

Tech Stack

ComponentTechnologyPurpose
FrameworkElectron 28Desktop application framework
Buildelectron-vite 2Vite-based build for main/preload/renderer
Updateselectron-updaterAuto-update via GitHub releases
Packagingelectron-builderCross-platform packaging (macOS/Win/Linux)

Architecture

electron-app/
  src/
    main/           # Main process (Node.js context)
      index.ts      # App entry, lifecycle, IPC handlers
      backend/      # CLI installer, model downloader
      window-manager.ts
      menu-manager.ts
      logger.ts
    preload/        # Preload scripts (bridge context)
      index.ts      # contextBridge API exposure
    renderer/       # Renderer process (browser context)
      index.html    # Main window
      splash.html   # Splash screen

Core Principles

  1. Process isolation - Main, preload, and renderer are separate contexts
  2. Context isolation - Always use contextBridge.exposeInMainWorld
  3. No Node in renderer - nodeIntegration: false always
  4. Type-safe IPC - Define channel types and payload schemas
  5. Secure by default - Minimize exposed APIs in preload

Related Documents

Shared TypeScript Patterns

This skill inherits from typescript-skills:

Quick Reference

IPC Handler Pattern (Main Process)

ipcMain.handle('cli:info', async () => {
  const isInstalled = await this.cliInstaller.isInstalled()
  return {
    isInstalled,
    path: isInstalled ? this.cliInstaller.getCLIPath() : null
  }
})

Preload Bridge Pattern

const api = {
  cli: {
    getInfo: () => ipcRenderer.invoke('cli:info')
  },
  platform: process.platform,
  version: process.versions.electron
}

contextBridge.exposeInMainWorld('llamafarm', api)

BrowserWindow Configuration

new BrowserWindow({
  webPreferences: {
    preload: path.join(__dirname, '../preload/index.js'),
    nodeIntegration: false,
    contextIsolation: true
  }
})

Checklist Summary

CategoryCriticalHighMediumLow
IPC2321
Security4321
Performance1332

When not to use it

  • Enabling Node.js integration in renderer process
  • Exposing raw IPC channels to renderer

Prerequisites

Electron 28electron-vite 2TypeScript

Limitations

  • Requires nodeIntegration: false
  • Must use contextBridge for all renderer-to-main communication

How it compares

Unlike standard Electron setups, this enforces strict process isolation and type-safe IPC communication by default.

Compared to similar skills

electron-skills side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
electron-skills (this skill)36moNo flagsIntermediate
telegram-mini-app626moReviewAdvanced
shopify-development126moReviewIntermediate
nextjs-supabase-auth126moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

telegram-mini-app

davila7

Expert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, payments, user authentication, and building viral mini apps that monetize. Use when: telegram mini app, TWA, telegram web app, TON app, mini app.

62163

shopify-development

davila7

Build Shopify apps, extensions, themes using GraphQL Admin API, Shopify CLI, Polaris UI, and Liquid. TRIGGER: "shopify", "shopify app", "checkout extension", "admin extension", "POS extension", "shopify theme", "liquid template", "polaris", "shopify graphql", "shopify webhook", "shopify billing", "app subscription", "metafields", "shopify functions"

1299

nextjs-supabase-auth

davila7

Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.

1259

nuxt

antfu

Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.

1950

tanstack-query

exceptionless

Data fetching and caching with TanStack Query in Svelte. Query patterns, mutations, cache invalidation, WebSocket-driven updates, and optimistic updates. Keywords: createQuery, createMutation, TanStack Query, query keys, cache invalidation, optimistic updates, refetch, stale time, @exceptionless/fetchclient, WebSocket

740

telegram-dev

2025Emma

Telegram 生态开发全栈指南 - 涵盖 Bot API、Mini Apps (Web Apps)、MTProto 客户端开发。包括消息处理、支付、内联模式、Webhook、认证、存储、传感器 API 等完整开发资源。

232

Search skills

Search the agent skills registry