Agent skill · software engineering · jeremylongshore

clade-hello-world

Send your first message to Claude using the Anthropic SDK.

Why this skill is useful

Provides specific API usage patterns and error handling for the Anthropic Claude SDK that the AI wouldn't reliably generate on its own.

What it needs

Requires @claude-ai/sdk, anthropic installed locally. Requires anthropic account access. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Anthropic Hello World Overview Send your first message to Claude and get a response using the Messages API. Prerequisites Completed clade-install-auth setup ANTHROPICAPIKEY environment variable set Instructions Step 1: Basic Message Step 2: Add a System Prompt Step 3: Multi-Turn Conversation Python Example Output message.content[0].text — Claude's text response message.model — model ID used message.usage.inputtokens / message.usage.outputtokens — token counts message.stopreason — endturn, maxtokens, or tooluse Error Handling Error Cause Solution ------- ------- ---------- authenticationerror Bad API key Check ANTHROPICAPIKEY invalidrequesterror Missing required field Both messages and maxtokens are required notfounderror Invalid model ID Use a valid model like claude-sonnet-4-20250514 Available Models Model Best For Context Cost (input/output per MTok) ------- ---------- --------- ------------------------------ claude-opus-4-20250514 Complex reasoning 200K $15 / $75 claude-sonnet-4-20250514 Balanced quality + speed 200K $3 / $15 claude-haiku-4-5-20251001 Fast, cheap tasks 200K $0.80 / $4 Examples See Step 1 (basic message), Step 2 (system prompt), and Step 3 (multi-turn) above. Python example included in its own section. Resources Messages API Reference Model Overview Next Steps Proceed to clade-model-inference for streaming and advanced patterns.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/clade-hello-world--8d7670

View the source on GitHub

Browse the @skills marketplace