技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
nextjs-data-access-layer【数据与研究】Build secure, reusable data access patterns with DTOs, taint checks, and colocated authorization in Next.js. Use when centralizing database queries, transforming raw data to DTOs, adding server-only guards, or preventing sensitive data from reaching Client Components.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Centralize all data access (Database & External APIs) to ensure consistent security, authorization, and caching.
services/ or lib/data.ts with import 'server-only'.await auth().cache() from React to deduplicate requests within render cycle.taintObjectReference or taintUniqueValue from experimental taint API to guard sensitive data.cache() to deduplicate within single render.NotFoundError, UnauthorizedError) caught by error.tsx or notFound().fetch('localhost/api') in Server Components: Call DAL functions directly.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: