api-sdk-generator
Generates client SDK code, API wrapper libraries, request/response models, and language-specific usage patterns for any REST API. Use whenever the user asks to "generate an SDK", "write a client library", "create API wrappers", "generate TypeScript types from my API", "write a Python...
npx skills add majiayu000/claude-skill-registry --skill api-sdk-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API SDK & Codegen Skill ## When to Use Use this skill when you need generates client SDK code, API wrapper libraries, request/response models, and language-specific usage patterns for any REST API. Use whenever the user asks to "generate an SDK", "write a client library", "create API wrappers", "generate TypeScript types from my API", "write a Python... Generate production-quality client libraries and SDK code for any API in any language. --- ## SDK Structure (any language) ``` sdk/ ├── client.{ext} — main client class with base URL, auth, retry ├── resources/ │ ├── users.{ext} — one file per API resource │ ├── orders.{ext} │ └── ... ├── models/ │ ├── user.{ext} — request/response data models │ └── ... ├── errors.{ext} — typed error classes └── utils/ ├── retry.{ext} └── pagination.{ext} ``` --- ## Base Client Pattern ### Python ```python import httpx from typing import Optional import time class APIClient: def __init__(self, api_key: str, base_url: str = "https://api.example.com/v1"): self.base_url = base_url self._headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json", "User-Agent": "example-sdk-python/1.0.0" } self._client = httpx.Client(timeout=3
- When to Use
- SDK Structure (any language)
- Base Client Pattern
- Python
- TypeScript
- Resource Class Pattern
- Typed Error Classes
- Pagination Helper
- Rules
- After Completing the API SDK Output
- Limitations
What does the api-sdk-generator skill do?
Generates client SDK code, API wrapper libraries, request/response models, and language-specific usage patterns for any REST API. Use whenever the user asks to "generate an SDK", "write a client library", "create API wrappers", "generate TypeScript types from my API", "write a Python...
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-sdk-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
