Agent skill · Backend & API

api-designing

Design consistent RESTful API endpoints, request/response formats, and error handling patterns. Use when creating new API routes, designing API structure, planning request/response schemas, or establishing API conventions. Triggers on requests like "design an API for", "create API endpoints", "plan the API structure", "design the response format", or "API conventions".

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-designing --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/api/api-designing/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

# API Designing Design consistent RESTful APIs for this Next.js application. ## Process 1. **Identify resources** - What entities does the API manage? 2. **Define operations** - CRUD and custom actions 3. **Design endpoints** - URL structure and methods 4. **Specify schemas** - Request/response formats 5. **Plan error handling** - Consistent error responses ## RESTful Conventions ### URL Structure ``` /api/[resource] # Collection /api/[resource]/[id] # Individual resource /api/[resource]/[id]/[sub] # Nested resource ``` ### HTTP Methods | Method | Purpose | Idempotent | |--------|---------|------------| | GET | Retrieve resource(s) | Yes | | POST | Create resource | No | | PUT | Replace resource | Yes | | PATCH | Partial update | Yes | | DELETE | Remove resource | Yes | ### Existing Project Patterns Admin routes follow this structure: ``` /admin/api/articles GET (list), POST (create) /admin/api/articles/[id] GET, PUT, DELETE /admin/api/tags GET, POST /admin/api/media GET, POST /admin/api/users GET, POST /admin/api/users/[id]/approve POST (action) ``` ## Request Schemas ### List Endpoints (GET collection) Query parameters: ``` ?page=1 # Pagination ?limit=10 # Items per page ?sort=cr

What's inside
Steps it walks through
  1. Process
  2. RESTful Conventions
  3. URL Structure
  4. HTTP Methods
  5. Existing Project Patterns
  6. Request Schemas
  7. List Endpoints (GET collection)
  8. Create/Update (POST/PUT)
  9. Response Schemas
  10. Success Responses
  11. Error Responses
  12. Implementation Pattern
  13. Validation
  14. Output
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the api-designing skill do?

Design consistent RESTful API endpoints, request/response formats, and error handling patterns. Use when creating new API routes, designing API structure, planning request/response schemas, or establishing API conventions. Triggers on requests like "design an API for", "create API endpoints", "plan the API structure", "design the response format", or "API conventions".

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-designing --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