manutej avatar

Claude Sdk Integration Patterns

This is your reference guide for integrating Claude's API into production TypeScript apps. It covers the practical patterns you'll actually need: streaming responses with event handlers, tool use with Zod validation and automatic execution, proper error handling with retry logic, and multi-turn conversation management. The code examples are complete and production-oriented, showing things like abort controllers for streaming, exponential backoff, and the toolRunner helper that handles the tool execution loop for you. If you're building anything beyond basic one-off API calls, especially chatbots or agents that need streaming or function calling, this walks through the SDK patterns that'll save you from reinventing them.

skills.sh installs
437
GitHub stars
63
last updated
Aug 21, 2026

Install

$ npx -y skills add manutej/luxor-claude-marketplace --skill claude-sdk-integration-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Claude SDK Integration Patterns

Production-ready patterns for integrating Claude API and TypeScript SDK into applications. Master streaming responses, tool execution, error handling, and optimization strategies for AI-powered features.

When to Use This Skill

Use this skill when you need to:

  • Integrate Claude API into Node.js/TypeScript applications
  • Implement streaming conversations with real-time responses
  • Build applications with Claude tool use (function calling)
  • Handle API errors gracefully with retry logic
  • Optimize token usage and manage costs
  • Deploy Claude-powered features to production
  • Build multi-turn conversations with context management
  • Implement message batching for high-volume processing

Core Concepts

Messages API Fundamentals

The Claude Messages API is the primary interface for conversational AI:

Key Components:

  • Model Selection: Choose appropriate model (Opus, Sonnet, Haiku)
  • Messages Array: Conversation history with user/assistant roles
  • Max Tokens: Control response length
  • System Prompts: Guide model behavior
  • Streaming: Real-time response generation

SDK Architecture

Sponsors

Details

Repository
github.com/manutej/luxor-claude-marketplace
Categories
Backend & APIs, AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from manutej/luxor-claude-marketplace

All 66
1mims-harvard avatartooluniverse-systems-biologymims-harvard/tooluniverseSystems biology and pathway analysis integrating Reactome, KEGG, WikiPathways, BioCarta, NCI-Nature Pathway Interaction Database. Multi-database pathway enrichm436skills.sh installs
2openclaudia avatarslack-botopenclaudia/openclaudia-skillsSend messages and rich content to Slack channels via webhooks or Bot API. Use Block Kit for formatted announcements, marketing reports, and community updates. T435skills.sh installs
3alirezarezvani avatarchief-ai-officer-advisoralirezarezvani/claude-skillsChief AI Officer advisory for startups: model build-vs-buy decisions (API vs fine-tune vs in-house), AI risk classification under EU AI Act + US state patchwork432skills.sh installs
4weaviate avatarweaviateweaviate/agent-skillsSearch, query, and manage Weaviate vector database collections. Use for semantic search, hybrid search, keyword search, natural language queries with AI-generat432skills.sh installs
5aaronontheweb avatarOpenTelemetry-NET-Instrumentationaaronontheweb/dotnet-skillsProvides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, erro431skills.sh installs
6hairyf avatartaurihairyf/skillsCross-platform app toolkit with Rust backend and WebView frontend. Use when building or maintaining Tauri apps, configuring IPC/security, or developing plugins.431skills.sh installs