Swagger Codegen API Client Builder by agentskillexchange/skills
npx skills add https://github.com/agentskillexchange/skills --skill 'Swagger Codegen API Client Builder'使用 swagger-codegen 和 openapi-generator-cli 从 OpenAPI 3.x 规范生成类型化的 API 客户端库。通过自定义 mustache 模板生成 TypeScript-axios、Python-requests 和 Go-http 客户端。
Swagger Codegen API 客户端构建器能够自动化地从 OpenAPI 3.x 和 Swagger 2.0 规范生成强类型的 API 客户端库。它利用 swagger-codegen 和 openapi-generator-cli 为多种语言生成客户端 SDK,包括带有 axios 拦截器的 TypeScript、带有 requests 会话管理的 Python 以及带有 net/http 传输配置的 Go。自定义的 mustache 模板允许微调生成的代码,以匹配您组织的编码标准和模式。该构建器处理复杂的 OpenAPI 特性,包括基于鉴别器的多态性、allOf/oneOf/anyOf 组合以及循环引用解析。它从 API 错误模式生成适当的错误类型、具有指数退避的重试逻辑以及请求/响应拦截器链。配置配置文件按 API 存储生成设置,从而在规范更改时实现一致的重新生成。该工具在生成前使用 spectral 代码检查规则验证 OpenAPI 规范,捕获诸如缺少 operationIds、未记录的错误响应和不一致的命名约定等问题。
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a claude-code
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a cursor
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a codex
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
clawhub install swagger-codegen-api-client-builder
每周安装次数
–
代码仓库
GitHub 星标数
1
首次出现时间
–
安全审计
Generates typed API client libraries from OpenAPI 3.x specifications using swagger-codegen and openapi-generator-cli. Produces clients for TypeScript-axios, Python-requests, and Go-http with custom mustache templates.
The Swagger Codegen API Client Builder automates generation of strongly-typed API client libraries from OpenAPI 3.x and Swagger 2.0 specifications. It leverages both swagger-codegen and openapi-generator-cli to produce client SDKs for multiple languages including TypeScript with axios interceptors, Python with requests session management, and Go with net/http transport configuration. Custom mustache templates allow fine-tuning generated code to match your organization coding standards and patterns. The builder handles complex OpenAPI features including discriminator-based polymorphism, allOf/oneOf/anyOf compositions, and circular reference resolution. It generates proper error types from API error schemas, retry logic with exponential backoff, and request/response interceptor chains. Configuration profiles store generation settings per API, enabling consistent regeneration when specs change. The tool validates OpenAPI specs before generation using spectral linting rules, catching issues like missing operationIds, undocumented error responses, and inconsistent naming conventions.
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a claude-code
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a cursor
npx skills add agentskillexchange/skills --skill swagger-codegen-api-client-builder -a codex
clawhub install swagger-codegen-api-client-builder
Weekly Installs
–
Repository
GitHub Stars
1
First Seen
–
Security Audits
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装