jyjeanne/ai-setup-forge/api-rest-endpoint-design
Claude Code and agent skill by jyjeanne/ai-setup-forge
- community
Checking that the SKILL.md file is still in the repository.
To design and implement a RESTful API endpoint that is consistent, scalable, and follows industry best practices for HTTP methods, status codes, and URL structure. Use when: When creating a new API resource or sub-resource; When refactoring existing endpoints to meet REST standards; When defining the contract between frontend and backend.
Install
npx vskill@latest install jyjeanne/ai-setup-forge/api-rest-endpoint-designSKILL.md
The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/api-rest-endpoint-design.
Purpose
To design and implement a RESTful API endpoint that is consistent, scalable, and follows industry best practices for HTTP methods, status codes, and URL structure.
When to Use
- When creating a new API resource or sub-resource.
- When refactoring existing endpoints to meet REST standards.
- When defining the contract between frontend and backend.
Procedure
- Identify Resource: Determine the noun representing the resource (e.g.,
/users,/orders). Use plural nouns. - Select HTTP Method:
GETfor retrieval.POSTfor creation.PUTfor full replacement.PATCHfor partial update.DELETEfor removal.
- Define URL Structure:
- Use hierarchy:
/resources/{id}/sub-resources. - Avoid verbs in URLs (e.g., use
POST /users/loginonly ifsessionis the resource, otherwise standard RPC might be an exception, but prefer REST).
- Define Request Payload:
- Specify JSON body structure for POST/PUT/PATCH.
- Define query parameters for GET (filtering, pagination, sorting).
- Define Response Structure:
- Standardize success response (e.g.,
{ data: ... }). - Standardize error response (e.g.,
{ error: { code: ..., message: ... } }).
- Select Status Codes:
- 200 (OK), 201 (Created), 204 (No Content).
- 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found).
- 500 (Internal Server Error).
Constraints
- Do NOT expose internal database IDs if UUIDs are available/preferred.
- Do NOT mix snake_case and camelCase in JSON responses (prefer camelCase for JS/Node).
- Ensure all endpoints are stateless.
Expected Output
A fully defined route handler (or controller method) with request validation, business logic invocation, and a standardized JSON response.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-rest-endpoint-design/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/api-rest-endpoint-design)