Langsung ke konten
Skillpedia
API & server (backend)48k Β· #4142

claude-api

Fungsinya

Alat ini membantu Anda membangun aplikasi menggunakan Claude API atau Anthropic SDK. Alat ini mendeteksi bahasa pemrograman proyek Anda dan menyediakan contoh kode yang tepat agar Anda bisa langsung mulai.

Kapan dipakai

  • βœ“Ketika Anda memulai proyek baru dengan Claude API.
  • βœ“Jika kode Anda sudah menggunakan library seperti `anthropic` atau `@anthropic-ai/sdk`.
  • βœ“Untuk menambahkan fitur kecerdasan buatan (AI) ke dalam aplikasi Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-api/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara menggunakan Claude API di Python untuk merangkum teks yang panjang?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini memeriksa file-file proyek Anda untuk mengetahui bahasa pemrogramannya (misalnya Python, TypeScript, Java, dan lain-lain). Setelah itu, alat ini menampilkan contoh kode yang sesuai dengan bahasa tersebut, menggunakan versi model Claude terbaru dan pengaturan yang direkomendasikan untuk menangani tugas yang kompleks.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

…

Pertanyaan umum

Versi model Claude mana yang sebaiknya saya gunakan?

Secara default, alat ini menyarankan model Claude Opus 5 (`claude-opus-5`), yaitu versi yang lebih canggih.

Apa itu 'adaptive thinking'?

Itu adalah pengaturan yang membantu AI berpikir secara lebih fleksibel dan adaptif sehingga bisa menyelesaikan masalah yang lebih rumit.

Mengapa respons kadang datang secara bertahap (streaming)?

Untuk respons yang panjang atau saat menggunakan banyak sumber daya, 'streaming' mengirim respons sedikit demi sedikit. Cara ini mencegah koneksi terputus atau terlalu lama menunggu.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
48k
Peringkat
#4142
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa