# API Designer

> Server action patterns

- Skill: `majiayu000/api-designer-8` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/api-designer-8`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/api-designer-8/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/api-designer-8

---


# 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

