Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

electronElectron 桌面开发

Agent Skill

electron 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

公开资料未说明

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:electron(Electron 桌面开发)
来源仓库:https://github.com/teachingai/agent-skills
仓库路径:skills/electron
安装命令:
npx skills add teachingai/agent-skills --skill "electron"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add teachingai/agent-skills --skill "electron"

简介

electron 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 GitHub 安装,使用 npx skills add teachingai/agent-skills --skill "electron" 命令添加。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库和原始 README 继续核验具体用法。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Build cross-platform desktop applications with Electron
  • Understand Electron architecture (main process, renderer process, preload)
  • Implement IPC (Inter-Process Communication) between processes
  • Create and manage BrowserWindow instances
  • Implement menus, tray icons, and native features
  • Package and distribute Electron applications
  • Use Electron Forge for project scaffolding and building
  • Debug and test Electron applications
  • Implement security best practices
  • Use Electron APIs (app, BrowserWindow, ipcMain, ipcRenderer, etc.)

How to use this skill

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:

  1. Identify the topic from the user's request:

- Getting started/快速开始 → examples/getting-started/installation.md or examples/getting-started/quick-start.md - Main process/主进程 → examples/processes/main-process.md - Renderer process/渲染进程 → examples/processes/renderer-process.md - IPC communication/IPC 通信 → examples/processes/ipc-communication.md - BrowserWindow/窗口 → examples/api/browser-window.md - Menu/菜单 → examples/api/menu.md - Packaging/打包 → examples/advanced/packaging.md - Security/安全 → examples/advanced/security.md

  1. Load the appropriate example file from the examples/ directory: Getting Started (快速开始) - examples/getting-started/: Processes (进程) - examples/processes/: API Examples (API 示例) - examples/api/: Advanced (高级) - examples/advanced/: Tools (工具) - examples/tools/:

- examples/getting-started/installation.md - Installing Electron and basic setup - examples/getting-started/quick-start.md - Quick start tutorial - 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 - 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 - 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 - examples/tools/electron-forge.md - Electron Forge usage - examples/tools/electron-fiddle.md - Electron Fiddle usage

  1. 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

  1. 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

  1. 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

Doc mapping (one-to-one with official documentation)

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

Detailed API documentation is available in the api/ directory, organized to match the official Electron API documentation structure:

Core APIs (api/)

  • 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
  • api/dialog.md - Dialog API

To use API reference:

  1. Identify the API you need help with
  2. Load the corresponding API file from the api/ directory
  3. Find the API signature, parameters, return type, and examples
  4. Reference the linked example files for detailed usage patterns
  5. All API files include links to relevant example files in the examples/ directory

Best Practices

  1. Security: Never enable nodeIntegration in renderer process, use preload scripts
  2. Process separation: Keep main and renderer processes separate
  3. IPC communication: Use IPC for safe communication between processes
  4. Resource management: Properly clean up resources (windows, listeners)
  5. Error handling: Implement proper error handling and crash reporting
  6. Performance: Optimize for performance, use webContents for debugging
  7. Packaging: Use Electron Forge or electron-builder for packaging
  8. Auto updates: Implement auto-updater for production apps
  9. Native modules: Handle native module compatibility
  10. Cross-platform: Test on all target platforms

Resources

Keywords

Electron, desktop app, main process, renderer process, preload, IPC, BrowserWindow, Menu, Tray, Dialog, packaging, electron-builder, electron-forge, electron-fiddle, cross-platform, 桌面应用, 主进程, 渲染进程, IPC 通信, 窗口, 菜单, 托盘, 打包

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.14%
按下载量换算40

OpenCode

21.93%
按下载量换算29

Antigravity

18.94%
按下载量换算25

Codex

12.66%
按下载量换算17

windsurf

8.58%
按下载量换算11

Gemini CLI

3.96%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills