Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clade-sdk-patterns

Skill by jeremylongshore

Provides production patterns for the Anthropic TypeScript and Python SDKs. It covers client setup, retries, timeouts, error handling, streaming, types, prompt caching and message batches. It is written for developers using Claude Code.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clade-sdk-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-sdk-patterns ~/.claude/skills/clade-sdk-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clade-sdk-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an AI assistant reference patterns for the Anthropic SDKs. It targets the @claude-ai/sdk package for TypeScript and the anthropic package for Python. The skill shows how to create a client with retries, timeouts and custom headers, and how to handle specific error classes such as authentication, rate limit and connection errors.

The skill also covers event-based, async iterator and context manager streaming, TypeScript type aliases for messages and tools, prompt caching for repeated system prompts, and batch processing for bulk requests. It is written for developers who already work with TypeScript or Python and understand async code. The source lists a prerequisite skill, clade-install-auth, for initial setup.

Written from the project's SKILL.md and checked against it.

What it can do

  • Client configurationSets up TypeScript and Python clients with retries, timeouts, base URL and default headers.
  • Error handlingCatches authentication, rate limit, API status and connection errors with specific exception classes.
  • Streaming patternsShows event-based, async iterator and context manager approaches for streaming responses.
  • TypeScript typesLists type aliases for messages, content blocks, tools and request parameters.
  • Prompt cachingShows how to add cache control to a long system prompt to reduce input token cost.
  • Message batchesShows how to submit a batch of requests and poll until processing has ended.

What you need

  • Anthropic API key in the ANTHROPIC_API_KEY environment variable
  • Claude Code
  • Completed clade-install-auth setup
  • Familiarity with TypeScript generics or Python type hints

Try asking

  • Set up an Anthropic TypeScript client with retries and a 60 second timeout.
  • Show me how to stream a Claude response in Python with a context manager.
  • Add prompt caching to my long system prompt in the Anthropic SDK.

Good to know

  • Prompt caching is marked as beta in the source.
  • Cached content must be 1024 tokens or more to be cacheable, according to the source.
  • Batch processing is described with a 24 hour SLA and up to 10,000 messages per batch.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/clade-sdk-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEdit

  • SKILL.md6 KB
  • references/one-pager.md2 KB

Alternatives to clade-sdk-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

clade-sdk-patterns: common questions

Which SDKs does this skill cover?

The skill covers the @claude-ai/sdk package for TypeScript and the anthropic package for Python.

Does the skill show how to handle API errors?

Yes. It includes examples that catch authentication, rate limit, general API and network connection errors in both languages.

Does the skill include cost savings from caching or batches?

The source says prompt caching gives up to 90% savings on cached input tokens and batch processing gives 50% savings on bulk requests.

How do I install clade-sdk-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clade-sdk-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clade-sdk-patterns safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clade-sdk-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

clade-sdk-patterns Install

Add to stack

Loading.