원클릭으로
add-ws-event
Wire a new WebSocket event end-to-end (daemon → types → hook → component).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Wire a new WebSocket event end-to-end (daemon → types → hook → component).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run full repo verification (lint, typecheck, test, security, diff review) and fix failures.
Audit documentation freshness — find docs that are stale or missing coverage for recent code changes.
Create a new Next.js API route with proper typing and error handling.
Add a new daemon REST endpoint with types, handler, web API proxy, and hook.
Create a new database service following the FXFlow pattern.
Refactor code to meet file-size limits and DRY rules without changing behavior.
| name | add-ws-event |
| description | Wire a new WebSocket event end-to-end (daemon → types → hook → component). |
| disable-model-invocation | true |
Wire a new real-time event through all layers of the FXFlow stack.
$ARGUMENTS[0] — Event name (e.g., "trade_alert_triggered")$ARGUMENTS[1] — Data type description (e.g., "{ tradeId: string, alertType: string }")packages/types/src/index.ts — Add to DaemonMessageType union and create typed message interface.
apps/daemons/src/server.ts — Add broadcast call in the appropriate listener or endpoint:
broadcast({ type: "event_name", timestamp: new Date().toISOString(), data })
apps/web/src/hooks/use-daemon-connection.ts — Handle the new message type:
const [lastEvent, setLastEvent] = useState<T | null>(null)apps/web/src/state/daemon-status-context.tsx — Expose through context if needed by multiple consumers.
Consuming component — Use the hook/context to react to the event.
Run /verify to confirm types and lint pass.