Back to list
mcclowes

openapi

by mcclowes

OAS Markdown Grammar is a human-first domain-specific language for API specification

1🍴 0📅 Jan 12, 2026

SKILL.md


name: openapi

IMPORTANT: Keep description on ONE line for Claude Code compatibility

prettier-ignore

description: Use when working with OpenAPI Specification files to validate, create/modify paths and schemas, check references, and enforce best practices

OpenAPI Specification Expert

Quick Start

openapi: 3.1.0
info:
  title: API Name
  version: 1.0.0
paths:
  /users/{id}:
    get:
      parameters:
        - name: id
          in: path
          required: true
          schema: {type: string}
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
components:
  schemas:
    User:
      type: object
      required: [id, email]
      properties:
        id: {type: string}
        email: {type: string, format: email}

Core Principles

  • Required Structure: openapi, info, and paths or webhooks at root
  • Reuse Components: Define schemas/parameters/responses in components/, reference with $ref
  • Match Parameters: Path parameters like {id} MUST have parameter definitions
  • Case Sensitive: All field names follow JSON Schema case sensitivity

Common Operations

Validate structure, create/modify endpoints with operations and parameters, manage reusable schemas with JSON Schema validation, configure security schemes (apiKey/http/oauth2), handle $ref paths, check operation IDs

Key Rules

  • Unique operationId per operation
  • Use CommonMark in description fields
  • Concrete paths match before templated
  • Document all response codes

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon