openapi-gen

Generate and validate Python client libraries from OpenAPI specs.

7|3|Updated Apr 22, 2025
One-click install
npx skills add https://github.com/mindhiveoy/pyopenapi_gen --skill openapi-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi-gen
Source: https://github.com/mindhiveoy/pyopenapi_gen/tree/main/.claude/skills/openapi-gen
Command: npx skills add https://github.com/mindhiveoy/pyopenapi_gen --skill openapi-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation and validation of Python clients from OpenAPI specs, helping teams deliver integrated, type-safe SDKs with fewer manual steps and fewer integration errors.

Core Features & Use Cases

  • Generate Type-Safe Clients: Produce Python client libraries directly from OpenAPI definitions with strong type hints.
  • Validation & Troubleshooting: Validate generated code and surface warnings to catch mismatches early.
  • Use Case: Create and integrate a ready-to-use client package for a new API in your project with minimal setup.

Quick Start

Activate your Python environment, then run: pyopenapi-gen openapi.yaml --project-root . --output-package my_api_client --force --verbose python -c "from my_api_client import *" 2>&1 | tee /tmp/validation.log mypy my_api_client