Back to Skills

openapi-spec-generation

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

26,022stars2,863forksUpdated 1/20/2026

Security Assessment

Safe(100/100)
Security Score100/100

About openapi-spec-generation

The openapi-spec-generation skill provides a comprehensive solution for generating and maintaining OpenAPI 3.1 specifications from various sources, including code and design-first specifications. This skill addresses the challenges faced by developers and teams when documenting APIs, ensuring contract compliance, and generating SDKs. By allowing users to create clear and consistent API documentation, it simplifies the onboarding of new developers and enhances communication with stakeholders.

FAQ

How do I generate OpenAPI specs from existing code?

You can use the code-first approach to automatically generate specifications based on your existing API code.

Is this skill compatible with OpenAPI 3.1 specifications only?

Yes, this skill specifically supports OpenAPI 3.1 specifications.

What are the limitations of using this skill?

The skill primarily focuses on OpenAPI 3.1 and may not support previous versions or specifications.

Can I use this skill for designing new APIs?

Yes, you can utilize the design-first approach to draft specifications before implementing the API.

Does this skill support generating client SDKs?

Yes, it includes capabilities for generating client SDKs from the defined OpenAPI specifications.

Install openapi-spec-generation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

wshobson/agents