
from claude-code-handbook104
Guidelines and patterns for building robust REST APIs: correct HTTP status codes, RFC 7807 error responses, validation, sanitization, rate limiting, and central
This skill provides a concise, production-ready checklist and guidance for implementing REST APIs with correct status codes, RFC 7807-compliant error payloads, input validation and sanitization, rate limiting, request correlation IDs, and centralized error handling. It includes example code and middleware patterns to standardize API behavior.
Apply this skill when creating or reviewing API routes, building server-side handlers, adding validation and error handling, or hardening endpoints against abuse. Useful during code reviews, API design, and production readiness checks.
Applicable to Claude-based authors and developer-assistant agents (Claude Opus / Claude Code) and any agent that helps produce server-side code or audits API implementations.
This skill has not been reviewed by our automated audit pipeline yet.