Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add timwukp/agent-skills-best-practice --skill claude-apigit clone --depth 1 https://github.com/timwukp/agent-skills-best-practiceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/timwukp/agent-skills-best-practice/claude-api)<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/claude-api"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/claude-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/claude-api"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/claude-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.04382 |
| Opus 5.5 | $0.00034 | $0.01753 |
| Sonnet 5.5 | $0.00017 | $0.00876 |
| Haiku 4.5 | $0.00008 | $0.00438 |
Grade A, and why
claude-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Suggest cURL/raw HTTP examples from `curl/` and note that community SDKs may exist This is a copy
100% identical to claude-api — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on 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.
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:
-
Look at project files to infer the language:
*.py,requirements.txt,pyproject.toml,setup.py,Pipfile→ Python — read frompython/*.ts,*.tsx,package.json,tsconfig.json→ TypeScript — read fromtypescript/*.js,*.jsx(no.tsfiles present) → TypeScript — JS uses the same SDK, read fromtypescript/*.java,pom.xml,build.gradle→ Java — read fromjava/*.kt,*.kts,build.gradle.kts→ Java — Kotlin uses the Java SDK, read fromjava/*.scala,build.sbt→ Java — Scala uses the Java SDK, read fromjava/*.go,go.mod→ Go — read fromgo/*.rb,Gemfile→ Ruby — read fromruby/*.cs,*.csproj→ C# — read fromcsharp/*.php,composer.json→ PHP — read fromphp/
-
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?"
What ships with it
25 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- csharp/claude-api.md 1.7 KB
- curl/examples.md 4.4 KB
- go/claude-api.md 3.9 KB
- java/claude-api.md 3.8 KB
- LICENSE.txt 11 KB
- php/claude-api.md 1.5 KB
- python/agent-sdk/patterns.md 8.0 KB
- python/agent-sdk/README.md 9.6 KB
- python/claude-api/batches.md 4.8 KB
- python/claude-api/files-api.md 3.8 KB
- python/claude-api/README.md 11 KB
- python/claude-api/streaming.md 5.1 KB
- python/claude-api/tool-use.md 16 KB
- ruby/claude-api.md 1.8 KB
- shared/error-codes.md 6.9 KB
- shared/live-sources.md 10 KB
- shared/models.md 4.5 KB
- shared/tool-use-concepts.md 14 KB
- typescript/agent-sdk/patterns.md 3.2 KB
- typescript/agent-sdk/README.md 7.7 KB
- typescript/claude-api/batches.md 2.5 KB
- typescript/claude-api/files-api.md 2.2 KB
- typescript/claude-api/README.md 8.4 KB
- typescript/claude-api/streaming.md 5.5 KB
- typescript/claude-api/tool-use.md 13 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 244 lines · 84 tokens per session scan A 1ec3d558d336
claude-api is a skill published in the GitHub repository timwukp/agent-skills-best-practice (14 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 4,382 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to claude-api, differing in 0 lines, and is treated as a copy.
claude-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-apitimwukp/agent-skills-best-practice | Skill | 14 | 2mo ago | MIT | A | 84 | Claude Code, Codex |
| api-gatewayitsmostafa/aws-agent-skills | Skill | 1.2k | 7d ago | MIT | A | 38 | Claude Code |
| cognitoitsmostafa/aws-agent-skills | Skill | 1.2k | 7d ago | MIT | A | 38 | Claude Code |
| snsitsmostafa/aws-agent-skills | Skill | 1.2k | 7d ago | MIT | A | 32 | Claude Code |
| sqsitsmostafa/aws-agent-skills | Skill | 1.2k | 7d ago | MIT | A | 39 | Claude Code |
| amazon-alexalingxling/awesome-skills-cn | Skill | 341 | 1mo ago | MIT | A | 53 | Claude Code |
| rustFilippoDeSilva/skills | Skill | 2 | 5mo ago | none | A | 64 | Claude Code |