원클릭으로
add-db-service
Create a new database service following the FXFlow pattern.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a new database service following the FXFlow pattern.
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.
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-db-service |
| description | Create a new database service following the FXFlow pattern. |
| disable-model-invocation | true |
Create a new Prisma service file following established patterns.
$ARGUMENTS[0] — Domain name (e.g., "alert-rule")$ARGUMENTS[1] — Brief descriptionpackages/db/prisma/schema.prisma — Add the Prisma model:
model AlertRule {
id String @id @default(uuid())
// ... fields
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([...])
}
Run migration: cd packages/db && npx prisma migrate dev --name add-alert-rule
packages/db/src/alert-rule-service.ts — Create service file:
import { getDb } from "./client"
// Follow patterns from existing services:
// - Export typed functions (not classes)
// - Use getDb() for Prisma client
// - Include create, get, list, update, delete as needed
// - Add cleanup method for old records if applicable
// - Keep under 250 LOC
packages/db/src/index.ts — Export the new service.
Run /verify.