claude-api

Build, debug, and optimize applications using the Claude API and Anthropic SDKs.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Syedyasir001/RVULibPass --skill claude-api-syedyasir001
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-api
Source: https://github.com/Syedyasir001/RVULibPass/tree/main/.agent/skills/library/claude-api
Command: npx skills add https://github.com/Syedyasir001/RVULibPass --skill claude-api-syedyasir001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct Claude API and Anthropic SDK code requires up-to-date knowledge of model IDs, SDK bindings, beta headers, and features like prompt caching, tool use, streaming, and Managed Agents, which are easy to get wrong from memory. ## Core Features & Use Cases - Multi-language SDK guidance: Language detection routes to dedicated references for Python, TypeScript, Java, Go, Ruby, C#, PHP, and cURL, covering installation, streaming, tool use, thinking, and structured outputs. - Feature implementation patterns: Quick references and shared docs for prompt caching, adaptive thinking, effort, compaction, batches, Files API, and server-side tools. - Managed Agents support: End-to-end guidance for the /v1/agents, /v1/sessions, and /v1/environments beta surface, including an onboarding subcommand. - Use Case: A developer asks to add tool use with prompt caching to a Python app; the skill loads the Python README plus shared caching and tool-use docs and emits correct SDK code using claude-opus-4-6. ## Quick Start Ask the assistant to add a streaming Claude API call with prompt caching to your project file using the official Anthropic SDK.

Frequently Asked Questions about claude-api

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

FAQPage Schema
How do I add tool use to a Claude API application?▼

Define tools via decorators, Zod schemas, or raw JSON and let the SDK tool runner handle the agentic loop, or write a manual loop checking stop_reason for tool_use. Language-specific examples exist for Python, TypeScript, Java, Go, Ruby, and PHP.

How do I enable prompt caching with the Anthropic SDK?▼

Set cache_control with type ephemeral on stable prefix blocks such as the system prompt, keeping volatile content after the last breakpoint. Verify hits via usage.cache_read_input_tokens; zero reads across requests indicate a silent invalidator like timestamps in the prefix.

Which Claude model should I use by default?▼

Use claude-opus-4-6 unless the user explicitly names another model such as Sonnet or Haiku. Use the exact model ID strings without appending date suffixes, and pair with adaptive thinking for complex tasks.

Does the Claude API support Managed Agents on Bedrock or Vertex AI?▼

No, Managed Agents is first-party only and unavailable on Amazon Bedrock, Google Vertex AI, or Microsoft Foundry. On third-party providers, use the Claude API with tool use for all agent workloads.

Why does my Claude API request fail with budget_tokens?▼

budget_tokens is deprecated on Opus 4.6 and Sonnet 4.6 and must not be used with them. Use thinking type adaptive instead; fixed budgets only apply to older models and must be less than max_tokens.

When should I use raw HTTP instead of the Anthropic SDK?▼

Use raw HTTP only when the user explicitly requests cURL or REST, the project is shell-based, or no official SDK exists for the language. Never mix raw HTTP with SDK calls in a language that has an official SDK.