Skills anthropic
Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API. Generate text with Claude Opus, Sonnet, and Haiku models, process images, use tool calling, and manage conversations. Built for AI agents — Python stdlib only, zero dependencies. Use for AI text generation, multimodal analysis, tool-augmented AI, batch processing, and Claude model interaction.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aiwithabidi/anthropic" ~/.claude/skills/openclaw-skills-anthropic && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/aiwithabidi/anthropic" ~/.openclaw/skills/openclaw-skills-anthropic && rm -rf "$T"
skills/aiwithabidi/anthropic/SKILL.md🔮 Anthropic
Anthropic Claude API integration — chat completions, streaming, vision, tool use, and batch processing via the Anthropic Messages API.
Features
- Messages API — Claude Opus, Sonnet, Haiku completions
- Streaming — real-time token streaming responses
- Vision — image analysis and understanding
- Tool use — function calling with structured output
- System prompts — custom system instructions
- Multi-turn conversations — context management
- Batch API — bulk message processing
- Token counting — estimate usage before sending
- Extended thinking — deep reasoning mode
- Model listing — available models and capabilities
Requirements
| Variable | Required | Description |
|---|---|---|
| ✅ | API key/token for Anthropic |
Quick Start
# Send a message to Claude python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
# Chat with system prompt python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
# Analyze an image python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
# Stream a response python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
Commands
chat
chatSend a message to Claude.
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
chat-system
chat-systemChat with system prompt.
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
chat-image
chat-imageAnalyze an image.
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
stream
streamStream a response.
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
batch-create
batch-createCreate a batch request.
python3 {baseDir}/scripts/anthropic.py batch-create requests.jsonl
batch-list
batch-listList batch jobs.
python3 {baseDir}/scripts/anthropic.py batch-list
batch-get
batch-getGet batch status.
python3 {baseDir}/scripts/anthropic.py batch-get batch_abc123
batch-results
batch-resultsGet batch results.
python3 {baseDir}/scripts/anthropic.py batch-results batch_abc123
count-tokens
count-tokensCount tokens in a message.
python3 {baseDir}/scripts/anthropic.py count-tokens "How many tokens is this message?"
models
modelsList available models.
python3 {baseDir}/scripts/anthropic.py models
tools
toolsChat with tool use.
python3 {baseDir}/scripts/anthropic.py tools --tools '[{"name":"get_weather","description":"Get weather","input_schema":{"type":"object","properties":{"location":{"type":"string"}}}}]' "What is the weather in NYC?"
thinking
thinkingExtended thinking mode.
python3 {baseDir}/scripts/anthropic.py thinking "Solve this math problem step by step: what is 123 * 456?" --budget 10000
Output Format
All commands output JSON by default. Add
--human for readable formatted output.
# JSON (default, for programmatic use) python3 {baseDir}/scripts/anthropic.py chat --limit 5 # Human-readable python3 {baseDir}/scripts/anthropic.py chat --limit 5 --human
Script Reference
| Script | Description |
|---|---|
| Main CLI — all Anthropic operations |
Data Policy
This skill never stores data locally. All requests go directly to the Anthropic API and results are returned to stdout. Your data stays on Anthropic servers.
Credits
Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation