Skills Plugins MCP Prompt Model 博客 我的中心

desktop

Electron desktop development guide — IPC handlers, controllers, preload scripts, window/menu management.

DeepseekModel Curated skill Quality Excellent · 90 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=lobehub-lobehub-agents-skills-desktop-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name desktop description Electron desktop development guide — IPC handlers, controllers, preload scripts, window/menu management. disable-model-invocation true Desktop Development Guide Architecture Overview LobeHub desktop is built on Electron with main-renderer architecture: Main Process ( apps/desktop/src/main ): App lifecycle, system APIs, window management Renderer Process : Reuses web code from src/ Preload Scripts ( apps/desktop/src/preload ): Securely expose main process to renderer Adding New Desktop Features 1. Create Controller Location: apps/desktop/src/main/controllers/ import { ControllerModule , IpcMethod } from '@/controllers' ; export default class NewFeatureCtr extends ControllerModule { static override readonly groupName = 'newFeature' ; @IpcMethod () async doSomething ( params : SomeParams ): Promise < SomeResult > { // Implementation return { success : true }; } } Register in apps/desktop/src/main/controllers/registry.ts . 2. Define IPC Types Location: packages/electron-client-ipc/src/types.ts export interface SomeParams { /* ... */ } export interface SomeResult { success : boolean ; error ?: string ; } 3. Create Renderer Service Location: src/services/electron/ import { ensureElectronIpc } from '@/utils/electron/ipc' ; const ipc = ensureElectronIpc (); export const newFeatureService = async ( params : SomeParams ) => { return ipc. newFeature . doSomething (params); }; 4. Implement Store Action Location: src/store/ 5. Add Tests Location: apps/desktop/src/main/controllers/__tests__/ Detailed Guides See references/ for specific topics: Feature implementation : references/feature-implementation.md Local tools workflow : references/local-tools.md Menu configuration : references/menu-config.md Window management : references/window-management.md Best Practices Security : Validate inputs, limit exposed APIs Performance : Use async methods, batch data transfers UX : Add progress indicators, provide error feedback Code organization : Follow existing patterns, add documentation
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。