API Client SDK Generator

Version: 1.0 Added: Jan 21, 2026

Description

Generates typed API client code from OpenAPI/Swagger specs or by analyzing existing API endpoints. Creates methods for each endpoint with proper typing.

Code

Skill Code
Client includes:
1. Base client with auth handling
2. Typed methods "keyword">for each endpoint
3. Request/response interfaces
4. Error handling
5. Retry logic
6. Request interceptors

Usage Examples

Examples
User: create a client "keyword">for the GitHub API

Claude: *generates client*
```typescript
"keyword">class GitHubClient {
  constructor("keyword">private token: string) {}
  
  async getUser(username: string): Promise<User> {
    "keyword">return this.request(`/users/${username}`);
  }
  
  async listRepos(username: string): Promise<Repo[]> {
    "keyword">return this.request(`/users/${username}/repos`);
  }
  // ... more methods
}
```

Installation

Add the following to your CLAUDE.md file (project root or ~/.claude/CLAUDE.md for global):

CLAUDE.md
# API Client SDK Generator

Client includes:
1. Base client with auth handling
2. Typed methods for each endpoint
3. Request/response interfaces
4. Error handling
5. Retry logic
6. Request interceptors

Comments (0)

No comments yet. Be the first to share your thoughts!