claude-api

Integrate Claude API across Python, TypeScript, Go, Ruby, Java, C#, and PHP SDKs.

1|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/mortenbroesby/playground --skill claude-api-mortenbroesby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-api
Source: https://github.com/mortenbroesby/playground/tree/main/.skills/claude-api
Command: npx skills add https://github.com/mortenbroesby/playground --skill claude-api-mortenbroesby

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude API integration for building AI-powered applications across languages, guiding developers through language detection, SDK usage, model migration, prompt caching, and error handling in a cohesive reference skill.

Core Features & Use Cases

  • Multi-language guidance: Python, TypeScript, Go, Ruby, Java, C#, PHP SDKs and their idioms for Claude API usage.
  • Migration & compatibility: advice on upgrading Claude models, handling thinking changes, and replacing deprecated parameters.
  • Live-doc references: links and strategies for WebFetch-based up-to-date docs, error codes, and token counting patterns.

Quick Start

Read the relevant language folder's Claude API README and start with a basic single-turn message to validate connectivity and model selection.

Frequently Asked Questions about claude-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate the Claude API using Python or TypeScript SDKs?

To integrate the Claude API, read the relevant language folder's README and start with a basic single-turn message to validate connectivity and model selection. The Skill provides multi-language SDK guidance for Python, TypeScript, Go, Ruby, Java, C#, and PHP.

How do I handle Claude API errors and keep documentation references up to date?

Handle Claude API errors and maintain current docs by using prescribed WebFetch-based live documentation sources. The Skill prescribes default error handling strategies and WebFetch links to fetch up-to-date error codes and token counting patterns.

What is the best way to migrate Claude models and handle deprecated parameters?

The best way to migrate Claude models is by following the Skill's dedicated migration and compatibility guidance. It covers upgrading models, handling adaptive thinking changes, and replacing deprecated parameters safely across supported language SDKs.

Does the Claude API support prompt caching and adaptive thinking across multiple languages?

Yes, the Claude API supports prompt caching and adaptive thinking across multiple languages. The Skill provides cohesive guidance on implementing these features using idiomatic SDK patterns for Python, TypeScript, Go, Ruby, Java, C#, and PHP.

Why does my Claude API integration return token counting errors after a model migration?

Claude API token counting errors after a model migration often stem from using deprecated parameters. The Skill outlines live-doc WebFetch strategies to validate current token counting patterns and resolve compatibility issues during upgrades.