ClawShelf
  • 首页
  • 技能
  • 入门套装
  • 定价
  • 常见问题
注册
ClawShelf
ClawShelf

AI 助手的应用商店

TwitterX (Twitter)Email
产品
  • 首页
  • 技能
  • 入门套装
  • 常见问题
资源
  • 支持
法律条款
  • Cookie 政策
  • 隐私政策
  • 服务条款
  • 退款政策
Copyright © 2026 ClawShelf. 保留所有权利。
返回市场
热门免费✓ 官方
api热门免费✓ 官方

claude-api

Build production-ready Claude integrations with automatic language detection, optimal model selection, and expert guidance on tools and caching.

12.4k次下载·110.3k个收藏
A
作者: anthropics

关于此技能

Eliminate deprecated parameters and wrong model choices that break your Claude integration. This skill automatically detects your language stack and delivers exact SDK code for API calls, agent workflows, and prompt caching. Use this if you are building LLM apps requiring reliable, up-to-date implementation patterns across Python, TypeScript, or Java.

5 分钟完成安装

复制以下提示词,粘贴到 OpenClaw 中即可自动安装:

请根据 https://clawshelf.com/api/skills/anthropics-claude-api/install 的说明,下载并安装此技能到本地 ~/.openclaw/skills/ 目录。

文件预览

包含文件

  • SKILL.md
SKILL.md
---
name: claude-api
description: "Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks."
license: Complete terms in LICENSE.txt
---

# 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.

## Defaults

Unless the user requests otherwise:

For the Claude model version, please use Claude Opus 4.6, which you can access via the exact model string `claude-opus-4-6`. Please default to using adaptive thinking (`thinking: {type: "adaptive"}`) for anything remotely complicated. And finally, please default to streaming for any request that may involve long input, long output, or high `max_tokens` — it prevents hitting request timeouts. Use the SDK's `.get_final_message()` / `.finalMessage()` helper to get the complete response if you don't need to handle individual stream events

---

## Language Detection

Before reading code examples, determine which language the user is working in:

1. **Look at project files** to infer the language:

   - `*.py`, `requirements.txt`, `pyproject.toml`, `setup.py`, `Pipfile` → **Python** — read from `python/`
   - `*.ts`, `*.tsx`, `package.json`, `tsconfig.json` → **TypeScript** — read from `typescript/`
   - `*.js`, `*.jsx` (no `.ts` files present) → **TypeScript** — JS uses the same SDK, read from `typescript/`
   - `*.java`, `pom.xml`, `build.gradle` → **Java** — read from `java/`
   - `*.kt`, `*.kts`, `build.gradle.kts` → **Java** — Kotlin uses the Java SDK, read from `java/`
   - `*.scala`, `build.sbt` → **Java** — Scala uses the Java SDK, read from `java/`
   - `*.go`, `go.mod` → **Go** — read from `go/`
   - `*.

搭配使用

用户评价

—
0 reviews
5
0
4
0
3
0
2
0
1
0

登录后可发表评价

暂无评价,成为第一个评价者吧。

$0

一次购买 · 终身更新

100% 原生支持 OpenClaw / Claude 等任何 AI 助手

创作者
A
anthropics
类型技能
分类api
价格$0
上架时间3/29/2026
授权一次性购买
下载量12,435
收藏量110,272
版本1.0.0
来源github.com
productivity
obsidian

Automate Obsidian vault management by searching, creating, and renaming notes while safely updating internal links.

$0
productivity
slack

Manage Slack channels instantly by sending messages, reacting to posts, and pinning important updates directly from Clawdbot.

$0
development
self-improvement

Capture project learnings and errors to prevent repeated mistakes and enable continuous AI improvement within your workflow.

$0