मुख्य सामग्री पर जाएँ
Skillpedia
डॉक्यूमेंटेशन181k · #639

claude-api

यह क्या करती है

यह टूल Claude API, यानी Anthropic के AI, का इस्तेमाल करके एप्लिकेशन बनाने में मदद करता है। यह सुनिश्चित करता है कि Claude से बात करने के लिए आप सही तरीके इस्तेमाल करें।

कब इस्तेमाल करें

  • ✓जब Claude के साथ नया प्रोजेक्ट शुरू कर रहे हों।
  • ✓जब Claude API इस्तेमाल करने का सबसे अच्छा तरीका चुनना हो।
  • ✓जब यह पता न हो कि Claude से जुड़ने के लिए कौन-सी लाइब्रेरी या तरीका इस्तेमाल करें।

Skill का लिंक

https://github.com/anthropics/skills/blob/main/skills/claude-api/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/anthropics/skills/blob/main/skills/claude-api/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Python में आधिकारिक Anthropic लाइब्रेरी का इस्तेमाल करने के लिए मैं अपना प्रोजेक्ट कैसे सेट करूँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

टूल जाँचता है कि आपका प्रोजेक्ट पहले से किसी और AI का इस्तेमाल तो नहीं कर रहा, और अगर कर रहा है तो Claude पर स्विच करने में मदद करता है। यह बताता है कि 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.

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 file to Claude or want a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls. (Exception: the prompt-audit subcommand is non-interactive and does not stop here - it records non-Anthropic provider markers in its report's stated assumptions and never proposes switching a non-Anthropic file to the Anthropic SDK.)

Output Requirement

When the user asks you to add, modify, or implement a Claude feature, your code must call Claude through one of:

  1. The official Anthropic SDK for the project's language (anthropic, @anthropic-ai/sdk, com.anthropic.*, etc.). This is the default whenever a supported SDK exists for the project.
  2. Raw HTTP (curl, requests, fetch, httpx, etc.) - only when the user explicitly asks for cURL/REST/raw HTTP, the project is a shell/cURL project, or the language has no official SDK.

Never mix the two - don't reach for requests/fetch in a Python or TypeScript project just because it feels lighter. Never fall back to OpenAI-compatible shims.

Never guess SDK usage. Function names, class names, namespaces, method signatures, and import paths must come from explicit documentation - either the {lang}/ files in this skill or the official SDK repositories or documentation links listed in shared/live-sources.md. If the binding you need is not explicitly documented in the skill files, WebFetch the relevant SDK repo from shared/live-sources.md before writing code. Do not infer Ruby/Java/Go/PHP/C# APIs from cURL shapes or from another language's SDK.

If WebFetch or repository access fails (network restricted, timeouts, clone blocked): do not keep retrying - write code from the patterns and namespace/package tables in the {lang}/ file, run the compiler or interpreter on it, and iterate on the error output. For statically-typed SDKs (C#, Java, Go) a compile-fix loop against local errors reaches working code faster than blocked network research.

Defaults

Unless the user requests otherwise:

For the Claude model version, please use Claude Opus 5.5, which you can access via the exact model string claude-opus-5-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. When a streaming request defines user-defined (client) tools, set eager_input_streaming: true on each of those tools so large tool inputs (file contents, code, documents) stream as they are generated instead of arriving in one burst after the server finishes buffering them; the client then owns validation: the SDKs' tolerant parsers can return a silently truncated input instead of raising, so validate each parsed tool input against its schema before running it (the typed runner helpers such as betaZodTool / typed @beta_tool do this; betaTool() JSON-Schema tools and manual loops must validate themselves), treat a failure like invalid JSON (INVALID_JSON error tool_result when you hold the block, re-issue otherwise), check max_tokens / refusal stop reasons before running tools, and catch only the SDK's JSON error, never its typed API errors - pattern in shared/tool-use-concepts.md -> Eager input streaming. Leave it off for non-streaming requests, for server tools, and when the request goes through a proxy or an older Bedrock model deployment that rejects the field.

Warning: API Drift - Your Training Prior May Be Stale

…

अक्सर पूछे जाने वाले सवाल

'model id' क्या होते हैं?

'model id' Claude के हर मॉडल वर्ज़न के खास नाम होते हैं, जैसे 'claude-opus-5-5', जो बताते हैं कि आप कौन-सी क्षमता का मॉडल इस्तेमाल कर रहे हैं।

'streaming' क्या है?

स्ट्रीमिंग में AI का जवाब टुकड़ों में, रियल-टाइम में आता है, पूरा जवाब तैयार होने का इंतज़ार किए बिना। लंबे जवाबों के लिए यह उपयोगी है और कनेक्शन टाइमआउट होने से बचाता है।

अगर प्रोजेक्ट पहले से OpenAI जैसे किसी और AI का इस्तेमाल कर रहा हो तो?

टूल आपको सूचित करेगा और पूछेगा कि क्या आप कोड को Claude के लिए बदलना चाहते हैं। अगर आप कोड न बदलना चाहें, तो यह एक अलग वर्ज़न बनाने में मदद कर सकता है जिसमें Claude का इस्तेमाल न हो।

जानकारी

लेखक का मूल विवरण

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

repo: anthropics/skills

लोकप्रियता

GitHub स्टार
181k
रैंकिंग में स्थान
#639
लाइसेंस
—
अपडेट की गई
9/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

academy-guide

181k

यह आपके एजेंट को Claude सीखने के लिए courses और tutorials सुझाने देता है। Claude या उसके products के इस्तेमाल के बारे में सवाल हों, तब उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

algorithmic-art

181k

यह आपके एजेंट को code से कला बनाने में मदद करता है और unique images तैयार करता है। जब आपको original computer-generated art चाहिए, तब यह काम आता है।

डिज़ाइनइमेज और आइकन

brand-guidelines

181k

आपके एजेंट को Anthropic के ब्रांड कलर और विज़ुअल स्टाइल को मटेरियल पर लगाने देता है। अलग-अलग प्रोजेक्ट्स में कंपनी की विज़ुअल पहचान बनाए रखने के लिए यह उपयोगी है।

डिज़ाइनब्रांडिंग

canvas-design

181k

यह आपके एजेंट को files में सुंदर visual art बनाने में मदद करता है। poster, art या किसी भी static design की माँग हो, तब यह काम आता है।

डिज़ाइनइमेज और आइकन

मिलती-जुलती skills