技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 1.1k · 12 current installs · 12 all-time installs
⭐ 0
安装量(当前) 12
🛡 VirusTotal :可疑 · OpenClaw :可疑
Package:aiwithabidi/anthropic
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :可疑
OpenClaw 评估
The skill claims full Anthropic Claude features (chat, streaming, vision, tool calling), but the included script appears to be a lightweight/stub implementation that does not actually implement key capabilities and also reads a fallback .env file — the overall package is inconsistent with its claims.
目的
Name/description promise: complete Anthropic Messages API support including streaming, image analysis, tool use, and batch processing. What is present: a single stdlib Python CLI that only issues simple HTTP requests (GET/POST) to a set of constructed endpoints. Several claimed capabilities (streaming, image upload/analysis, tool calling with structured input, real message sends) are not properly implemented: e.g., image handling and streaming…
说明范围
SKILL.md instructs the agent to run commands that imply uploading images, streaming responses, and tool-enabled chats. The runtime instructions do not disclose that the script will fall back to reading a .env file in a workspace path if ANTHROPIC_API_KEY is not set. The script reads WORKSPACE (if set) or ~/.openclaw/workspace/.env to find the key, which is broader local-file access than the SKILL.md explicitly highlights. Also the instructions…
安装机制
No install spec; instruction-only plus a single Python stdlib script. No external downloads or package installs. This is low-risk from an installation/execution-files perspective.
证书
Declared requirement: ANTHROPIC_API_KEY (primary credential) — appropriate for an Anthropic integration. Implementation detail: the script will also consult a WORKSPACE env var (if present) and attempt to read a .env file in that workspace (~/.openclaw/workspace/.env by default) to extract ANTHROPIC_API_KEY. While the script only attempts to parse a line starting with ANTHROPIC_API_KEY= (so it isn't indiscriminately reading other secrets), the…
持久
Skill is not always-included and uses default agent invocation settings. It does not attempt to modify other skills or agent-wide configuration. It does read a local file as a fallback for the API key, but it does not persist credentials itself.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Anthropic」。简介:Anthropic Claude API integration — chat completions, streaming, vision, tool us…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aiwithabidi/anthropic/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: anthropic
description: "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."
homepage: https://www.agxntsix.ai
license: MIT
compatibility: Python 3.10+ (stdlib only — no dependencies)
metadata: {"openclaw": {"emoji": "🔮", "requires": {"env": ["ANTHROPIC_API_KEY"]}, "primaryEnv": "ANTHROPIC_API_KEY", "homepage": "https://www.agxntsix.ai"}}
---
# 🔮 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 |
|----------|----------|-------------|
| `ANTHROPIC_API_KEY` | ✅ | API key/token for Anthropic |
## Quick Start
```bash
# Send a message to Claude
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
```
```bash
# Chat with system prompt
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
```
```bash
# Analyze an image
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
```
```bash
# Stream a response
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
```
## Commands
### `chat`
Send a message to Claude.
```bash
python3 {baseDir}/scripts/anthropic.py chat "What is the meaning of life?" --model claude-sonnet-4-20250514
```
### `chat-system`
Chat with system prompt.
```bash
python3 {baseDir}/scripts/anthropic.py chat-system --system "You are a financial analyst" "Analyze AAPL stock"
```
### `chat-image`
Analyze an image.
```bash
python3 {baseDir}/scripts/anthropic.py chat-image --image photo.jpg 'What do you see in this image?'
```
### `stream`
Stream a response.
```bash
python3 {baseDir}/scripts/anthropic.py stream "Write a short story about a robot" --model claude-sonnet-4-20250514
```
### `batch-create`
Create a batch request.
```bash
python3 {baseDir}/scripts/anthropic.py batch-create requests.jsonl
```
### `batch-list`
List batch jobs.
```bash
python3 {baseDir}/scripts/anthropic.py batch-list
```
### `batch-get`
Get batch status.
```bash
python3 {baseDir}/scripts/anthropic.py batch-get batch_abc123
```
### `batch-results`
Get batch results.
```bash
python3 {baseDir}/scripts/anthropic.py batch-results batch_abc123
```
### `count-tokens`
Count tokens in a message.
```bash
python3 {baseDir}/scripts/anthropic.py count-tokens "How many tokens is this message?"
```
### `models`
List available models.
```bash
python3 {baseDir}/scripts/anthropic.py models
```
### `tools`
Chat with tool use.
```bash
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`
Extended thinking mode.
```bash
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.
```bash
# 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 |
|--------|-------------|
| `{baseDir}/scripts/anthropic.py` | 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](https://www.linkedin.com/in/mohammad-ali-abidi) | [agxntsix.ai](https://www.agxntsix.ai)
[YouTube](https://youtube.com/@aiwithabidi) | [GitHub](https://github.com/aiwithabidi)
Part of the **AgxntSix Skill Suite** for OpenClaw agents.
📅 **Need help setting up OpenClaw for your business?** [Book a free consultation](https://cal.com/agxntsix/abidi-openclaw)