mcpField
O
openapi-specification-v2

openapi-specification-v2

github.com/hairyfDevelopment26751 installsUpdated 2w ago
Repository

About openapi-specification-v2

A reference skill for developers creating, editing, and validating OpenAPI Specification 2.0 documents. It covers the specification’s structure, API operations, schemas, and security definitions.

Key features

  1. 01Swagger 2.0 document structure
  2. 02Paths, operations, parameters, and responses
  3. 03Schemas and reusable definitions
  4. 04Security schemes and OAuth2 flows
  5. 05Authoring guidance and vendor extensions

Use cases

  1. 01Creating or editing a Swagger 2.0 API specification
  2. 02Checking specification structure and fields
  3. 03Generating code or documentation from a specification

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hairyf/skills --skill openapi-specification-v2

After installing, type/openapi-specification-v2in Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

GENERATION.md
references/
advanced-extensions-and-xml.md
advanced-security-filtering.md
advanced-vendor-extensions.md
best-practices-spec-authoring.md
core-data-types-and-formats.md
core-example-object.md
core-fixed-patterned-fields.md
core-format-and-structure.md
core-header-object.md
core-headers-object.md
core-http-status-codes.md
core-info-metadata.md
core-items-object.md
core-mime-types.md
core-path-templating.md
core-reference-object.md
core-swagger-object.md
core-tags-and-external-docs.md
parameters-collection-format.md
parameters-definitions-reuse.md
parameters.md
path-item-ref.md
paths-and-operations.md
responses-definitions-reuse.md
responses.md
schema-and-definitions.md
schema-json-schema-keywords.md
security-basic-apikey.md
security-oauth2-flows.md

Details

From the project README

OpenAPI Specification 2.0 (formerly Swagger 2.0) defines a JSON/YAML format for describing RESTful APIs: paths, operations, parameters, responses, schemas, and security. Use this skill when creating or editing Swagger 2.0 specs, validating structure, or generating code/documentation from them.

The skill is based on OpenAPI Specification 2.0, generated at 2026-01-30.

Core References

TopicDescriptionReference
Format and StructureDocument format, file structure, data typescore-format-and-structure
Fixed and Patterned FieldsFixed vs patterned field names in the schemacore-fixed-patterned-fields
Swagger ObjectRoot document, required/optional fields, extensionscore-swagger-object
Info and MetadataInfo, Contact, License objectscore-info-metadata
Tags and External DocsTag Object, External Documentation Objectcore-tags-and-external-docs
Reference Object$ref, JSON Pointer, same-document and external file referencescore-reference-object
Data Types and FormatsPrimitives, format table, validation, file typecore-data-types-and-formats
MIME Typesconsumes/produces, RFC 6838, examplescore-mime-types
HTTP Status CodesResponse keys, default response, IANA/RFC 7231core-http-status-codes
Path TemplatingCurly braces, path parameters, name matchingcore-path-templating
Header ObjectResponse header definition (type, format, items, validation)core-header-object
Headers ObjectContainer for response headers (name → Header Object)core-headers-object
Items ObjectNon-body array items (parameters, headers)core-items-object
Example ObjectResponse examples by MIME typecore-example-object

Paths and Operations

TopicDescriptionReference
Paths and OperationsPaths Object, Path Item, Operation Objectpaths-and-operations
Path Item $refExternal path definition, conflict behaviorpath-item-ref

Parameters and Responses

TopicDescriptionReference
ParametersParameter locations (path, query, header, body, formData)parameters
collectionFormatcsv, ssv, tsv, pipes, multi and where they applyparameters-collection-format
Parameters Definitions (Reuse)Root-level parameters, reuse via $refparameters-definitions-reuse
ResponsesResponses Object, Response Objectresponses
Responses Definitions (Reuse)Root-level responses, reuse via $refresponses-definitions-reuse

Schemas and Definitions

TopicDescriptionReference
Schema and DefinitionsSchema Object, Definitions, composition, polymorphismschema-and-definitions
Schema JSON Schema KeywordsJSON Schema Draft 4 subset and Swagger-specific fieldsschema-json-schema-keywords

Security

TopicDescriptionReference
SecuritySecurity Definitions, Security Schemesecurity
Security Requirement ObjectApplying security at root/operation, OR/AND logicsecurity-requirement-object
Scopes ObjectOAuth2 scope name → descriptionsecurity-scopes-object
Basic and API Keybasic and apiKey Security Schemesecurity-basic-apikey
OAuth2 Flowsimplicit, password, application, accessCode and required URLssecurity-oauth2-flows

Best Practices

TopicDescriptionReference
Spec AuthoringoperationId, tags, responses, parameters, definitions, securitybest-practices-spec-authoring

Advanced

TopicDescriptionReference
Vendor Extensionsx- prefix, value types, where allowedadvanced-vendor-extensions
Security FilteringEmpty Paths, empty Path Item for access controladvanced-security-filtering
Extensions and XMLXML Object for schema propertiesadvanced-extensions-and-xml

Comments

Markdown supported