generating-api-sdks

Featured

Generate client SDKs in multiple languages from OpenAPI specifications. Use when generating client libraries for API consumption. Trigger with phrases like "generate SDK", "create client library", or "build API SDK".

AI & Automation 2,274 stars 319 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Generating API SDKs ## Overview Generate type-safe client SDKs in multiple languages (TypeScript, Python, Go, Java) from OpenAPI 3.0+ specifications. Produce idiomatic client libraries with authentication handling, automatic retries, pagination helpers, and comprehensive type definitions that mirror the API contract. ## Prerequisites - OpenAPI 3.0+ specification file (YAML or JSON) with complete schema definitions - Target language toolchain installed (Node.js/TypeScript, Python 3.10+, Go 1.21+, or Java 17+) - OpenAPI Generator CLI or equivalent code generation tool - Package registry credentials for publishing (npm, PyPI, Maven Central, pkg.go.dev) - CI pipeline for automated SDK builds on spec changes ## Instructions 1. Read and validate the OpenAPI specification using Read, checking for complete schema definitions, proper `$ref` usage, and response type coverage across all endpoints. 2. Extract all operation IDs, request/response models, and authentication schemes from the specification to build the SDK method inventory. 3. Generate typed model classes for every schema component, including nested objects, enums, and discriminated unions with proper nullability annotations. 4. Create a client class with methods for each API operation, mapping operation IDs to idiomatic method names (e.g., `listUsers`, `get_user`, `CreateUser`). 5. Implement authentication handling with support for Bearer tokens, API keys (header and query), and OAuth2 client credentials flow, config...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category