cursor-plugin/viet-k-connect/skills/vkc-api-route-pattern/SKILL.md
Standardize Next.js App Router API route implementations under src/app/api/** (auth/session, input validation, Drizzle queries, rate limiting, response shape). Use when creating or refactoring API routes in this repo. (키워드= API 라우트, route.ts, 세션/권한, 입력 검증, Zod, validateBody, Drizzle, 레이트리밋)
npx skillsauth add LEE-SANG-BOK/VKC-2- vkc-api-route-patternInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
src/app/api/**getSession (user) or getAdminSession (admin)db from @/lib/db, tables from @/lib/db/schemacheckRateLimit + rateLimitResponse@/lib/api/response helpersNextResponse.json(...) directly (keep consistent within /api/admin/**)@/lib/api/validation (src/lib/api/validation.ts) helpers like validateBody + createJsonBodyReader.src/app/api/reports/route.tssrc/app/api/events/route.tssrc/app/api/admin/news/route.tssrc/lib/api/validation.ts.codex/skills/vkc-api-route-pattern/references/api-route-template.tsdevelopment
Build step-based wizard UIs (step UI, fixed bottom CTA with safe-area, localStorage draft save, runtime validation, submit event logging). Use for visa assessment, doc generation, admin queue inputs. (키워드= 위저드, 단계형 폼, 멀티스텝, 하단 고정 CTA, draft 저장, 제출 로그)
development
Design and implement the Viet K-Connect visa assessment engine (DB-driven ruleset JSON schema + versioning + effective dates). No hardcoded rules in code. Use for building /api/visa/assess and admin ruleset management. (키워드= 비자 평가, 룰셋, 규칙 엔진, DB-driven, 버전/적용일, /api/visa/assess)
testing
Run a VKC UX expert audit (Nielsen-style heuristic review + mobile-first flow check) and produce a prioritized issue list with severity and fixes. (키워드= UX 감사, 휴리스틱, 모바일 QA, 접근성, 사용성)
data-ai
Route VKC tasks to the correct domain skill from manifest.json. Always start with guardrails, shared-memory-router, loop-supervisor; then pick one domain skill by path/task keywords. (키워드=skill router, manifest, domain skill, which skill)