anthropics/skills✦ 精选0°

claude-api

仓库创建 2025年9月22日最近提交 2 天前SkillHot 收录 20 天前
▸ 精选理由

构建 Claude 应用时的必备参考。

这个 Skill 做什么

Claude / Anthropic API 与 SDK 的参数、用法与实践参考。

把 Claude / Anthropic 的 API、SDK、模型 id、计费和参数细节整理成可直接用的参考手册。每次提到 Claude/Anthropic、选模型、算成本、流式或工具调用时先看它,别凭记忆回答。特点是覆盖 token 计数、缓存、模型迁移与多代理用法,适合开发时直接拿来配置和排错。

▸ 展开 SKILL.md 英文原文

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hi

开发编程ClaudeAPI参考SDK通用
16.4w
Stars
2.0w
Forks
18
仓库内 Skill
+5.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/anthropics/skills/main/skills/claude-api/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/anthropics/skills/main/skills/claude-api/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Building LLM-Powered Applications with Claude

This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation.

## Before You Start

Scan the target file (or, if no target file, the prompt and project) for non-Anthropic provider markers — `import openai`, `from openai`, `langchain_openai`, `OpenAI(`, `gpt-4`, `gpt-5`, file names like `agent-openai.py` or `*-generic.py`, or any explicit instruction to keep the code provider-neutral. If you find any, stop and tell the user that this skill produces Claude/Anthropic SDK code; ask whether they want to switch the fi
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有