api-design

Define REST API contracts with endpoints, HTTP methods, schemas, and error handling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designs a REST API contract before implementation to avoid ambiguity and costly rework.

Core Features & Use Cases

  • Clearly specify endpoints, HTTP methods, request/response models, and error handling.
  • Ensure consistent naming, versioning, and alignment with architectural rules defined in agents.md.
  • Use case: When starting a new service, produce a contract that guides implementation and testing.

Quick Start

Create a complete API contract for a new resource named 'Order' using the standard naming conventions and HTTP methods.

Frequently Asked Questions about api-design

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

FAQPage Schema
How do I define a REST API contract before implementation?

Use a REST API contract to specify endpoints, HTTP methods, request/response schemas, and error handling upfront. This prevents ambiguity and costly rework by ensuring consistent naming and versioning aligned with architectural rules.

What should a REST API contract include for a new service?

A REST API contract should include resource identification, HTTP methods, request/response models, and error handling. It ensures alignment with architecture and API design rules before guiding implementation and testing for the new service.

When do I need to create an API contract for REST endpoints?

Create an API contract when starting a new service or revising existing REST interfaces. Defining the contract before implementation avoids ambiguity, ensures consistent resource naming, and prevents costly rework.

How do I handle error handling and naming conventions in REST API design?

Handle error handling and naming conventions by explicitly defining them in your REST API contract. This ensures compliance with architecture and API design rules, covering resource identification and response schemas to eliminate interface ambiguity.

Can I use this approach to revise existing REST interfaces?

Yes, you can apply REST API contract design to revise existing interfaces. By redefining resource identification, HTTP methods, and error handling, you ensure updated endpoints comply with current architecture and API design rules.

What is the best way to ensure consistent versioning across REST endpoints?

The best way to ensure consistent versioning is to define it within a precise REST API contract before implementation. This approach aligns endpoint naming and structure with overarching architecture and API design rules.