Skip to main content
skill CX Codex

claude-sdk-integration-patterns — Claude Code skill: Claude Code API

A skill with ready patterns for the Claude API and TypeScript SDK: streaming, tool use, error handling, token savings.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add manutej/luxor-claude-marketplace --skill claude-sdk-integration-patterns -a claude-code
Open on GitHub

What claude-sdk-integration-patterns does

This skill collects working examples of wiring the Claude API into Node.js and TypeScript apps. Inside are the Messages API, streaming responses, tool use with Zod, error handling and token optimization. Every pattern carries a note on when to reach for it: a plain question-answer call, a multi-turn conversation, a live UI that renders partial output.

Tooling gets its own section. You define a schema with betaZodTool, let toolRunner execute the calls automatically, and stream several tools in sequence. Cancellation is covered too — stream.abort() plus catching Anthropic.APIUserAbortError when the user closes the window or a timeout fires.

You need an ANTHROPIC_API_KEY and the @anthropic-ai/sdk package. The patterns target your own application rather than Claude itself, so a project without Node.js and TypeScript gets nothing from it. Worth checking your stack before installing.

What it helps with

  • connect the Claude API to a Node.js app
  • stream model output into a chat UI
  • define a tool schema with Zod
  • handle an aborted stream or a request timeout
  • cut token spend in a multi-turn conversation

Example prompts for the agent

  • show me the Claude API streaming pattern for TypeScript
  • how do I define a tool with betaZodTool and run toolRunner
  • add error handling and stream abort to my messages.create call

How to install claude-sdk-integration-patterns

1Skills CLI (Vercel)

npx skills add manutej/luxor-claude-marketplace --skill claude-sdk-integration-patterns -a claude-code

2Manually: put the files in place

~/.claude/skills/claude-sdk-integration-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/claude-sdk-integration-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about claude-sdk-integration-patterns

How do I install claude-sdk-integration-patterns in Claude?

Run npx skills add manutej/luxor-claude-marketplace --skill claude-sdk-integration-patterns -a claude-code. The skill lands in ~/.claude/skills/claude-sdk-integration-patterns/SKILL.md.

What does claude-sdk-integration-patterns do?

It provides integration patterns for the Claude API and TypeScript SDK: Messages API, streaming, tool execution, error handling and token optimization.

What do I need before using it?

An ANTHROPIC_API_KEY and the @anthropic-ai/sdk package. The examples are written in TypeScript for Node.js.

Similar skills

Everything for AI and ML →

From the same set31

performance-benchmark-specialist Sets up benchmarks for shell tools: warmup runs, statistics, and target checks like <100ms and >90% cache hit rate. CX Codex +1 456installs PostgreSQL Database Administration A PostgreSQL administration skill: schema design, indexing, backups and query tuning. Useful when the agent writes SQL for a ticketing system or reporting. CX Codex +1 452installs langchain-orchestration A LangChain reference skill for your coding agent: chains, agents, memory, RAG and orchestration. Useful when the agent writes LangChain code and should stick to working patterns. CX Codex +1 451installs graphql-api-development A skill that walks your agent through GraphQL API design on graphql-js: schema, resolvers, queries, mutations, subscriptions, auth. Useful when REST stops fitting. CX Codex +1 447installs microservices-patterns A microservices skill covering service mesh, circuit breakers, traffic splitting and Istio. Useful when services fail in cascades or you need a canary release. CX Codex +1 446installs dbt-data-transformation A dbt skill for analytics engineering: models, tests, docs, incremental builds, macros and packages. Useful when your warehouse SQL needs structure. CX Codex +1 441installs apache-airflow-orchestration A skill for Apache Airflow work: writing DAGs, wiring task dependencies, branching, and getting pipelines ready for production. CX Codex +1 437installs unix-goto-development Walks an agent through adding features to the unix-goto navigation tool: a 9-step workflow, 100% test coverage, and sub-100ms cached navigation. CX Codex +1 427installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor