XClawXCLAW
返回市场
Skills

Claude API

构建、调试、优化 Claude API 应用,自动带上 prompt caching

发布方 · Anthropic版本 · 1.3.0更新于 2026年4月12日

添加到 XClaw

在 XClaw 应用中运行以下命令,skill 即刻可用,无需重启

$ xclaw skill add claude-api

概览

专门写 Anthropic SDK / Claude API 的 skill。自动带上 prompt caching、tool use、thinking、batch、citations 等最佳实践,并负责模型版本迁移(4.5 → 4.6 → 4.7)。

功能特性

  • Python / TypeScript SDK 双语言
  • 默认启用 prompt caching
  • tool use / thinking / batch / citations
  • 模型版本自动迁移
  • 遇到非 Anthropic SDK 会主动提示

试试这些提示词

在 XClaw 对话框里直接说这些,skill 会自动触发

  • 给这段 SDK 调用加上 prompt caching
  • 把这段 Claude 3.5 代码迁移到最新的 Sonnet / Opus
  • 帮我用 tool use 接入这个外部 API

相关推荐