openapi-spec-generation

Generate, maintain, and validate OpenAPI 3.1 specifications for RESTful APIs.

4|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/EngineerWithAI/engineerwith-agents --skill openapi-spec-generation-engineerwithai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi-spec-generation
Source: https://github.com/EngineerWithAI/engineerwith-agents/tree/main/plugins/documentation-generation/skills/openapi-spec-generation
Command: npx skills add https://github.com/EngineerWithAI/engineerwith-agents --skill openapi-spec-generation-engineerwithai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, maintenance, and validation of OpenAPI 3.1 specifications, ensuring your API documentation is accurate and your API contracts are robust.

Core Features & Use Cases

  • Design-First API Design: Create OpenAPI specs before writing code for new APIs.
  • Code-First Generation: Generate OpenAPI specs directly from your existing code (e.g., Python/FastAPI, TypeScript/Express).
  • Validation & Linting: Ensure your OpenAPI specs adhere to best practices and standards using tools like Spectral and Redocly.
  • SDK Generation: Automatically generate client SDKs in various languages (TypeScript, Python, Go) from your OpenAPI spec.
  • Use Case: You've just built a new REST API and need to generate comprehensive documentation and client libraries for developers. This Skill can generate the OpenAPI spec from your code, validate it, and then produce a TypeScript client library.

Quick Start

Use the openapi-spec-generation skill to generate a TypeScript client from the provided openapi.yaml file.

Frequently Asked Questions about openapi-spec-generation

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

FAQPage Schema
How do I generate OpenAPI specifications from existing code?

To generate OpenAPI specifications from existing code, use a code-first approach. This Skill analyzes your RESTful API codebase, such as Python/FastAPI or TypeScript/Express, and automatically outputs OpenAPI 3.1 specs for accurate API documentation.

What is the best way to create an OpenAPI spec before writing any API code?

The best way to create an OpenAPI spec before writing code is a design-first approach. This Skill helps you define OpenAPI 3.1 specifications upfront, enabling contract compliance and guiding your RESTful API development from the start.

How do I validate and lint an OpenAPI 3.1 specification?

You validate and lint an OpenAPI 3.1 specification using integrated tools like Spectral and Redocly. This Skill automates the validation process to ensure your API documentation adheres to best practices and robust contract standards.

Can I generate client SDKs from an OpenAPI spec?

Yes, you can generate client SDKs from an OpenAPI spec. Using the OpenAPI Generator, this Skill automatically produces client libraries in various languages like TypeScript, Python, and Go directly from your defined API specifications.

Does this OpenAPI generation workflow support both design-first and code-first approaches?

Yes, this OpenAPI generation workflow supports both design-first and code-first approaches. You can either define your API contract upfront before coding or extract OpenAPI 3.1 specifications directly from your existing RESTful API source code.