API Development
Build REST APIs with proper error handling, status codes, request validation, response formatting, and rate limiting. Apply when creating API routes, handling errors, validating input, or designing API responses.
npx skills add majiayu000/claude-skill-registry --skill api-development-skill-thamjiahe-claude-prompt-engine --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Development Systematic REST API development with error handling, validation, and consistent response formats. ## Overview This Skill enforces: - HTTP status codes (appropriate, not overused) - RFC 7807 Problem Details for errors - Input validation and sanitization - Consistent response formatting - Request correlation IDs - Rate limiting - Security-first error messages - Centralized error handling Apply when building API routes, handling errors, or designing responses. ## HTTP Status Codes ### Status Code Categories | Range | Purpose | Common Examples | |-------|---------|-----------------| | 200-299 | Success | 200 OK, 201 Created, 204 No Content | | 300-399 | Redirection | 301 Moved Permanently, 302 Found | | 400-499 | Client Errors | 400 Bad Request, 401 Unauthorized, 404 Not Found | | 500-599 | Server Errors | 500 Internal Error, 503 Service Unavailable | ### Correct Status Codes ```ts // ✅ GOOD: Specific status codes 200 // GET: Resource retrieved 201 // POST: Resource created 204 // DELETE: Resource deleted (no content) 400 // Bad Request: Validation failed 401 // Unauthorized: Not authenticated 403 // Forbidden: Authenticated but no permission 404 // Not Found: Resourc
- Overview
- HTTP Status Codes
- Status Code Categories
- Correct Status Codes
- Error Response Format (RFC 7807)
- Problem Details Structure
- Implementation
- Error Responses
- Centralized Error Handler
- Using Error Handler
- Input Validation
- Schema Validation
- Sanitization
- Rate Limiting
What does the API Development skill do?
Build REST APIs with proper error handling, status codes, request validation, response formatting, and rate limiting. Apply when creating API routes, handling errors, validating input, or designing API responses.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-development-skill-thamjiahe-claude-prompt-engine --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
