rest-api-guidelines
Installation
SKILL.md
REST API Guidelines
Apply consistent default decisions for HTTP+JSON REST APIs. Favor predictability, interoperability, retry safety, and long-term compatibility over stylistic purity.
Overview
Use this skill for three kinds of work:
- Design a new REST API or refine an existing design.
- Review an API, OpenAPI spec, or endpoint proposal for rule violations and compatibility risks.
- Draft endpoint contracts with example request and response shapes.
Workflow
- Classify the request as
design,review, ordraft. - Start from the default decisions in this file unless the user or existing platform conventions require otherwise.
- Read only the reference files needed for the task.
- State any deviation from the defaults explicitly and explain why it is justified.
- Keep the contract internally consistent across naming, methods, status codes, pagination, error format, and versioning.