claude-api

claude-api is a skill for Claude Code, Codex from inbharatai/claude-skills. It costs 29 tokens per session (416 once invoked), scanned A, original, MIT.

A guide for building applications that use Anthropic's Claude API, a service that lets software send requests to Claude and receive responses.

In plain words
What is it for?
Use it when adding Claude chat, multi-step conversations, tool calls, streaming output, or vision features to an application.
Why use it?
It helps organize common API tasks such as conversations, streamed replies, image input, and tool use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it when adding Claude chat, multi-step conversations, tool calls, streaming output, or vision features to an application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/inbharatai/claude-skills/claude-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add inbharatai/claude-skills --skill claude-api
Clone the repo
git clone --depth 1 https://github.com/inbharatai/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/inbharatai/claude-skills/claude-api/github.svg)](https://agentmods.dev/skills/inbharatai/claude-skills/claude-api)
Your own site
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/claude-api"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/claude-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/claude-api"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/claude-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00416
Opus 5 $0.00015 $0.00208
Sonnet 5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 12d ago against content hash 2e941ee3b96b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/claude-api/SKILL.md · 68 lines

What it actually says

Claude API

Overview

Build apps with the Anthropic Claude API — chat completions, tool use, streaming, vision, and multi-turn conversations.

When to Use This Skill

Use Claude API when you need to:

  • Work with claude api tasks in your project or workflow
  • Automate claude api operations at scale
  • Generate production-quality claude api output quickly

Instructions

When this skill is active, Claude will:

  1. Understand the full context of your claude api request
  2. Apply best practices and conventions for Development
  3. Produce clean, well-structured, production-ready output
  4. Explain key decisions and offer alternatives where relevant

Examples

Example 1 — Basic Usage

User: Help me get started with claude api.

Claude: I'll walk you through the essential steps for claude api in your context...

Example 2 — Advanced Usage

User: I need a production-ready claude api setup with full error handling.

Claude: Here's a complete, production-hardened claude api implementation...

Guidelines

  • Always validate inputs before processing
  • Follow the conventions of the target platform or language
  • Prefer explicit over implicit — clarity beats cleverness
  • Include comments for non-obvious logic
  • Suggest tests or validation steps where appropriate

Dependencies

Required: python, typescript, anthropic-sdk

Platforms

Available on: claude.ai, claude-code, api


Part of the claude-skills collection — 183+ skills for Claude.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 68 lines · 29 tokens per session scan A 2e941ee3b96b

Subscribe to this mod's changes

claude-api is a skill published in the GitHub repository inbharatai/claude-skills (33 stars, last pushed 6mo ago), licensed MIT. It adds 29 tokens to every session and 416 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kafka-event-driven-design

Kafka event-driven architecture designer and reviewer, at the application/client layer. ALWAYS use when designing, reviewing, or troubleshooting how a service produces or consumes Kafka events — topic and partition-key design, producer and consumer client configuration, consumer group topology, event schema definition…

johnqtcg/awesome-skills · 191 tokens

api-design

REST API contract designer and reviewer. ALWAYS use when designing new endpoints, reviewing existing API contracts, planning API versioning, or standardizing error models. Covers resource modeling (URL/naming), HTTP method semantics, status code selection, error model consistency, pagination/filtering/sorting…

johnqtcg/awesome-skills · 123 tokens

thirdparty-api-integration-test

Create and run gated Go integration tests for third-party APIs with real external calls, strict configuration gates, bounded timeouts, and safe runtime controls. Use for vendor/client contract verification and failure triage.

johnqtcg/awesome-skills · 47 tokens

APIDesignArchitect

Complete API design intelligence — REST, GraphQL, gRPC, webhooks, API versioning, authentication, rate limiting, API governance, and building APIs that developers love and never want to leave.

vignesh2027/Claude-Agentic-Skills2.0-version · 44 tokens

DeveloperExperienceOS

Complete developer experience intelligence — SDK design, documentation, onboarding, developer community, API ergonomics, CLI tooling, and building products that developers love and evangelize.

vignesh2027/Claude-Agentic-Skills2.0-version · 35 tokens

StartupCTO

Complete CTO intelligence for early-stage startups — tech stack decisions, architecture, team building, technical debt management, and scaling from 0 to 10M users.

vignesh2027/Claude-Agentic-Skills2.0-version · 35 tokens