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 teachingai/agent-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
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.