designing-sdks

designing-sdks is a skill for Claude Code from ancoleman/ai-design-components. It costs 39 tokens per session (3,070 once invoked), scanned A, original, MIT.

A guide for building software libraries that let developers call an application programming interface, or API, from their own code.

In plain words
What is it for?
Use it when creating SDKs for REST APIs or internal services, including typed errors, automatic retries, paginated results, and support across programming languages.
Why use it?
It helps avoid inconsistent client interfaces and covers common concerns such as failed requests, retries, authentication, pagination, and streaming.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the developer-productivity-skills plugin — 7 skills shipped together

Good fit Use it when creating SDKs for REST APIs or internal services, including typed errors, automatic retries, paginated results, and support across programming languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ancoleman/ai-design-components/designing-sdks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ancoleman/ai-design-components --skill designing-sdks
Clone the repo
git clone --depth 1 https://github.com/ancoleman/ai-design-components

Made for: Claude Code.

Or install developer-productivity-skills, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for designing-sdks

README.md
[![agentmods](https://agentmods.dev/badge/skills/ancoleman/ai-design-components/designing-sdks/github.svg)](https://agentmods.dev/skills/ancoleman/ai-design-components/designing-sdks)
Your own site
<a href="https://agentmods.dev/skills/ancoleman/ai-design-components/designing-sdks"><img src="https://agentmods.dev/badge/skills/ancoleman/ai-design-components/designing-sdks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for designing-sdks

Your own site · 80×15
<a href="https://agentmods.dev/skills/ancoleman/ai-design-components/designing-sdks"><img src="https://agentmods.dev/badge/skills/ancoleman/ai-design-components/designing-sdks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.03070
Opus 5.5 $0.00016 $0.01228
Sonnet 5.5 $0.00008 $0.00614
Haiku 4.5 $0.00004 $0.00307

Measured 3mo ago against content hash 01bfebc7cbec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

designing-sdks scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (examples/python/async-client.py, examples/python/dual-client.py, examples/python/sync-client.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(url, {
skills/designing-sdks/SKILL.md · 486 lines

How it starts

The opening of the file, as written. The whole thing — 486 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SDK Design

Design client libraries (SDKs) with excellent developer experience through intuitive APIs, robust error handling, automatic retries, and consistent patterns across programming languages.

When to Use This Skill

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.

Core Architecture Patterns

Client → Resources → Methods

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.

For detailed architectural guidance, see references/architecture-patterns.md.

Language-Specific Patterns

TypeScript: Async-Only

const user = await client.users.create({ email: '[email protected]' })

All methods return Promises. Avoid callbacks.

Python: Dual Sync/Async

# Sync
client = APIClient(api_key='sk_test_...')
user = client.users.create(email='[email protected]')

# Async
async_client = AsyncAPIClient(api_key='sk_test_...')
user = await async_client.users.create(email='[email protected]')

Provide both clients. Users choose based on architecture.

Go: Sync with Context

client := apiclient.New("api_key")
user, err := client.Users().Create(ctx, req)

Read the full file on GitHub · 486 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 486 lines · 39 tokens per session scan A 01bfebc7cbec

Subscribe to this mod's changes

designing-sdks is a skill published in the GitHub repository ancoleman/ai-design-components (536 stars, last pushed 11mo ago), licensed MIT. It adds 39 tokens to every session and 3,070 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

designing-sdks compared with skills from other repositories

designing-sdks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
designing-sdksancoleman/ai-design-componentsSkill53611mo agoMITA39Claude Code
digital-daten-rechte-bearbeitenKlotzkette/claude-fuer-deutsches-rechtSkill2.0ktodayApache-2.0A54Claude Code
form-strategyrampstackco/claude-skillsSkill1.1k17d agoMITA107Claude Code
seo-apiseranking/seo-skillsSkill2227d agoMITA218Claude Code
mcp-server-builderOneWave-AI/claude-skillsSkill4561mo agoMITA79Claude Code, Codex
api-endpoint-scaffolderOneWave-AI/claude-skillsSkill4561mo agoMITA36Claude Code, Codex
netlify-developmentMindrally/skillsSkill3251mo agoApache-2.0A78Claude Code