writing-openapi-specs

Write OpenAPI specifications with best practices and complex API patterns.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/CarlosEGuerraSilva/OpenRouterSDK.NET --skill writing-openapi-specs-carloseguerrasilva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-openapi-specs
Source: https://github.com/CarlosEGuerraSilva/OpenRouterSDK.NET/tree/main/.agents/skills/writing-openapi-specs
Command: npx skills add https://github.com/CarlosEGuerraSilva/OpenRouterSDK.NET --skill writing-openapi-specs-carloseguerrasilva

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write high-quality OpenAPI specifications by providing best practices, naming conventions, and guidance on expressing complex API patterns, ensuring better SDK generation and API documentation.

Core Features & Use Cases

  • Best Practices: Adheres to established conventions for naming, documentation, and reusability.
  • Complex Patterns: Guides on expressing enums, polymorphism, file uploads, and server-sent events.
  • SDK Generation: Optimizes specs for generating robust and type-safe SDKs.
  • Use Case: When designing a new API, use this Skill to ensure your OpenAPI spec is clear, consistent, and easily consumable by SDK generators.

Quick Start

Use the writing-openapi-specs skill to learn about naming conventions for OpenAPI operation IDs.

Frequently Asked Questions about writing-openapi-specs

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

FAQPage Schema
How do I write an OpenAPI specification for SDK generation?

To write an OpenAPI specification for SDK generation, follow established naming conventions for operation IDs and ensure component reusability. This produces clear, consistent specs that yield robust and type-safe SDKs.

What are the best practices for OpenAPI schema design and parameter definition?

Best practices for OpenAPI schema design involve using consistent naming conventions, defining clear parameters, and structuring requests and responses properly. High component reusability ensures your REST API remains maintainable and discoverable.

How do I express polymorphism and server-sent events in a REST API specification?

Expressing polymorphism and server-sent events in a REST API specification requires using advanced OpenAPI patterns. Following specific structural guidance ensures these complex API behaviors are accurately documented and easily consumable.

How do I document file uploads in an OpenAPI specification?

Documenting file uploads in an OpenAPI specification involves using specific schema patterns for multipart requests. Applying the correct structural guidance ensures file upload operations are properly defined and discoverable.

Why does my generated SDK have type errors from my OpenAPI spec?

Generated SDKs often have type errors when an OpenAPI spec lacks clear naming conventions or proper component reusability. Optimizing your schema design and parameter definitions ensures robust, type-safe SDK generation.