Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

claude-api

Skill by sickn33

Guides developers building LLM-powered apps with the Claude API, Anthropic SDKs, or the Agent SDK. It applies when code imports the Anthropic packages or the user asks for Claude integration.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install claude-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/claude-api ~/.claude/skills/claude-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install claude-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The claude-api skill helps an assistant build applications with Claude. It first picks the right surface for the job: a single Claude API call, a workflow or custom agent using tool use, or the Agent SDK for built-in file, web and terminal tools. It then detects the project language from its files and reads the matching reference folder for Python, TypeScript, Java, Go, Ruby, C#, PHP or cURL.

The skill is aimed at developers who write code that imports the anthropic or @anthropic-ai/sdk packages, or who want to use the Claude API or Agent SDK. It says not to use it for general coding or for OpenAI and other AI SDK code. It also sets guidance on credentials, request deadlines, bounded retries, and treating tool and model output as untrusted input.

Written from the project's SKILL.md and checked against it.

What it can do

  • Surface selectionHelps choose between a single Claude API call, a workflow, a custom agent, or the Agent SDK.
  • Language detectionInfers the project language from its files and reads the matching SDK reference.
  • Tool useCovers user-defined tools with a tool runner or a manual loop for full control.
  • Structured outputsConstrains Messages API responses with a schema via output_config.format or strict tool parameters.
  • StreamingCovers streamed responses for chat UIs and real-time display.
  • Batch processingCovers asynchronous batch requests for non-latency-sensitive work.
  • Files APICovers uploading files for use across multiple requests.
  • Agent SDKCovers agents with built-in file, web and terminal tools, permissions and MCP support.

What you need

  • Anthropic API credentials kept in environment variables or approved secret storage
  • A project in Python, TypeScript, Java, Go, Ruby, C#, PHP or cURL
  • A reviewed SDK version and lockfile

Try asking

  • Use the claude-api skill to add a Claude summarization call to my Python app.
  • Help me set up tool use with the Claude API in my TypeScript project.
  • Should I use the Agent SDK or the Claude API for my codebase review agent?

Good to know

  • Does not cover OpenAI or other AI SDKs.
  • Anthropic does not provide an embedding model.
  • Streaming does not raise the model's output limit or prevent truncation.
  • Uploaded content is disclosed to an external provider.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/claude-api/SKILL.md, skills/claude-api/tests/conversation_examples_test.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.txt11 KB
  • SKILL.md15 KB
  • csharp/claude-api.md2 KB
  • curl/examples.md5 KB
  • go/claude-api.md4 KB
Show all 27 files
  • java/claude-api.md4 KB
  • php/claude-api.md2 KB
  • python/agent-sdk/README.md11 KB
  • python/agent-sdk/patterns.md9 KB
  • python/claude-api/README.md12 KB
  • python/claude-api/batches.md6 KB
  • python/claude-api/files-api.md5 KB
  • python/claude-api/streaming.md5 KB
  • python/claude-api/tool-use.md17 KB
  • ruby/claude-api.md2 KB
  • shared/error-codes.md7 KB
  • shared/live-sources.md11 KB
  • shared/models.md2 KB
  • shared/tool-use-concepts.md15 KB
  • tests/conversation_examples_test.py2 KB
  • typescript/agent-sdk/README.md9 KB
  • typescript/agent-sdk/patterns.md4 KB
  • typescript/claude-api/README.md9 KB
  • typescript/claude-api/batches.md3 KB
  • typescript/claude-api/files-api.md3 KB
  • typescript/claude-api/streaming.md6 KB
  • typescript/claude-api/tool-use.md13 KB

Alternatives to claude-api

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

claude-api: common questions

When should I use the Agent SDK instead of the Claude API?

The source says to use the Agent SDK when you want built-in file, web and terminal tools, permissions and MCP. If you want to build an agent with your own tools, the Claude API is the right choice.

Which languages does the skill support?

The source lists Python, TypeScript, Java, Go, Ruby, C#, PHP and cURL, and suggests cURL examples for unsupported languages such as Rust or Swift.

Does the skill pick the model for me?

The source says to choose a model based on the user's quality, latency and budget, and to resolve exact model IDs through the account's Models API.

How do I install claude-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is claude-api free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is claude-api safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to claude-api?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

claude-api Install

Add to stack

Loading.