desktop
Electron desktop development guide — IPC handlers, controllers, preload scripts, window/menu management.
DeepseekModel
キュレーション済みスキル
品質 優秀 · 90
v1.0.0
取得
https://deepseekmodel.com/api/download.php?id=lobehub-lobehub-agents-skills-desktop-skill-md&format=skill
ダウンロード .skill
標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
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
このスキルを起動するキーワード。クリックでコピーできます。
このスキルにはトリガーワードがありません。
ダウンロードした .skill に含まれるフィールド。
| フィールド | 説明 |
|---|---|
| format | フォーマット識別子(skill/v1) |
| skill_id | スキル固有 ID |
| name | スキル名 |
| version | バージョン |
| description | 説明 |
| category | カテゴリ(配列) |
| trigger_words | トリガーワード |
| tags | タグ |
| source | ソース |
| source_url | ソース URL(本ページ) |
| exported_at | エクスポート日時(ダウンロード毎) |
| system_prompt | システムプロンプト本文 |
| model_config | モデル設定:provider / model / temperature / max_tokens / top_p |
| examples | サンプル |
| install_guide | 各プラットフォームの導入説明(Coze / Dify / Claude / カスタム) |