npx skills add https://github.com/teachingai/full-stack-skills --skill electron当用户想要进行以下操作时,请使用此技能:
此技能的组织结构与 Electron 官方文档结构(https://www.electronjs.org/zh/docs/latest/, https://www.electronjs.org/zh/docs/latest/api/app)相匹配。在处理 Electron 相关问题时:
从用户请求中识别主题:
examples/getting-started/installation.md 或 examples/getting-started/quick-start.mdexamples/processes/main-process.mdexamples/processes/renderer-process.md广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
examples/processes/ipc-communication.mdexamples/api/browser-window.mdexamples/api/menu.mdexamples/advanced/packaging.mdexamples/advanced/security.md从 examples/ 目录加载相应的示例文件:
入门指南 (快速开始) - examples/getting-started/:
* `examples/getting-started/installation.md` \- 安装 Electron 和基本设置
* `examples/getting-started/quick-start.md` \- 快速入门教程
进程 - examples/processes/:
* `examples/processes/main-process.md` \- 主进程概念和用法
* `examples/processes/renderer-process.md` \- 渲染进程概念
* `examples/processes/preload-scripts.md` \- 预加载脚本用法
* `examples/processes/ipc-communication.md` \- IPC 通信模式
API 示例 - examples/api/:
* `examples/api/browser-window.md` \- BrowserWindow 用法
* `examples/api/menu.md` \- 菜单和上下文菜单
* `examples/api/tray.md` \- 系统托盘
* `examples/api/dialog.md` \- 文件对话框
* `examples/api/ipc-main.md` \- ipcMain 用法
* `examples/api/ipc-renderer.md` \- ipcRenderer 用法
高级主题 - examples/advanced/:
* `examples/advanced/packaging.md` \- 应用程序打包
* `examples/advanced/security.md` \- 安全最佳实践
* `examples/advanced/auto-updater.md` \- 自动更新器
* `examples/advanced/native-modules.md` \- 原生模块
工具 - examples/tools/:
* `examples/tools/electron-forge.md` \- Electron Forge 用法
* `examples/tools/electron-fiddle.md` \- Electron Fiddle 用法
3. 遵循该示例文件中的具体说明,包括语法、结构和最佳实践
重要提示:
* 所有示例遵循 Electron 最新 API
* 示例同时使用 CommonJS (require) 和 ES 模块 (import)
* 每个示例文件都包含关键概念、代码示例和要点
* 始终检查示例文件以了解最佳实践和常见模式
* Electron 支持 Windows、macOS 和 Linux
4. 需要时参考 api/ 目录中的 API 文档:
* `api/app.md` \- app 模块 API
* `api/browser-window.md` \- BrowserWindow API
* `api/ipc-main.md` \- ipcMain API
* `api/ipc-renderer.md` \- ipcRenderer API
* `api/menu.md` \- Menu API
* `api/tray.md` \- Tray API
5. 使用 templates/ 目录中的模板:
* `templates/main-process.md` \- 主进程模板
* `templates/preload-script.md` \- 预加载脚本模板
* `templates/renderer-process.md` \- 渲染进程模板
* `templates/package-json.md` \- package.json 模板
此技能包含详细的示例,其组织结构与官方文档结构相匹配。所有示例都在 examples/ 目录中(参见上面的映射)。
使用示例:
使用模板:
templates/ 目录中的模板以获取常见脚手架详细的 API 文档可在 api/ 目录中找到,其组织结构与官方 Electron API 文档结构相匹配:
api/)api/app.md - app 模块 APIapi/browser-window.md - BrowserWindow APIapi/ipc-main.md - ipcMain APIapi/ipc-renderer.md - ipcRenderer APIapi/menu.md - Menu APIapi/tray.md - Tray APIapi/dialog.md - Dialog API使用 API 参考:
api/ 目录加载相应的 API 文件examples/ 目录中相关示例文件的链接Electron, desktop app, main process, renderer process, preload, IPC, BrowserWindow, Menu, Tray, Dialog, packaging, electron-builder, electron-forge, electron-fiddle, cross-platform, 桌面应用, 主进程, 渲染进程, IPC 通信, 窗口, 菜单, 托盘, 打包
每周安装量
972
仓库
GitHub 星标数
199
首次出现
Jan 24, 2026
安全审计
安装于
codex765
opencode765
gemini-cli739
github-copilot720
kimi-cli661
amp656
Use this skill whenever the user wants to:
This skill is organized to match the Electron official documentation structure (https://www.electronjs.org/zh/docs/latest/, https://www.electronjs.org/zh/docs/latest/api/app). When working with Electron:
Identify the topic from the user's request:
examples/getting-started/installation.md or examples/getting-started/quick-start.mdexamples/processes/main-process.mdexamples/processes/renderer-process.mdexamples/processes/ipc-communication.mdexamples/api/browser-window.mdexamples/api/menu.mdexamples/advanced/packaging.mdexamples/advanced/security.mdLoad the appropriate example file from the examples/ directory:
Getting Started (快速开始) -examples/getting-started/:
* `examples/getting-started/installation.md` \- Installing Electron and basic setup
* `examples/getting-started/quick-start.md` \- Quick start tutorial
Processes (进程) -examples/processes/:
* `examples/processes/main-process.md` \- Main process concepts and usage
* `examples/processes/renderer-process.md` \- Renderer process concepts
* `examples/processes/preload-scripts.md` \- Preload scripts usage
* `examples/processes/ipc-communication.md` \- IPC communication patterns
API Examples (API 示例) -examples/api/:
* `examples/api/browser-window.md` \- BrowserWindow usage
* `examples/api/menu.md` \- Menu and context menu
* `examples/api/tray.md` \- System tray
* `examples/api/dialog.md` \- File dialogs
* `examples/api/ipc-main.md` \- ipcMain usage
* `examples/api/ipc-renderer.md` \- ipcRenderer usage
Advanced (高级) -examples/advanced/:
* `examples/advanced/packaging.md` \- Application packaging
* `examples/advanced/security.md` \- Security best practices
* `examples/advanced/auto-updater.md` \- Auto updater
* `examples/advanced/native-modules.md` \- Native modules
Tools (工具) -examples/tools/:
* `examples/tools/electron-forge.md` \- Electron Forge usage
* `examples/tools/electron-fiddle.md` \- Electron Fiddle usage
3. Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes :
* All examples follow Electron latest API
* Examples use both CommonJS (require) and ES modules (import)
* Each example file includes key concepts, code examples, and key points
* Always check the example file for best practices and common patterns
* Electron supports Windows, macOS, and Linux
4. Reference API documentation in the api/ directory when needed:
* `api/app.md` \- app module API
* `api/browser-window.md` \- BrowserWindow API
* `api/ipc-main.md` \- ipcMain API
* `api/ipc-renderer.md` \- ipcRenderer API
* `api/menu.md` \- Menu API
* `api/tray.md` \- Tray API
5. Use templates from the templates/ directory:
* `templates/main-process.md` \- Main process template
* `templates/preload-script.md` \- Preload script template
* `templates/renderer-process.md` \- Renderer process template
* `templates/package-json.md` \- package.json template
examples/ → https://www.electronjs.org/zh/docs/latest/api/ → https://www.electronjs.org/zh/docs/latest/api/appThis skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingDetailed API documentation is available in the api/ directory, organized to match the official Electron API documentation structure:
api/)api/app.md - app module APIapi/browser-window.md - BrowserWindow APIapi/ipc-main.md - ipcMain APIapi/ipc-renderer.md - ipcRenderer APIapi/menu.md - Menu APIapi/tray.md - Tray APIapi/dialog.md - Dialog APITo use API reference:
api/ directoryexamples/ directoryElectron, desktop app, main process, renderer process, preload, IPC, BrowserWindow, Menu, Tray, Dialog, packaging, electron-builder, electron-forge, electron-fiddle, cross-platform, 桌面应用, 主进程, 渲染进程, IPC 通信, 窗口, 菜单, 托盘, 打包
Weekly Installs
972
Repository
GitHub Stars
199
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex765
opencode765
gemini-cli739
github-copilot720
kimi-cli661
amp656
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Grimoire CLI 使用指南:区块链法术编写、验证与执行全流程
940 周安装
Grimoire Uniswap 技能:查询 Uniswap 元数据与生成代币/资金池快照的 CLI 工具
940 周安装
Grimoire Aave 技能:查询 Aave V3 元数据和储备快照的 CLI 工具
941 周安装
Railway CLI 部署指南:使用 railway up 命令快速部署代码到 Railway 平台
942 周安装
n8n Python 代码节点使用指南:在自动化工作流中编写 Python 脚本
943 周安装
Flutter Platform Views 实现指南:Android/iOS/macOS原生视图与Web嵌入教程
943 周安装