claude-api
Skill1 starsChanged 2 months agoMITView on GitHub
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.
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Use Claude Opus 4.6 (claude-opus-4-6) unless the user names a different model.
- Very specific: line 56
If ambiguous, ask. If unsupported language, suggest curl/ examples.
- Very specific: line 89
Use when user asks for "latest" info, cached data seems wrong, or features aren't covered here.
“Common” is measured: kept by at least 6 in 10 of the 98 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building LLM-Powered Applications with Claude
Choose the right surface, detect the project language, read the relevant docs.
What You Get
- Language-detected SDK examples (Python, TypeScript, Go, Elixir, Rust, Lua, cURL)
- Decision tree: single call vs workflow vs agent vs Agent SDK
- Current model IDs, thinking/effort config, caching patterns
- Tool use patterns (tool runner, manual loop, code execution)
- Error taxonomy and live documentation URLs
Top Pitfalls (quick reference)
| Mistake | Fix |
Using budget_tokens on Opus 4.6 / Sonnet 4.6 | Use thinking: {type: "adaptive"} -- budget_tokens is deprecated |
Lowballing max_tokens | Default ~16K non-streaming, ~64K streaming. Truncation = wasted retry |
| Prefilling assistant message on Opus 4.6 | Returns 400. Use structured outputs or system prompt instead |
| Silent cache invalidation | Check usage.cache_read_input_tokens. Common culprit: datetime.now() in system prompt |
| Redefining SDK types | Use Anthropic.MessageParam, Anthropic.Tool, etc. -- don't roll your own |
Full list: shared/pitfalls.md
Defaults
Use Claude Opus 4.6 (claude-opus-4-6) unless the user names a different model. Use adaptive thinking (thinking: {type: "adaptive"}) for anything remotely complicated. Use streaming for long input/output -- .get_final_message() / .finalMessage() if you don't need individual events.
Language Detection
Infer from project files:
*.py,pyproject.toml,requirements.txt-> Python -- read frompython/*.ts,*.tsx,package.json,tsconfig.json-> TypeScript -- read fromtypescript/*.js,*.jsx(no.tspresent) -> TypeScript -- JS uses the same SDK*.go,go.mod-> Go -- read fromgo/*.ex,*.exs,mix.exs-> Elixir -- read fromelixir/*.rs,Cargo.toml-> Rust -- read fromrust/*.lua,.luarc.json-> Lua -- read fromlua/
If ambiguous, ask. If unsupported language, suggest curl/ examples.
Which Surface?
| Use Case | Surface |
| Single call (classify, summarize) | Claude API |
| Multi-step pipeline, your tools | Claude API + tool use |
| Agent needing file/web/terminal | Agent SDK |
| Custom agent, your own tools | Claude API agentic loop |
Decision tree and "Should I Build an Agent?" criteria: shared/surfaces.md
Reading Guide
| Task | Read |
| Single call (classify/summarize/extract) | {lang}/claude-api/README.md |
| Chat UI / streaming | + {lang}/claude-api/streaming.md |
| Long conversations (context overflow) | + Compaction section; details: shared/thinking-effort.md |
| Prompt caching / cache optimization | shared/prompt-caching.md + {lang}/claude-api/README.md |
| Tool use / function calling / agents | + shared/tool-use-concepts.md + {lang}/claude-api/tool-use.md |
| Batch processing | + {lang}/claude-api/batches.md |
| File uploads across requests | + {lang}/claude-api/files-api.md |
| Agent with built-in tools | {lang}/agent-sdk/README.md + {lang}/agent-sdk/patterns.md |
| Model selection / capabilities | shared/models.md |
| Thinking, effort, compaction | shared/thinking-effort.md |
| Error handling | shared/error-codes.md |
Go, Elixir, Rust, Lua, cURL: single file covers all basics. Read that plus
shared/files as needed.
When to Use WebFetch
Use when user asks for "latest" info, cached data seems wrong, or features aren't covered here. URLs: shared/live-sources.md.
Other versions104 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- edorabma9304/Claude-Skill-by-Ozolab-Indonesia★ 217% same
- spweps/claude-skills★ 014% same
Wrote their own version · 102
- anthropics/skills★ 186ksame name
- rikkahub/rikkahub★ 8.6ksame name
- Ayuilos/Miffan★ 311same name
- loulanyue/awesome-claude-notes★ 272same name
- kid-sid/claude-spellbook★ 190same name
- nikships/droidproxy★ 123same name
- cohen-liel/hivemind★ 108same name
- tpavanipradeep/everything-claude-code★ 104same name
- The-AIOS/aios★ 93same name
- mit-network/everything-claude-code★ 76same name
92 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use everything-claude-code-conventions, academy-guide and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mryeastcodeSkilleverything-claude-code-conventions
Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.
Also in 7 projects that use this
AnthropicSkillacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.
Also in 4 projects that use this
CodeWithBehnamSkillfal-ai-media
Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.
Also in 11 projects that use this
tpavanipradeepSkillnextjs-turbopack
Next.js 16+ and Turbopack — incremental bundling, FS caching, dev speed, and when to use Turbopack vs webpack.
Also in 10 projects that use this
CodeWithBehnamSkilldmux-workflows
Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.
Also in 11 projects that use this
tpavanipradeepSkillbun-runtime
Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.
Also in 10 projects that use this
- +2 more from CodeWithBehnam
- +2 more from tpavanipradeep
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewerSkill
- agent-designerSkill
- architectSkill
- autoresearchSkill
- blockscoutSkill
- ci-cd-pipeline-builderSkill
- codebase-onboardingSkill
- code-reviewSkill
- coingeckoSkill
- database-designerSkill
- dependency-auditorSkill
- design-uxSkill
- digestSkill
- droo-stackSkill
- env-secrets-managerSkill
- ethskillsSkill
- ffmpeg-asmSkill
- focused-fixSkill
- frontend-slop-auditSkill
- git-guardrailsSkill
- git-worktree-managerSkill
- humanizerSkill
- interface-designerSkill
- llm-cost-optimizerSkill
- local-browser-inspectorSkill
- mcp-server-builderSkill
- native-codeSkill
- nixSkill
- noirSkill
- observability-designerSkill
- patchbotSkill
- performance-profilerSkill
- playwrightSkill
- polymathSkill
- prd-to-planSkill
- prepperSkill
- property-testingSkill
- qaSkill
- rag-architectSkill
- raxol-paymentsSkill
- raxolSkill
- raxol-symphonySkill
- recallSkill
- refactoring-strategySkill
- regenSkill
- releaseSkill
- security-auditorSkill
- self-improving-agentSkill
- sentinelSkill
- signozSkill
- skill-creatorSkill
- solidity-auditorSkill
- tddSkill
- tech-debt-trackerSkill
- ubiquitous-languageSkill
- watchdogSkill
- web-asset-generatorSkill
- writing-voiceSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

