Agent skill · Backend & API

api-design-restful

RESTful API design patterns, error handling, and documentation

majiayu000github.com/majiayu000GitHub ↗
claude-coderead-onlyMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-design-restful-autohandai-community-skills-3 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Allowed tools: read_filewrite_fileapply_patchsearch_with_contextrun_command
Requires: nodejs 18+, express 4+, fastify 4+
Path: skills/api/api-design-restful-autohandai-community-skills-3/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# RESTful API Design ## Core Principles 1. **Resource-Oriented** - URLs represent nouns, not verbs 2. **Stateless** - Each request contains all necessary information 3. **Consistent** - Use standard HTTP methods and status codes 4. **Versioned** - Support API evolution without breaking clients ## URL Structure ``` # Collection resources GET /api/v1/users # List users POST /api/v1/users # Create user # Individual resources GET /api/v1/users/:id # Get user PUT /api/v1/users/:id # Replace user PATCH /api/v1/users/:id # Update user DELETE /api/v1/users/:id # Delete user # Nested resources GET /api/v1/users/:id/posts # User's posts POST /api/v1/users/:id/posts # Create post for user # Filtering, sorting, pagination GET /api/v1/users?status=active&sort=-createdAt&page=2&limit=20 ``` ## Response Structure ### Success Response ```typescript interface SuccessResponse<T> { success: true; data: T; meta?: { page?: number; limit?: number; total?: number; totalPages?: number; }; } // Example { "success": true, "data": { "id": "123", "name": "John" }, "meta": { "requestId": "abc-123" } } ``` ### Error Response ```typescript interface ErrorResponse { success: false; error: { code: string; // Machi

What's inside
Steps it walks through
  1. Core Principles
  2. URL Structure
  3. Response Structure
  4. Success Response
  5. Error Response
  6. HTTP Status Codes
  7. Express.js Implementation
  8. Validation with Zod
  9. Authentication
  10. Rate Limiting
  11. Best Practices
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the api-design-restful skill do?

RESTful API design patterns, error handling, and documentation

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-design-restful-autohandai-community-skills-3 --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.

Keep going