Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sdk Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-sdk-design)
---
name: sdk-design
description: SDK and client library design — idiomatic APIs per language, generated vs handwritten layers, authentication, retries and pagination helpers, typed errors, configuration, telemetry, semantic versioning, examples and docs. Use to build or evolve SDKs (SDK, client library, code generation, developer ergonomics).
metadata:
category: api
---
# SDK design
## Purpose
Give developers clients that are idiomatic, safe by default and stable.
**Use when:** building client libraries for an API.
**Not for:** API contract design itself.
## Inputs
- API spec, target languages, consumer feedback.
## Outputs
- SDK design, code, examples, changelog.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "sdk design"` for prior decisions, patterns and anti-patterns.
- [Versioning standard](../../../standards/versioning.md)
## Steps
1. **Shape.** Generate low-level from spec; handwrite ergonomic layer.
Done when common tasks take ≤ 3 lines.
2. **Defaults.** Safe defaults: timeouts, retries on 429/5xx with backoff, pagination iterators.
Done when defaults are documented.
3. **Errors.** Typed errors with request ids.
Done when errors are catchable by type.
4. **Release.** SemVer, changelog, examples tested in CI.
Done when examples run.
## Best practices
- Never log credentials.
- Make breaking changes rare and loud.
## Common mistakes
- Leaking HTTP details everywhere.
- Retrying non-idempotent calls.
## Example
`for await (const inv of client.invoices.list({status:"paid"}))` with auto-pagination and `RateLimitError`.
## Reusable prompt
```text
Apply the SDK design skill (.agents/skills/sdk-design/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Design the SDK surface, defaults, errors and release process for the target language.
Return: SDK design, code, examples, changelog..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```