openapi

Design and document RESTful APIs using the OpenAPI 3.x specification.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/bswrundquist/devtools --skill openapi-bswrundquist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi
Source: https://github.com/bswrundquist/devtools/tree/main/src/devtools/templates/claude/user/.claude/skills/openapi
Command: npx skills add https://github.com/bswrundquist/devtools --skill openapi-bswrundquist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openapi-spec-validator, @redocly/cli, @openapitools/openapi-generator-cli, and includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of designing, documenting, and generating code for REST APIs using the OpenAPI 3.x specification.

Core Features & Use Cases

  • API Specification: Define paths, operations, parameters, request bodies, responses, and components.
  • Schema Definition: Create reusable schemas for request and response payloads, including discriminated unions.
  • Security Schemes: Implement authentication and authorization mechanisms like BearerAuth, ApiKeyAuth, and OAuth2.
  • API Design Principles: Adhere to best practices for URLs, HTTP methods, status codes, and naming conventions.
  • Code Generation & Linting: Utilize tools to generate client code and validate specifications against best practices.
  • Use Case: You need to define the API for a new microservice. Use this Skill to create a comprehensive OpenAPI 3.1.0 specification, including detailed schemas for user management and security.

Quick Start

Use the openapi skill to generate a basic OpenAPI 3.1.0 specification for a user management API.

Frequently Asked Questions about openapi

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

FAQPage Schema
How do I write an OpenAPI 3.1.0 specification for a new REST API?

To write an OpenAPI 3.1.0 specification for a REST API, define your paths, operations, request bodies, and responses using this Skill to structure the document. It supports detailed schema creation and component reuse to document your API comprehensively.

What's the best way to document REST API security schemes like OAuth2?

The best way to document REST API security schemes like OAuth2 is to define authentication mechanisms directly within the OpenAPI specification. This Skill supports implementing BearerAuth, ApiKeyAuth, and OAuth2 security schemes to secure your API endpoints.

Can I generate client code from an OpenAPI specification?

Yes, you can generate client code from an OpenAPI specification using integrated code generation tools. This Skill utilizes the openapi-generator-cli to create client code and leverages linting tools to validate your specification against best practices.

Does this tool validate my OpenAPI specification against API design principles?

Yes, this tool validates your OpenAPI specification against API design principles using integrated validators. It uses openapi-spec-validator and redocly-cli to lint your document, ensuring proper use of HTTP methods, status codes, and URL naming conventions.

How do I create reusable schemas for REST API request and response payloads?

To create reusable schemas for REST API request and response payloads, define components within your OpenAPI specification. This Skill allows you to structure detailed schemas, including discriminated unions, for consistent payload management across your API.

Why use OpenAPI 3.x for microservice API design?

You use OpenAPI 3.x for microservice API design to establish a comprehensive, standardized contract for your endpoints. This Skill streamlines defining the API structure, security schemes, and schemas, enabling reliable documentation and automated code generation.