Skillshub clade-hello-world
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/jeremylongshore/claude-code-plugins-plus-skills/clade-hello-world" ~/.claude/skills/comeonoliver-skillshub-clade-hello-world && rm -rf "$T"
manifest:
skills/jeremylongshore/claude-code-plugins-plus-skills/clade-hello-world/SKILL.mdsource content
Anthropic Hello World
Overview
Send your first message to Claude and get a response using the Messages API.
Prerequisites
- Completed
setupclade-install-auth
environment variable setANTHROPIC_API_KEY
Instructions
Step 1: Basic Message
import Anthropic from '@claude-ai/sdk'; const client = new Anthropic(); const message = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, messages: [ { role: 'user', content: 'What is the capital of France?' } ], }); console.log(message.content[0].text); // "The capital of France is Paris."
Step 2: Add a System Prompt
const message = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, system: 'You are a helpful geography expert. Be concise.', messages: [ { role: 'user', content: 'What is the capital of France?' } ], });
Step 3: Multi-Turn Conversation
const message = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, messages: [ { role: 'user', content: 'What is the capital of France?' }, { role: 'assistant', content: 'The capital of France is Paris.' }, { role: 'user', content: 'What is its population?' }, ], });
Python Example
import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[ {"role": "user", "content": "What is the capital of France?"} ], ) print(message.content[0].text)
Output
— Claude's text responsemessage.content[0].text
— model ID usedmessage.model
/message.usage.input_tokens
— token countsmessage.usage.output_tokens
—message.stop_reason
,end_turn
, ormax_tokenstool_use
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Bad API key | Check |
| Missing required field | Both and are required |
| Invalid model ID | Use a valid model like |
Available Models
| Model | Best For | Context | Cost (input/output per MTok) |
|---|---|---|---|
| Complex reasoning | 200K | $15 / $75 |
| Balanced quality + speed | 200K | $3 / $15 |
| 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
Next Steps
Proceed to
clade-model-inference for streaming and advanced patterns.