claude-api

Document Claude API usage with code examples across multiple SDKs.

269|67|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/PM-Shawn/Abu-Cowork --skill claude-api-pm-shawn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-api
Source: https://github.com/PM-Shawn/Abu-Cowork/tree/main/builtin-skills/claude-api
Command: npx skills add https://github.com/PM-Shawn/Abu-Cowork --skill claude-api-pm-shawn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for developers building applications using the Claude API and its various SDKs across multiple programming languages. It covers everything from basic message requests to advanced features like tool use, streaming, and agent development.

Core Features & Use Cases

  • Multi-language SDK Support: Examples for Python, TypeScript, Java, Go, Ruby, C#, PHP, and cURL.
  • Core API Features: Demonstrates basic message requests, system prompts, vision capabilities, and prompt caching.
  • Advanced Features: Covers extended thinking, streaming responses, tool use (including manual loops and tool runners), batch processing, file uploads, and structured outputs.
  • Agent Development: Guides on using the Agent SDK for building sophisticated AI agents with built-in tools and permissions.
  • Use Case: A developer needs to integrate Claude's capabilities into their application. They can use this Skill to find the correct SDK, understand API parameters, implement complex features like function calling, and learn best practices for cost optimization and error handling.

Quick Start

Use the claude-api skill to send a basic message request using the Python SDK.

Frequently Asked Questions about claude-api

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

FAQPage Schema
How do I send a basic message request to the Claude API using Python?

To send a basic message request to the Claude API, use the Python SDK to configure your client and pass the model, system prompt, and user messages. This Skill provides exact code examples for initializing requests.

Does the Claude API support streaming responses and tool use?

Yes, the Claude API supports streaming responses and tool use. This Skill demonstrates how to implement streaming, manual tool loops, and automated tool runners for integrating external functions into your applications.

Can I use the Claude SDK for agent development?

You can use the Claude Agent SDK for agent development to build sophisticated AI agents. The Skill provides guides on utilizing built-in tools and configuring permissions for advanced agentic workflows.

What programming languages have SDK examples for the Claude API?

SDK examples for the Claude API are available for Python, TypeScript, Java, Go, Ruby, C#, PHP, and cURL. The Skill covers core API features and advanced implementations across these multiple languages.

How do I implement prompt caching and structured outputs with Claude?

To implement prompt caching and structured outputs with Claude, use the specific API parameters demonstrated in this Skill. It covers advanced features like batch processing, file uploads, and vision capabilities.