Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ancoleman/designing-sdks
Design production-ready SDKs with retry logic, error handling, pagination, and multi-language support.
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
We are implementing automatic HTTP retries in our SDK HTTP client layer. A developer proposed retrying all failed HTTP requests, including HTTP 400 Bad Request, 401 Unauthorized, 404 Not Found, 429 Too Many Requests, and 503 Service Unavailable. Which response codes should be retried automatically by default?
| Checked | Without skill | With skill |
|---|---|---|
| Automatically retry 5xx server errors and 429 rate limit responses. | Missed | Passed |
| Do not retry 4xx client errors like 400, 401, 403, or 404. | Passed | Passed |
The instructions your model reads when the skill loads.
Design client libraries (SDKs) with excellent developer experience through intuitive APIs, robust error handling, automatic retries, and consistent patterns across programming languages.
Use when building a client library for a REST API, creating internal service SDKs, implementing retry logic with exponential backoff, handling authentication patterns, creating typed error hierarchies, implementing pagination with async iterators, or designing streaming APIs for real-time data.
Organize SDK code hierarchically:
Client (config: API key, base URL, retries, timeout)
├─ Resources (users, payments, posts)
│ ├─ create(), retrieve(), update(), delete()
│ └─ list() (with pagination)
└─ Top-Level Methods (convenience)
Resource-Based (Stripe style):
const client = new APIClient({ apiKey: 'sk_test_...' })
const user = await client.users.create({ email: '[email protected]' })
Use for APIs <100 methods. Prioritizes developer experience.
Command-Based (AWS SDK v3):
import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3'
await client.send(new PutObjectCommand({ Bucket: '...' }))
Use for APIs >100 methods. Prioritizes bundle size and tree-shaking.
test cases passed, vs 21 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.