skills/electron-skills/electron-egg/SKILL.md
Build desktop applications with the Electron EGG framework, covering project setup, main/renderer process communication, window management, plugin system, and build/packaging. Use when the user asks about Electron EGG, electron-egg, needs to create Electron applications with EGG, or work with Electron EGG patterns.
npx skillsauth add partme-ai/full-stack-skills electron-eggInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
This skill is organized to match the Electron EGG official documentation structure (https://www.kaka996.com/, https://www.kaka996.com/pages/987b1c/, https://www.kaka996.com/pages/a99b72/). When working with Electron EGG:
Identify the topic from the user's request:
examples/guide/installation.mdexamples/guide/quick-start.mdexamples/features/api/Load the appropriate example file from the examples/ directory:
Guide (使用文档):
examples/guide/intro.md - Introduction to Electron EGGexamples/guide/installation.md - Installation guideexamples/guide/quick-start.md - Quick start guideexamples/guide/project-structure.md - Project structureexamples/guide/configuration.md - Configurationexamples/guide/build.md - Build and packageFeatures (功能特性):
examples/features/main-process.md - Main processexamples/features/renderer-process.md - Renderer processexamples/features/ipc-communication.md - IPC communicationexamples/features/window-management.md - Window managementexamples/features/menu.md - Menuexamples/features/tray.md - System trayexamples/features/auto-updater.md - Auto updaterexamples/features/plugin-system.md - Plugin systemFollow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
Reference API documentation in the api/ directory when needed:
api/main-api.md - Main process APIapi/renderer-api.md - Renderer process APIapi/ipc-api.md - IPC APIapi/window-api.md - Window APIapi/config-api.md - Configuration APIAPI Files:
api/main-api.md - Application class, BrowserWindow, ipcMain, app methodsapi/renderer-api.md - ipcRenderer, contextBridge, DOM APIsapi/ipc-api.md - IPC communication methods and eventsapi/window-api.md - Window creation and managementapi/config-api.md - Configuration options and environment variablesUse templates from the templates/ directory:
templates/installation.md - Installation templatestemplates/project-setup.md - Project setup templatestemplates/configuration.md - Configuration templatesElectron EGG is a desktop application development framework based on Electron and Egg.js, providing a complete development toolchain and best practices.
Key Concepts:
Using npm:
npm install electron-egg
Using yarn:
yarn add electron-egg
Using pnpm:
pnpm add electron-egg
// main.js
const { Application } = require('electron-egg')
const app = new Application({
// Configuration
})
app.start()
examples/ → https://www.kaka996.com/pages/987b1c/api/ → https://www.kaka996.com/pages/a99b72/api/)api/main-api.md - Application class, BrowserWindow, ipcMain, lifecycle hooksapi/renderer-api.md - ipcRenderer, contextBridge, DOM APIsapi/ipc-api.md - IPC communication methods and channelsapi/window-api.md - Window creation, management, eventsapi/config-api.md - Configuration options and environment variablesElectron EGG, electron-egg, Electron, Egg.js, desktop application, 桌面应用, 主进程, 渲染进程, IPC, 进程间通信, 窗口管理, 菜单, 系统托盘, 自动更新, 插件系统, main process, renderer process, inter-process communication, window management, menu, system tray, auto updater, plugin system
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.