Skip to content
Back to skills

Sdk Design

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill sdk-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sdk Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sdk Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-sdk-design/badge)](https://www.skillsdirectory.com/skills/vectora-os-sdk-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.