Skip to content
Back to skills

Ipc Command

ASecurity

Add a command end-to-end - zod schema in packages/core/src/ipc/contract.ts, main-process handler, typed renderer usage, contract test. Use for any new mutation (spawn session, grant, revoke, connect target, accept hunk...).

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 8, 2026
ai-agentsbashsql

Security analysis

A100/100

Scanned October 8, 2026

npx -y skills add NicholasFlemmer/styx-app --skill ipc-command --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ipc Command?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ipc Command
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicholasflemmer-ipc-command/badge)](https://www.skillsdirectory.com/skills/nicholasflemmer-ipc-command)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ipc-command
description: Add a command end-to-end - zod schema in packages/core/src/ipc/contract.ts, main-process handler, typed renderer usage, contract test. Use for any new mutation (spawn session, grant, revoke, connect target, accept hunk...).
argument-hint: '<domain.command>'
allowed-tools: Read, Grep, Glob, Edit, Write, Bash(pnpm:*)
---

# IPC command: $ARGUMENTS

1. Add `'$0': { input: z…, output: z… }` to `packages/core/src/ipc/contract.ts` (`commands` map). Output must not contain secrets.
2. If state changes: add the machine event/effect first (`/state-machine-change`).
3. Main: implement in `apps/desktop/src/main/ipc/commands/<domain>.ts` via `registerCommand('$0', async (input, ctx) => …)`: parse → transaction → transition → execute effects via services → `audit.append` when applicable → the store publisher emits deltas.
4. Renderer: call `commands['$0'](input)` from `state/commands.ts`; wait for the delta (no optimistic domain state).
5. Tests: schema round-trip; handler test with in-memory SQLite + fake services; one renderer test that the CTA invokes it.
6. `pnpm typecheck && pnpm test`.

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.