Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Add Ipc Endpoint

ASecurity

Scaffold a new IPC endpoint across all 7 layers

116 stars
0 votes
0 copies
0 views
Added 9/22/2026
developmentbashapidatabase

Works with

api

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add Kangentic/kangentic --skill add-ipc-endpoint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Ipc Endpoint?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Add Ipc Endpoint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kangentic-add-ipc-endpoint/badge)](https://www.skillsdirectory.com/skills/kangentic-add-ipc-endpoint)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
description: Scaffold a new IPC endpoint across all 7 layers
allowed-tools: Read, Glob, Grep, Edit, Bash(npm:*), Agent
argument-hint: <channel-name> <description>
---

# Add IPC Endpoint

Scaffold a new IPC endpoint across all 7 layers of the IPC bridge.

**Usage:** `/add-ipc-endpoint <channel-name> <description>`

Example: `/add-ipc-endpoint TASK_DUPLICATE Duplicate an existing task with a new ID`

**Arguments:** $ARGUMENTS

## Instructions

1. **Parse arguments:**
   - `<channel-name>` -- the constant name (e.g., `TASK_DUPLICATE`). Must be `UPPER_SNAKE_CASE`.
   - `<description>` -- what the endpoint does.
   - Derive the channel string value: lowercase with colon separator (e.g., `TASK_DUPLICATE` -> `task:duplicate`).
   - Derive the domain from the prefix (e.g., `TASK_*` -> tasks domain).

2. **Read current state** of all 7 layers:
   - `src/shared/ipc-channels.ts`
   - `src/shared/types.ts` (find the `ElectronAPI` interface)
   - `src/preload/preload.ts`
   - The appropriate handler file under `src/main/ipc/handlers/` (based on domain)
   - `tests/ui/mock-electron-api.js`

3. **Add channel constant** to `src/shared/ipc-channels.ts`:
   - Place in the correct domain group (Projects, Tasks, Sessions, etc.)
   - Follow existing naming: `CHANNEL_NAME: 'domain:action'`

4. **Add types** to `src/shared/types.ts`:
   - Add input type if the endpoint accepts parameters (name it `<Resource><Action>Input`)
   - Add return type if it returns data
   - Add method to the appropriate namespace in `ElectronAPI` interface
   - Invoke endpoints return `Promise<T>`, send endpoints return `void`, event subscriptions return `() => void`

5. **Add preload bridge** entry in `src/preload/preload.ts`:
   - Invoke: `methodName: (args) => ipcRenderer.invoke(IPC.CHANNEL_NAME, args)`
   - Send: `methodName: (args) => ipcRenderer.send(IPC.CHANNEL_NAME, args)`
   - Event: `onEventName: (callback) => { const handler = (_event, ...args) => callback(...args); ipcRenderer.on(IPC.CHANNEL_NAME, handler); return () => ipcRenderer.removeListener(IPC.CHANNEL_NAME, handler); }`

6. **Add handler** in `src/main/ipc/handlers/<domain>.ts`:
   - Invoke: `ipcMain.handle(IPC.CHANNEL_NAME, (_, arg1, arg2) => { ... })`
   - Send: `ipcMain.on(IPC.CHANNEL_NAME, (_, arg1) => { ... })`
   - Use `getProjectRepos(context)` for database access
   - Add service/repository method if business logic is needed

7. **Add mock** in `tests/ui/mock-electron-api.js`:
   - Implement the method with in-memory state operations
   - Follow existing patterns (async functions for invoke, sync for send)
   - Event subscriptions return `noop` function

8. **Run typecheck:**
   - `npm run typecheck`
   - Fix any type errors before proceeding

9. **Verify with the `ipc-auditor` agent (fresh context):**
   - Spawn the `ipc-auditor` agent (read-only: `Read`, `Glob`, `Grep`) to mechanically confirm the new channel exists and is consistent across all 7 layers (channel constants, types, preload, handlers, services, stores, mocks).
   - This is delegation, not forking - the skill stays in the main loop and hands only the verification pass to the auditor for an unbiased check.
   - Fold any gaps the auditor reports back into the affected layer before finishing.

10. **Report what was created:**
   - List all files modified with the changes made
   - Include the `ipc-auditor` verdict (clean, or the gaps that were fixed)
   - Suggest next steps:
     - Add Zustand store method in `src/renderer/stores/<domain>-store.ts`
     - Add component usage
     - Add tests (UI tier for most, E2E only if PTY/session involved)

## Allowed Tools

Use `Read`, `Glob`, `Grep`, `Edit`, `Bash` (for `npm run typecheck`), and `Agent` (to spawn the `ipc-auditor` verification agent at the end).

**CRITICAL: No chained commands.** Every Bash call must contain exactly ONE command. Never use `&&`, `||`, `|`, or `;`.

Attribution

KangenticKangentic
View sourceMore from Kangentic →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284072 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2192 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →