本文へスキップ
Skillpedia
APIとサーバー(バックエンド)48k · #4142

claude-api

できること

このツールは、Claude APIまたはAnthropic SDKを使ってアプリケーションを作るお手伝いをします。プロジェクトで使われているプログラミング言語を自動で判定し、その言語に合った、すぐに使えるコード例を提示します。

使う場面

  • ✓Claude APIを使った新しいプロジェクトを始めるとき。
  • ✓コードで`anthropic`や`@anthropic-ai/sdk`などのライブラリをすでに使っているとき。
  • ✓アプリケーションに人工知能(AI)の機能を組み込みたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-api/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-api/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“長い文章を要約するために、PythonでClaude APIを使うにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールはプロジェクトのファイルを確認して、使用しているプログラミング言語(Python、TypeScript、Javaなど)を特定します。そのうえで、その言語に合ったコード例を表示します。複雑なタスクの処理に向けた、最新のClaudeモデルのバージョンと推奨設定を使います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

When to Use

  • Use when building with the Claude API, Anthropic SDKs, or the Agent SDK.
  • Use when code imports anthropic, @anthropic-ai/sdk, or related Claude SDK packages.
  • Do not use for general coding work unrelated to Claude integrations.

Defaults

Unless the user requests otherwise:

For the Claude model version, please use Claude Opus 5, which you can access via the exact model string claude-opus-5. 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/
    • *.rb, Gemfile → Ruby — read from ruby/
    • *.cs, *.csproj → C# — read from csharp/
    • *.php, composer.json → PHP — read from php/
  2. If multiple languages detected (e.g., both Python and TypeScript files):

    • Check which language the user's current file or question relates to
    • If still ambiguous, ask: "I detected both Python and TypeScript files. Which language are you using for the Claude API integration?"
  3. If language can't be inferred (empty project, no source files, or unsupported language):

    • Use AskUserQuestion with options: Python, TypeScript, Java, Go, Ruby, cURL/raw HTTP, C#, PHP
    • If AskUserQuestion is unavailable, default to Python examples and note: "Showing Python examples. Let me know if you need a different language."
  4. If unsupported language detected (Rust, Swift, C++, Elixir, etc.):

    • Suggest cURL/raw HTTP examples from curl/ and note that community SDKs may exist
    • Offer to show Python or TypeScript examples as reference implementations
  5. If user needs cURL/raw HTTP examples, read from curl/.

Language-Specific Feature Support

Language Tool Runner Agent SDK Notes
Python Yes (beta) Yes Full support — @beta_tool decorator
TypeScript Yes (beta) Yes Full support — betaZodTool + Zod
Java Yes (beta) No Beta tool use with annotated classes
Go Yes (beta) No BetaToolRunner in toolrunner pkg
Ruby Yes (beta) No BaseTool + tool_runner in beta
cURL N/A N/A Raw HTTP, no SDK features
C# No No Official SDK
PHP No No Official SDK

Which Surface Should I Use?

Start simple. Default to the simplest tier that meets your needs. Single API calls and workflows handle most use cases — only reach for agents when the task genuinely requires open-ended, model-driven exploration.

Use Case Tier Recommended Surface Why

…

よくある質問

どのClaudeモデルのバージョンを使うべきですか?

初期設定では、高度なバージョンである`claude-opus-5`モデルの使用が提案されます。

「アダプティブシンキング(adaptive thinking)」とは何ですか?

AIがより柔軟に、状況に合わせて考えられるようにする設定です。より複雑な問題を解決するのに役立ちます。

回答が部分的に分かれて届くことがあるのはなぜですか?

長い回答や多くのリソースを使う場合、「ストリーミング」によって回答が少しずつ送られます。これにより、接続が切れたり、時間がかかりすぎたりするのを防ぎます。

詳細

作者による元の説明

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.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4142
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル