본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)40k · #7313

openapi-to-application-code

하는 일

이 도구는 API를 설명하는 파일(OpenAPI라고 부릅니다)로부터 완전하고 바로 쓸 수 있는 애플리케이션을 만듭니다. API가 어떻게 작동해야 하는지 이해하고, 필요한 코드를 생성합니다.

사용하는 경우

  • ✓API 설명이 있고, 그것을 사용하는 애플리케이션을 원할 때.
  • ✓기존 API를 바탕으로 애플리케이션 프로토타입을 빠르게 만들 때.
  • ✓새 프로젝트를 시작하면서 기본 코드 구조 작성을 자동화하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/openapi-to-application-code/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“'https://api.example.com/v2/openapi.json'의 OpenAPI 명세로 애플리케이션을 만들어 주세요. 프레임워크는 'Spring Boot'를, 인증은 'JWT'를 사용해 주세요.”

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

작동 방식

AI는 API 설명(OpenAPI)을 읽고 데이터와 사용 가능한 기능을 이해합니다. 그다음 애플리케이션 구조를 조립하고, 요청 받기, 데이터 처리, 응답처럼 각 부분의 코드를 작성하며, 테스트와 문서도 추가합니다.

기술 내용 (원본 SKILL.md)

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

Generate Application from OpenAPI Spec

Your goal is to generate a complete, working application from an OpenAPI specification using the active framework's conventions and best practices.

Input Requirements

  1. OpenAPI Specification: Provide either:

    • A URL to the OpenAPI spec (e.g., https://api.example.com/openapi.json)
    • A local file path to the OpenAPI spec
    • The full OpenAPI specification content pasted directly
  2. Project Details (if not in spec):

    • Project name and description
    • Target framework and version
    • Package/namespace naming conventions
    • Authentication method (if not specified in OpenAPI)

Generation Process

Step 1: Analyze the OpenAPI Specification

  • Validate the OpenAPI spec for completeness and correctness
  • Identify all endpoints, HTTP methods, request/response schemas
  • Extract authentication requirements and security schemes
  • Note data model relationships and constraints
  • Flag any ambiguities or incomplete definitions

Step 2: Design Application Architecture

  • Plan directory structure appropriate for the framework
  • Identify controller/handler grouping by resource or domain
  • Design service layer organization for business logic
  • Plan data models and entity relationships
  • Design configuration and initialization strategy

Step 3: Generate Application Code

  • Create project structure with build/package configuration files
  • Generate models/DTOs from OpenAPI schemas
  • Generate controllers/handlers with route mappings
  • Generate service layer with business logic
  • Generate repository/data access layer if applicable
  • Add error handling, validation, and logging
  • Generate configuration and startup code

Step 4: Add Supporting Files

  • Generate appropriate unit tests for services and controllers
  • Create README with setup and running instructions
  • Add .gitignore and environment configuration templates
  • Generate API documentation files
  • Create example requests/integration tests

Output Structure

The generated application will include:

project-name/
├── README.md                      # Setup and usage instructions
├── [build-config]                 # Framework-specific build files (pom.xml, build.gradle, package.json, etc.)
├── src/
│   ├── main/
│   │   ├── [language]/
│   │   │   ├── controllers/       # HTTP endpoint handlers
│   │   │   ├── services/          # Business logic
│   │   │   ├── models/            # Data models and DTOs
│   │   │   ├── repositories/      # Data access (if applicable)
│   │   │   └── config/            # Application configuration
│   │   └── resources/             # Configuration files
│   └── test/
│       ├── [language]/
│       │   ├── controllers/       # Controller tests
│       │   └── services/          # Service tests
│       └── resources/             # Test configuration
├── .gitignore
├── .env.example                   # Environment variables template
└── docker-compose.yml             # Optional: Docker setup (if applicable)

Best Practices Applied

  • Framework Conventions: Follows framework-specific naming, structure, and patterns
  • Separation of Concerns: Clear layers with controllers, services, and repositories
  • Error Handling: Comprehensive error handling with meaningful responses
  • Validation: Input validation and schema validation throughout
  • Logging: Structured logging for debugging and monitoring
  • Testing: Unit tests for services and controllers
  • Documentation: Inline code documentation and setup instructions
  • Security: Implements authentication/authorization from OpenAPI spec
  • Scalability: Design patterns support growth and maintenance

Next Steps

After generation:

  1. Review the generated code structure and make customizations as needed
  2. Install dependencies according to framework requirements
  3. Configure environment variables and database connections
  4. Run tests to verify generated code
  5. Start the development server
  6. Test endpoints using the provided examples

Questions to Ask if Needed

  • Should the application include database/ORM setup, or just in-memory/mock data?
  • Do you want Docker configuration for containerization?
  • Should authentication be JWT, OAuth2, API keys, or basic auth?
  • Do you need integration tests or just unit tests?
  • Any specific database technology preferences?
  • Should the API include pagination, filtering, and sorting examples?
자주 묻는 질문

OpenAPI 명세는 무엇인가요?

API가 어떻게 작동하는지 설명하는 파일입니다. API가 받는 데이터와 돌려주는 데이터, 수행할 수 있는 작업을 자세히 적습니다.

생성된 애플리케이션은 이미 작동하나요?

네, 목표는 설정하고 실행할 준비가 된 완전하고 작동하는 애플리케이션을 만드는 것입니다.

애플리케이션에 쓸 기술을 고를 수 있나요?

네, API 명세에 아직 정해지지 않은 경우, 원하는 프레임워크와 다른 기술을 지정할 수 있습니다.

상세 정보

작성자의 원본 설명

Generate a complete, production-ready application from an OpenAPI specification

repo: github/awesome-copilot

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬