Creates API route handlers, implements Server Actions with Zod schema validation, integrates external REST APIs with error handling. Use when adding endpoints, building request handlers, or wiring external services (endpoint, REST API, request handling, fetch, .ts route files).
73
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Project-specific config: api-config.md.
| Layer | Use for |
|---|---|
| Server Actions (preferred) | mutations, form submissions, data writes, auth |
Route Handlers (route.ts) | analytics, autocomplete, external integrations |
| Proxy layer | IP rate limiting, fingerprinting, bot detection |
Route files live at app/api/<name>/route.ts or app/<segment>/route.ts.
{ "data": ..., "meta": { "total": 42, "page": 1 } }{ "error": { "code": "VALIDATION_ERROR", "message": "...", "details": [...] } } — never leak stack traces. Status codes: 400, 401, 403, 404, 422, 429, 500./api/v1/places/:slug. Add fields only — never remove or rename; deprecation headers before removal.limit, cursor, sort, order.Cache-Control and ETag/If-None-Match.Smoke-test a new route with curl -fsS "http://localhost:3000/api/<name>?query=test".
fa0c341
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.