api-design

Design and implement RESTful APIs with routing, validation, and documentation.

23|2|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/asgarovf/locusai --skill api-design-asgarovf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/asgarovf/locusai/tree/main/skills/api-design
Command: npx skills add https://github.com/asgarovf/locusai --skill api-design-asgarovf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of designing, implementing, and documenting RESTful APIs, ensuring adherence to best practices for routing, validation, and error handling.

Core Features & Use Cases

  • API Design: Define clear URL structures, naming conventions, and HTTP method usage.
  • Implementation Guidance: Provides patterns for request/response handling, input validation, authentication, and versioning.
  • Documentation Standards: Offers examples for OpenAPI/Swagger and rate limiting headers.
  • Use Case: When building a new microservice, use this skill to define the API endpoints, ensure consistent error responses, and implement secure authentication.

Quick Start

Use the api-design skill to generate a basic structure for a user management API with GET, POST, and DELETE endpoints.

Frequently Asked Questions about api-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design RESTful API endpoints with proper routing and HTTP status codes?

Designing RESTful APIs requires defining clear URL structures, naming conventions, and HTTP method usage for proper routing. You establish consistent request and response patterns with correct HTTP status codes to communicate outcomes effectively across new or existing endpoints.

How do I validate API request data using Zod schemas?

API request validation using Zod schemas ensures input integrity by defining structured data constraints for incoming HTTP requests. This process validates request payloads against expected types and formats before processing, preventing invalid data from reaching your endpoint logic.

What HTTP status codes and error handling patterns should I use for my API?

HTTP status codes and API error handling patterns require consistent response structures for successful and failed requests. You implement standardized error responses with appropriate HTTP status codes, ensuring clients receive predictable feedback for validation failures, authentication issues, or routing errors.

How do I document REST API endpoints for OpenAPI or Swagger?

Documenting REST API endpoints for OpenAPI or Swagger involves generating standard specifications that describe URL structures, HTTP methods, and request response patterns. This provides interactive documentation for consumers, detailing authentication requirements, input validation rules, and rate limiting headers.

Can I use this approach to implement API authentication and versioning strategies?

Implementing API authentication and versioning strategies involves defining secure access patterns and managing endpoint revisions. You establish authentication protocols to protect routes and apply versioning strategies to maintain backward compatibility while evolving your RESTful API architecture.

What is the best way to structure a microservice API architecture?

Structuring a microservice API architecture requires defining independent endpoint boundaries, consistent error responses, and secure authentication patterns. This approach ensures each service maintains standardized routing, input validation, and documentation, allowing scalable and maintainable RESTful API implementations.