본문으로 건너뛰기
Skillpedia
일반 코딩48k · #5478

postman-openapi-converter

하는 일

이 도구는 OpenAPI나 Swagger 같은 형식으로 작성된 API 설명을 Postman이 이해하고 가져올 수 있는 파일로 바꿉니다. 모든 API 호출을 정리하는 ‘Postman 컬렉션’을 만듭니다. (Postman은 API를 테스트하는 도구입니다.)

사용하는 경우

  • ✓OpenAPI나 Swagger 형식으로 API를 설명한 파일이 있고 Postman에서 테스트하고 싶을 때.
  • ✓오래된 API 설명(Swagger 2.0)을 최신 형식으로 옮겨야 할 때.
  • ✓기존 문서를 바탕으로 Postman에서 API 호출을 자동으로 정리해야 할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/postman-openapi-converter/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/postman-openapi-converter/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 OpenAPI 파일을 Postman 컬렉션으로 변환해 주세요: [파일 링크 또는 내용 붙여 넣기]”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 API 설명(OpenAPI/Swagger)을 읽고, 여러 경로와 방식(GET, POST 등)을 파악한 뒤 Postman용 컬렉션 파일을 만듭니다. 예시 데이터를 생성하고 인증도 자동으로 설정하려고 시도합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OpenAPI → Postman Collection Converter

When to Use

Use this skill when you need convert OpenAPI 3.x or Swagger 2.0 specs (YAML or JSON) into complete, import-ready Postman Collection v2.1 JSON files. Use this skill whenever the user provides or references an OpenAPI spec, Swagger file, openapi.yaml, swagger.json, or uses phrases like "convert my OpenAPI spec",...

Converts OpenAPI 3.x or Swagger 2.0 specs into a valid Postman Collection v2.1.


Step 1 — Detect & Validate Input

Identify the spec version from the input:

  • openapi: 3.x.x → OpenAPI 3
  • swagger: "2.0" → Swagger 2

If the input is truncated or partial, convert what's available and note missing sections.


Step 2 — Extraction Mapping

OpenAPI 3 → Postman

OpenAPI field Postman mapping
info.title Collection name
info.description Collection description
servers[0].url {{base_url}} variable
paths.<path>.<method> One request item per operation
operationId or summary Request name
parameters (path/query/header) URL path variables, query params, headers
requestBody.content.application/json.schema Body (raw JSON), generate example from schema
responses Saved example responses
components.securitySchemes Collection-level auth
tags Folder grouping

Swagger 2 → Postman

Swagger field Postman mapping
host + basePath {{base_url}}
paths.<path>.<method> Request item
parameters Query/path/header/body params
consumes / produces Content-Type / Accept headers
securityDefinitions Collection auth
tags Folders

Step 3 — Generate Example Bodies

For each request with a requestBody or body parameter, generate a realistic example JSON body from the schema:

  • Use property names as keys
  • Infer sensible example values from type + format (e.g., "email" format → "user@example.com", "date-time" → "2024-01-15T10:30:00Z")
  • For $ref schemas, resolve them inline

Step 4 — Auth Handling

Map security schemes to Postman auth:

OpenAPI scheme Postman auth type
http: bearer bearer with {{token}}
http: basic basic with {{username}} / {{password}}
apiKey: header apikey header with {{api_key}}
apiKey: query apikey query param
oauth2 oauth2 (note: requires manual token setup)

Apply auth at collection level if all endpoints share the same scheme. Override at request level for exceptions.


Step 5 — Build Collection JSON

Use the standard v2.1 structure (same schema as postman-collection-generator skill).

Key differences for spec-converted collections:

  • Always group by tags into folders
  • Include description field on each request from operationId + summary + description
  • Add saved example responses where responses are defined in the spec
"response": [
  {
    "name": "200 OK",
    "status": "OK",
    "code": 200,
    "header": [{ "key": "Content-Type", "value": "application/json" }],
    "body": "{ \"id\": 1, \"name\": \"example\" }",
    "originalRequest": { <copy of the request> }
  }
]

Step 6 — Environment File

Extract all variables into a companion environment:

  • base_url from servers[0].url or host + basePath
  • token, api_key, username, password as empty placeholders
  • Any server variables from servers[0].variables

Step 7 — Output

  1. collection.json — Full Postman Collection v2.1
  2. environment.json — Matching environment file
  3. Conversion summary: number of endpoints converted, folders created, auth type detected, any fields skipped or approximated
  4. Import instructions

Edge Cases

  • $ref chains: Resolve all $ref pointers inline before mapping
  • allOf / oneOf / anyOf: Use the first/primary schema for body generation; note alternatives in description
  • Path parameters: Convert {param} to :param in URL path AND add to variable array in url object
  • Multiple content types: Prefer application/json; note others in request description
  • No operationId: Generate name from METHOD /path (e.g., GET /users/{id} → Get User by ID)

Quality Checklist

  • Every paths entry produces at least one request
  • Path params use :param format in Postman URL
  • All $ref resolved — no raw $ref strings in output

…

자주 묻는 질문

OpenAPI/Swagger란 무엇인가요?

엔드포인트, 매개변수, 예상 응답을 포함해 API가 어떻게 작동하는지 설명하는 표준화된 형식입니다.

Postman 컬렉션이란 무엇인가요?

Postman에서 여러 API 요청을 묶은 파일입니다. 정리, 공유, 테스트 실행을 쉽게 해 줍니다.

도구가 모든 인증 방식을 다루나요?

Bearer 토큰, Basic 인증, API 키 같은 일반적인 인증 방식을 Postman 설정에 매핑하려고 하지만, 일부 복잡한 OAuth2 설정은 직접 조정이 필요할 수 있습니다.

상세 정보

작성자의 원본 설명

Convert OpenAPI 3.x or Swagger 2.0 specs (YAML or JSON) into complete, import-ready Postman Collection v2.1 JSON files.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5478
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬