ai-provider-anthropic-sdk SKILL.md skillA
ai-provider-anthropic-sdk from agents-inc/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add agents-inc/skills/ai-provider-anthropic-sdk@git:20261016.afd0e14Pins git:20261016.afd0e14 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- agents-inc/skills
- Path
src/skills/ai-provider-anthropic-sdk/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261016.afd0e14, committed Oct 16, 2026
- First version recorded
- Mar 23, 2026
- Size
- 23,990 bytes
- Repository stars
- 26
- License
- MIT
Official Anthropic SDK patterns for TypeScript/Node.js — client setup, Messages API, streaming, tool use, vision, extended thinking, structured outputs, prompt caching, batch API, and production best practices.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Anthropic SDK Patterns > **Quick Guide:** Use the official `@anthropic-ai/sdk` package to interact with Claude models directly. Use `client.messages.create()` for single-turn and multi-turn conversations. Use `client.messages.stream()` for streaming with event-based consumption. `max_tokens` is always required. Content blocks are typed unions (`text`, `tool_use`, `thinking`). Use `client.messages.parse()` with `zodOutputFormat()` for structured outputs. Tool use requires a tool-result loop -- Claude returns `tool_use` blocks, you execute the tool and send back `tool_result` blocks. Extended thinking adds `thinking` content blocks before the response. --- <critical_requirements> ## CRITICAL: Before Using This Skill **(You MUST always provide `max_tokens` in every `messages.create()` / `messages.stream()` call -- it is required and has no default)** **(You MUST handle the `stop_reason` field to detect `end_turn`, `max_tokens`, `tool_use`, and `stop_sequence` -- ignoring it causes silent truncation or broken tool loops)** …
Read the whole file at its exact version.
How to install
mdr add agents-inc/skills/ai-provider-anthropic-sdk@sha256:4220949b1da0b3cfThe line at the top of this page pins the label git:20261016.afd0e14, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_rpu73aeundp6bq3u)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Mar 23, 2026 and Oct 16, 2026, about one every 207 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261016.afd0e14 latest | 2026-10-16 | afd0e14 | 23,990 B | A | view · diff |
| git:20260323.1cb6727 | 2026-03-23 | 1cb6727 | 24,266 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (23990 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
agents-inc/skills · 26 stars · license MIT · pushed 2026-10-27 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rpu73aeundp6bq3u GET https://markdownregistry.com/api/v1/resolve?ref=agents-inc/skills/ai-provider-anthropic-sdk GET https://markdownregistry.com/api/v1/blob/4220949b1da0b3cf9dbddd7ae5050722e60997fcd40064493b332e1f7a888433
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.