LogoClawIndex
CasesSkillsAbout
LogoClawIndex

claude-sdk-integration-patterns - Integrate Claude API with TypeScript SDK

Provides patterns for Claude API and TypeScript SDK integration, including messaging, streaming, tool use, error handling, token optimization, and production deployment.

Tags

Updated: 2026-09-28

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Create Claude messages
  • Stream model responses
  • Execute SDK tools
  • Handle API errors
  • Retry rate-limited requests
  • Optimize token usage
  • Manage conversation context
  • Batch message processing

Inputs

  • User prompts
  • Conversation messages
  • System prompts
  • Tool definitions
  • Model selection
  • Token limits
  • API credentials

Outputs

  • Claude messages
  • Streaming events
  • Tool execution results
  • Error states
  • Retry operations
  • Processed message batches

Requirements

  • Node.js or TypeScript environment
  • @anthropic-ai/sdk package
  • Anthropic API key
  • Supported Claude model
  • Network access to Claude API

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
Claude API
TypeScript SDK
streaming
tool use
error handling
token optimization
conversation management
Create Claude messages
Stream model responses
Execute SDK tools
Handle API errors
User prompts
Conversation messages
System prompts
Claude messages
Streaming events
Tool execution results