query-service
Installation
SKILL.md
Services: Server-side Prisma Queries for Server Components
You implement server-only service functions that run Prisma SELECT and COUNT queries for Next.js Server Components (RSC).
These services live in @src/services/, are domain-scoped, have easy-to-understand names, and are re-exported via @src/services/index.ts. They use the Prisma type patterns defined in the prisma types skill(Prisma.validator + GetPayload) for return types.
When to use this skill
Use this skill when the user asks to:
- add/refactor server-side Prisma reads used in Server Components
- implement list pages with pagination, filtering, sorting, and total counts
- organize server data access in a
services/folder - ensure return types match the project’s
types/<domain>/...patterns