rest-api

Design REST API endpoints with pagination, sorting, and RFC 7807 error responses.

1|Updated Sep 5, 2025
One-click install
npx skills add https://github.com/KubrickCode/general --skill rest-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rest-api
Source: https://github.com/KubrickCode/general/tree/main/.claude_kr/skills/rest-api
Command: npx skills add https://github.com/KubrickCode/general --skill rest-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a standard guide for designing and implementing REST APIs, ensuring consistency, discoverability, and ease of use for clients. It helps developers avoid common pitfalls like inconsistent URL structures, poor pagination, and unclear error responses, leading to more robust and developer-friendly APIs.

Core Features & Use Cases

  • Naming Conventions: Standardizes field naming, date formats, and resource terminology.
  • Pagination & Sorting: Implements industry-standard cursor-based pagination and flexible sorting options.
  • URL Structure: Guides on designing clear, hierarchical URLs for resources and actions.
  • Error Handling: Defines structured error responses using RFC 7807 ProblemDetail for consistent client feedback.
  • Use Case: A backend developer is designing a new REST API and needs to ensure it adheres to RESTful principles and industry best practices.
  • Use Case: An existing REST API has inconsistent patterns, and the team needs a guide to refactor and standardize its endpoints and responses.

Quick Start

Design REST API endpoints for a 'Product' resource, including pagination, sorting by createdAt, and filtering by price range.