api-designer

databayt 的头像作者 databayt

服务器操作模式

📖 中文导读:服务器操作模式 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: API Designer description: Server action patterns version: 1.0.0 category: api

API Design Skill

Server Action Pattern

  1. Validate with Zod
  2. Include schoolId
  3. Execute operation
  4. revalidatePath()
  5. Handle errors

Checklist

  • Zod validation
  • schoolId included
  • Revalidation called
  • Type-safe