Agent skill

Openapi Spec Patterns

by revfactory in revfactory/harness-100

OpenAPI 3.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드.

Apache-2.0Auto-check passedBackend & APIs

Install Openapi Spec Patterns

skills CLI
$ npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 openapi-spec-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/openapi-spec-patterns .claude/skills/openapi-spec-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openapi-spec-patterns
GitHub stars
1.3k
Token cost
~1.4k tokens
SKILL.md length
202 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

OpenAPI 3.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드.

  • Works in 4 steps: 엔드포인트 그룹핑 → 인증 방식 매핑 → 페이지네이션 패턴 탐지 → …
  • Tasks that involve OpenAPI specifications
  • SKILL.md covers OpenAPI 3.x 분석 절차, 스키마 정규화, GraphQL 스키마 분석 and gRPC Proto 분석
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Openapi Spec Patterns is an agent skill from revfactory/harness-100. OpenAPI 3.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드. 'OpenAPI', 'Swagger', '스펙 분석', '스키마 정규화', 'API 인증', '페이지네이션 패턴', 'GraphQL 스키마', 'gRPC proto' 등 API 스펙 분석 시 이 스킬을 사용한다. spec-parser의 스펙 분석 역량을 강화한다. 단, SDK 코드 생성이나 테스트 작성은 이 스킬의 범위가 아니다.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications, gRPC and Protobuf and GraphQL. It works with OpenAPI, gRPC and GraphQL. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve OpenAPI specifications
  • Tasks that involve gRPC and Protobuf
  • Tasks that involve GraphQL

Example prompts

  • “OpenAPI”
  • “Swagger”
  • “API 인증”
  • “/openapi-spec-patterns”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 엔드포인트 그룹핑
  2. 인증 방식 매핑
  3. 페이지네이션 패턴 탐지
  4. 에러 응답 패턴

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml, graphql and protobuf).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Openapi Spec Patterns loads about 1.4k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 202 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 202 words, ~1,379 tokens.

Download SKILL.mdSave it as .claude/skills/openapi-spec-patterns/SKILL.md (or your agent's skills folder).
name
openapi-spec-patterns
description
OpenAPI 3.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드. 'OpenAPI', 'Swagger', '스펙 분석', '스키마 정규화', 'API 인증', '페이지네이션 패턴', 'GraphQL 스키마', 'gRPC proto' 등 API 스펙 분석 시 이 스킬을 사용한다. spec-parser의 스펙 분석 역량을 강화한다. 단, SDK 코드 생성이나 테스트 작성은 이 스킬의 범위가 아니다.

OpenAPI Spec Patterns — API 스펙 분석 패턴 가이드

OpenAPI/GraphQL/gRPC 스펙을 효과적으로 분석하고 SDK 생성에 필요한 메타데이터를 추출하는 방법론.

OpenAPI 3.x 분석 절차

1. 엔드포인트 그룹핑
yaml
# Tag 기반 그룹핑 → SDK 클래스 매핑
paths:
  /users:
    get:
      tags: [Users]         # → UsersClient.list()
    post:
      tags: [Users]         # → UsersClient.create()
  /users/{id}:
    get:
      tags: [Users]         # → UsersClient.get(id)
    put:
      tags: [Users]         # → UsersClient.update(id, data)
    delete:
      tags: [Users]         # → UsersClient.delete(id)
  /users/{id}/orders:
    get:
      tags: [Users, Orders] # → UsersClient.listOrders(id)
매핑 규칙
HTTP Method패턴SDK 메서드명
GET /resources목록list()
GET /resources/{id}상세get(id)
POST /resources생성create(data)
PUT /resources/{id}전체 수정update(id, data)
PATCH /resources/{id}부분 수정patch(id, data)
DELETE /resources/{id}삭제delete(id)
POST /resources/{id}/action액션actionName(id, data)
2. 인증 방식 매핑
yaml
securitySchemes:
  BearerAuth:
    type: http
    scheme: bearer
    bearerFormat: JWT
  ApiKeyAuth:
    type: apiKey
    in: header
    name: X-API-Key
  OAuth2:
    type: oauth2
    flows:
      authorizationCode:
        authorizationUrl: https://auth.example.com/authorize
        tokenUrl: https://auth.example.com/token
        scopes:
          read: Read access
          write: Write access
인증 유형SDK 구현코드 패턴
Bearer헤더 인터셉터Authorization: Bearer {token}
API Key헤더/쿼리 인터셉터X-API-Key: {key}
OAuth2토큰 관리 + 갱신자동 refresh_token 처리
Basic헤더Authorization: Basic {base64}
3. 페이지네이션 패턴 탐지
yaml
# 패턴 1: Offset-based
parameters:
  - name: offset
    in: query
    schema: { type: integer }
  - name: limit
    in: query
    schema: { type: integer, default: 20 }

# 패턴 2: Cursor-based
parameters:
  - name: cursor
    in: query
    schema: { type: string }
  - name: limit
    in: query
    schema: { type: integer }

# 패턴 3: Page-based
parameters:
  - name: page
    in: query
    schema: { type: integer }
  - name: per_page
    in: query
    schema: { type: integer }
탐지 패턴SDK 구현
offset/limitlistAll() 자동 페이지 순회
cursor/afteriterate() 이터레이터
page/per_pagelistPage(page)
Link 헤더HTTP Link 헤더 파싱
4. 에러 응답 패턴
yaml
# 표준 에러 구조 추출
responses:
  '400':
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/Error'

components:
  schemas:
    Error:
      type: object
      properties:
        code: { type: string }
        message: { type: string }
        details: { type: array, items: { $ref: '#/components/schemas/ErrorDetail' } }
SDK 에러 클래스 매핑
HTTP StatusSDK 예외재시도
400BadRequestErrorNo
401AuthenticationErrorNo (토큰 갱신 후 1회)
403PermissionErrorNo
404NotFoundErrorNo
409ConflictErrorNo
422ValidationErrorNo
429RateLimitErrorYes (Retry-After)
500InternalErrorYes (지수 백오프)
502/503/504ServiceUnavailableErrorYes

스키마 정규화

순환 참조 처리
yaml
# 순환: User → Order → User
User:
  properties:
    orders:
      type: array
      items: { $ref: '#/components/schemas/Order' }
Order:
  properties:
    user: { $ref: '#/components/schemas/User' }  # 순환!

# 해결: Lazy Reference
# TypeScript: type User = { orders: () => Order[] }
# Python: User = ForwardRef('User')
allOf/oneOf/anyOf 해석
yaml
# allOf → 인터섹션 (상속/확장)
UpdateUser:
  allOf:
    - $ref: '#/components/schemas/BaseUser'
    - type: object
      properties:
        password: { type: string }
# → class UpdateUser extends BaseUser { password?: string }

# oneOf → 유니온 (택일)
Pet:
  oneOf:
    - $ref: '#/components/schemas/Cat'
    - $ref: '#/components/schemas/Dog'
  discriminator:
    propertyName: petType
# → type Pet = Cat | Dog (discriminated union)

# anyOf → 유연한 유니온
Filter:
  anyOf:
    - type: string
    - type: integer
    - type: array
      items: { type: string }
# → type Filter = string | number | string[]

GraphQL 스키마 분석

graphql
# Query → SDK read 메서드
type Query {
    user(id: ID!): User        # → client.users.get(id)
    users(first: Int, after: String): UserConnection  # → client.users.list()
}

# Mutation → SDK write 메서드
type Mutation {
    createUser(input: CreateUserInput!): User  # → client.users.create(input)
    updateUser(id: ID!, input: UpdateUserInput!): User
}

# Connection 패턴 → 자동 페이지네이션
type UserConnection {
    edges: [UserEdge!]!
    pageInfo: PageInfo!
}

gRPC Proto 분석

protobuf
service UserService {
    rpc GetUser (GetUserRequest) returns (User);           // → client.getUser(id)
    rpc ListUsers (ListUsersRequest) returns (ListUsersResponse);
    rpc CreateUser (CreateUserRequest) returns (User);
    rpc StreamUsers (StreamRequest) returns (stream User); // → 스트리밍 API
}
gRPC 패턴SDK 구현
Unary일반 비동기 메서드
Server StreamAsyncIterator
Client Stream스트림 전송 메서드
Bidirectional양방향 스트림

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in ko/35-api-client-generator/.claude/skills/openapi-spec-patterns of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Openapi Spec Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Openapi Spec Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openapi Spec Patterns this skillrevfactory/harness-1001.3k—~1.4kAutomated safety check: PassApache-2.0
SpikardGoldziher/spikard123—~799Automated safety check: PassMIT
Uxcholon-run/uxc115—~1.8kAutomated safety check: PassMIT
API Contract Detectionprime-radiant-inc/greenfield292—~4.2kAutomated safety check: PassApache-2.0
API Architectcuriositech/some_claude_skills2431 repos~1.4kAutomated safety check: PassMIT
API Designmajiayu000/spellbook286—~2.1kAutomated safety check: PassMIT

Similar skills

  • Spikard

    Goldziher/spikard

    Scaffold Spikard projects and generate code from OpenAPI, AsyncAPI, OpenRPC, GraphQL, and Protobuf schemas using the Spikard CLI or its MCP server.

    123 GitHub stars~799 tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Uxc

    holon-run/uxc

    Discover and call remote schema-exposed interfaces with UXC.

    115 GitHub stars~1.8k tokensUpdated 22 days ago
    Backend & APIsAuto-check passed
  • API Contract Detection

    prime-radiant-inc/greenfield

    Finds OpenAPI, GraphQL, Protobuf and JSON Schema files in a codebase and extracts behavioral claims from them as part of a reverse-engineering workflow.

    292 GitHub stars~4.2k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • API Architect

    curiositech/some_claude_skills

    Expert API designer for REST, GraphQL, gRPC architectures. An agent skill from curiositech/some_claude_skills.

    243 GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • API Design

    majiayu000/spellbook

    REST/GraphQL/gRPC API design best practices. An agent skill from majiayu000/spellbook.

    286 GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Forge

    EliasOulkadi/shokunin

    Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency.

    114 GitHub stars~2.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Openapi Spec Patterns

What does Openapi Spec Patterns do?

OpenAPI 3.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드. Openapi Spec Patterns is an agent skill from revfactory/harness-100.x 스펙 분석 패턴, 스키마 정규화, 인증 방식 매핑, 페이지네이션/에러 패턴 추출, GraphQL/gRPC 스펙 해석 가이드.

When should I use Openapi Spec Patterns?

Openapi Spec Patterns fits situations like: tasks that involve OpenAPI specifications; tasks that involve gRPC and Protobuf; tasks that involve GraphQL.

How do I install Openapi Spec Patterns in Claude Code?

Run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a claude-code`. Or copy the skill folder (ko/35-api-client-generator/.claude/skills/openapi-spec-patterns in revfactory/harness-100) into .claude/skills/openapi-spec-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Openapi Spec Patterns in Codex?

Run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a codex`. Or copy the skill folder (ko/35-api-client-generator/.claude/skills/openapi-spec-patterns in revfactory/harness-100) into .agents/skills/openapi-spec-patterns in your project. Codex loads it when a task matches its description.

Can I use Openapi Spec Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openapi-spec-patterns, .gemini/skills/openapi-spec-patterns, .github/skills/openapi-spec-patterns and .opencode/skills/openapi-spec-patterns in your project.

What does Openapi Spec Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Openapi Spec Patterns is instructions for the agent only.

Does Openapi Spec Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openapi Spec Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Openapi Spec Patterns use?

Openapi Spec Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openapi Spec Patterns use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Openapi Spec Patterns?

Skills that share tags, products or a category with Openapi Spec Patterns: Spikard (Goldziher/spikard, 123 stars), Uxc (holon-run/uxc, 115 stars), API Contract Detection (prime-radiant-inc/greenfield, 292 stars) and API Architect (curiositech/some_claude_skills, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openapi Spec Patterns?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.