D

desktop

by @lobehubv
4.8(54)

Electronのメインレンダラーアーキテクチャに基づいたデスクトップアプリケーション開発ガイドを提供し、アプリケーションライフサイクル、システムAPI、ウィンドウ管理を網羅し、デスクトップアプリ開発を支援します。

Desktop ApplicationsElectron.jsCross-Platform DevelopmentBackend ServicesLobeHubGitHub
インストール方法
npx skills add lobehub/lobehub --skill desktop
compare_arrows

Before / After 効果比較

1
使用前

Electronデスクトップアプリケーションを単独で開発する際、開発者はアプリケーションのライフサイクル、システムAPI呼び出し、ウィンドウ管理などの複雑な詳細を自力で探求する必要があり、互換性の問題やパフォーマンスのボトルネックに遭遇しやすく、開発効率が低い傾向にあります。

使用後

デスクトップアプリケーション開発ガイドは、Electronのメインレンダラーアーキテクチャに基づいた包括的なガイダンスを提供します。これにより、アプリケーションのライフサイクル、システムAPI、ウィンドウ管理が体系的にカバーされ、開発者が安定した効率的なデスクトップアプリケーションを迅速に構築できるよう支援します。

description SKILL.md

desktop

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

Weekly Installs345Repositorylobehub/lobehubGitHub Stars73.9KFirst SeenJan 27, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex305opencode302gemini-cli301github-copilot283cursor255claude-code250

forumユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数2.0K
評価4.8 / 5.0
バージョン
更新日2026年3月17日
比較事例1 件

ユーザー評価

4.8(54)
5
0%
4
0%
3
0%
2
0%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月17日
最終更新2026年3月17日