openapi-spec-design

Design OpenAPI 3.1 contracts for multi-tenant microservice external APIs.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/PremModhaOfficial/motadata-ai-pipeline --skill openapi-spec-design
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: openapi-spec-design
Source: https://github.com/PremModhaOfficial/motadata-ai-pipeline/tree/main/.claude/skills/openapi-spec-design
Command: npx skills add https://github.com/PremModhaOfficial/motadata-ai-pipeline --skill openapi-spec-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenAPI 3.1 patterns for client-facing APIs in multi-tenant microservice platforms, delivering consistent contracts, security, and versioning across services.

Core Features & Use Cases

  • Standard response envelope, cursor-based pagination, RFC 7807 error format, multi-tenant header propagation (X-Tenant-ID), and Cognito JWT security for external endpoints.
  • Use cases include defining SaaS public APIs, gateway-facing interfaces, and consumer-ready documentation with stable, versioned paths.

Quick Start

Design and validate an external OpenAPI 3.1 spec following the patterns described.

Frequently Asked Questions about openapi-spec-design

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

FAQPage Schema
How do I design a multi-tenant REST API in OpenAPI 3.1?▼

Design multi-tenant REST APIs in OpenAPI 3.1 by defining a standard response envelope, cursor-based pagination, and tenant header propagation (X-Tenant-ID). This ensures consistent contracts, security, and URL versioning across gateway-facing microservice platforms.

How do I implement RFC 7807 error handling in an OpenAPI spec?▼

Implement RFC 7807 error handling in an OpenAPI spec by enforcing an external API scope with explicit error components and error codes. This standardizes client-facing error responses for gateway-facing services.

How does cursor-based pagination work for SaaS public APIs?▼

Cursor-based pagination for SaaS public APIs works by applying standard response envelopes and stable, versioned paths within OpenAPI 3.1. This enables consistent data traversal across consumer-ready external endpoints.

Can I use Cognito JWT security with an OpenAPI 3.1 contract?▼

Yes, you can apply Cognito JWT security to external endpoints within an OpenAPI 3.1 contract. It enforces authenticated access for client-facing interfaces in multi-tenant microservice platforms.

What is the best way to version external API endpoints in OpenAPI?▼

The best way to version external API endpoints in OpenAPI is through URL versioning. This approach maintains stable, versioned paths for consumer-ready documentation and gateway-facing interfaces.

Do I need a standard response envelope for gateway-facing microservices?▼

You need a standard response envelope for gateway-facing microservices to deliver consistent contracts across services. This pattern structures external API responses uniformly alongside cursor-based pagination and multi-tenant header propagation.