ipc-development

Community

Secure IPC channel development guide

AuthorBangDori
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standardized and safe procedure for adding or modifying Inter-Process Communication (IPC) channels, ensuring type safety and robust error handling.

Core Features & Use Cases

  • Centralized Schema: Defines all IPC channels in a single TypeScript file (ipc-schema.ts) for automatic type inference.
  • Standardized Workflow: Outlines the exact steps for adding new channels across ipc-schema.ts, main/ipc.ts, and preload/index.ts.
  • Return Type Rules: Enforces specific return types based on channel function (data query, mutation, fire-and-forget).
  • Error Handling: Leverages a wrapper for automatic try/catch, logging, and consistent error responses.
  • Serialization Guidelines: Addresses the need to serialize Date objects to ISO strings.
  • Naming Conventions: Provides a clear {domain}:{action} format for channel names.
  • Renderer Access Control: Mandates the use of hooks for accessing IPC from renderer processes, preventing direct window.electronAPI calls.
  • External Data Validation: Employs Zod safeParse for runtime validation of external data like plists.

Quick Start

Follow the IPC channel addition procedure by modifying src/shared/ipc-schema.ts, src/main/ipc.ts, and src/preload/index.ts.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ipc-development
Download link: https://github.com/BangDori/prowl/archive/main.zip#ipc-development

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.