AgentSkillsCN

main-process-modular-architecture

采用项目依赖注入模式设计或重构 Electron 主进程模块:通过类型化的提供者实现模块、服务与 IPC、窗口之间的清晰分离。

SKILL.md
--- frontmatter
name: main-process-modular-architecture
description: Design or refactor Electron main modules using the project DI pattern: module/service/ipc/window separation with typed providers.
argument-hint: "[module goal] [main feature folder] [ipc/window requirements]"
user-invokable: true
disable-model-invocation: false

Skill Instructions

Use this skill when the request matches Electron Main Process Architecture Guide or references patterns from docs/main-process-modular-architecture.md.

Workflow

  1. Read SOURCE.md for the full repository guidance.
  2. Identify concrete constraints, conventions, and required outputs.
  3. Apply the guidance directly to the current task, keeping changes minimal and repository-consistent.
  4. Validate results (tests/lint/build where relevant).
  5. Summarize what was applied from this skill and where.

Input Guidance

When invoking this skill manually, include:

  • Task goal
  • Target files or modules
  • Any constraints (performance, architecture, style, tests)

Source

This skill is generated from docs/main-process-modular-architecture.md. Use SOURCE.md as the canonical local resource loaded on demand.