원클릭으로
add-daemon-endpoint
Add a new daemon REST endpoint with types, handler, web API proxy, and hook.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a new daemon REST endpoint with types, handler, web API proxy, and hook.
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.
Create a new database service following the FXFlow pattern.
Wire a new WebSocket event end-to-end (daemon → types → hook → component).
Refactor code to meet file-size limits and DRY rules without changing behavior.
| name | add-daemon-endpoint |
| description | Add a new daemon REST endpoint with types, handler, web API proxy, and hook. |
| disable-model-invocation | true |
Wire a new REST endpoint through daemon → web API → hook.
$ARGUMENTS[0] — HTTP method and path (e.g., "POST /actions/my-action")$ARGUMENTS[1] — Description of what it doespackages/types/src/index.ts — Add request/response types:
export interface MyActionRequest { ... }
export interface MyActionResponse { ... }
apps/daemons/src/server.ts — Add route handler:
if (method === "POST" && pathname === "/actions/my-action") {
const body = await parseBody<MyActionRequest>(req)
// ... execute action
return json(result)
}
apps/web/src/app/api/my-action/route.ts — Create Next.js API route that proxies to daemon:
const DAEMON_URL = process.env.NEXT_PUBLIC_DAEMON_REST_URL || "http://localhost:4100"
export async function POST(request: Request) {
const body = await request.json()
const res = await fetch(`${DAEMON_URL}/actions/my-action`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
})
const data = await res.json()
return Response.json(data)
}
apps/web/src/hooks/use-*.ts — Add hook method or create new hook:
const myAction = async (params: MyActionRequest) => {
const res = await fetch("/api/my-action", { method: "POST", body: JSON.stringify(params) })
// handle response, toast, etc.
}
Run /verify.