API SDK Generator Skill for OpenAPI TypeScript Clients
Generate typed client calls from an API contract and validate success and error behavior against a local service.
中文Install in Claude Code
Use an OpenAPI 3 document, your local API, and a pinned TypeScript SDK generator. The example uses synthetic shipments.
- Get the complete `plugins/api-development/api-sdk-generator/skills/generating-api-sdks` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/generating-api-sdks/SKILL.md`, start Claude Code at the project root, and call `/generating-api-sdks`.
Example task
Set operationId=getShipment on GET /shipments/{id} and describe an id/status response. Generate the client, read s1.status, and exercise the 404 path for missing.What to check
The generated method has typed parameters and fields. The known shipment returns a verified status and the missing ID follows the expected error path.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should custom retry code live in generated files?
Use supported generator configuration or a separate wrapper so regeneration preserves the custom behavior.