com um clique
add-api-route
Create a new Next.js API route with proper typing and error handling.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Create a new Next.js API route with proper typing and error handling.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional 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.
Add a new daemon REST endpoint with types, handler, web API proxy, and hook.
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-api-route |
| description | Create a new Next.js API route with proper typing and error handling. |
| disable-model-invocation | true |
Create a new Next.js App Router API route.
$ARGUMENTS[0] — Route path (e.g., "api/trades/export")$ARGUMENTS[1] — HTTP methods to support (e.g., "GET,POST")// apps/web/src/app/api/{path}/route.ts
import { NextRequest } from "next/server"
export async function GET(request: NextRequest) {
try {
// For DB reads: import from @fxflow/db
// For daemon proxy: fetch from DAEMON_URL
const data = await someService()
return Response.json(data)
} catch (error) {
console.error("[API] /api/{path} error:", error)
return Response.json(
{ error: error instanceof Error ? error.message : "Unknown error" },
{ status: 500 },
)
}
}
@fxflow/db