anthropic-api-knowledge-patch

anthropic-api-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 11 tokens per session (2,803 once invoked), scanned A, original, MIT.

A compatibility guide for Anthropic's API, which lets applications use Claude models and related platform features. It covers models, migrations, structured outputs, tools, streaming, caching, rate limits, and managed agents.

In plain words
What is it for?
Use it when building or migrating Messages API integrations, structured JSON responses, tool calls, streaming, prompt caching, model selection, rate-limit handling, or managed agents.
Why use it?
It helps developers account for API behavior, SDK types, model availability, limits, and migration concerns that may differ between versions or platforms.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it when building or migrating Messages API integrations, structured JSON responses, tool calls, streaming, prompt caching, model selection, rate-limit handling, or managed agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch
Install

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.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill anthropic-api-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

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

agentmods badge for anthropic-api-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch/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.

agentmods 80×15 button for anthropic-api-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/anthropic-api-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.02803
Opus 5.5 $0.00004 $0.01121
Sonnet 5.5 $0.00002 $0.00561
Haiku 4.5 $0.00001 $0.00280

Measured today against content hash 01c08f0a32b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

anthropic-api-knowledge-patch scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/anthropic-api-knowledge-patch/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Anthropic API Compatibility

Load this skill when implementing or migrating Anthropic API requests, SDK clients, tool loops, Managed Agents, or platform administration. The references contain request contracts, platform differences, limits, and migration details.

Reference index

Reference Topics
Models and migrations Request targets, thinking, replay, context, pricing, refusals, retention
Tools and streaming Tool versions, tool choice, eager input, stream events, beta headers
Caching and rate limits Breakpoints, TTLs, cache diagnostics, quotas, spend-cap errors
Structured outputs Format migration, SDK helpers, schemas, validation, retention
Managed Agents Sessions, permissions, networking, deployments, memory, Dreams
Platforms and lifecycle Retirements, SDKs, hosted APIs, authentication, compliance, analytics

Breaking changes and deprecations

Request fields that fail

Legacy thinking: {"type":"enabled","budget_tokens":N} returns HTTP 400 on claude-opus-4-7, claude-opus-4-8, claude-opus-5, claude-sonnet-5, claude-fable-5, and claude-mythos-5. Use adaptive thinking and optionally output_config.effort. Thinking and response text share max_tokens.

Omit temperature, top_p, and top_k when migrating to those release-5 targets. Non-default sampling values return HTTP 400, including on claude-opus-4-7. Python SDK v1.0 and later raises TypeError for these keywords. Older API targets that accept sampling controls now default top_p to 0.99; set 0.999 explicitly to preserve the previous behavior.

Assistant prefills return HTTP 400 starting with claude-opus-4-6 and claude-sonnet-4-6 and on those release-5 targets. Move formatting instructions to system or use output_config.format. Replace deprecated output_format with output_config.format; remove prefills for JSON outputs even on targets that otherwise accept prefills.

Read the full file on GitHub · 216 lines

Files

What ships with it

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

Changes

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.

  1. today Changed · +3 lines 01c08f0a32b4
  2. 3mo ago First seen · 213 lines · 11 tokens per session scan A 6a0b976254a2

Subscribe to this mod's changes

anthropic-api-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 2,803 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

anthropic-api-knowledge-patch compared with skills from other repositories

anthropic-api-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anthropic-api-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA11Claude Code
open-sourcebrowser-use/browser-useSkill123ktodayMITA101Claude Code
wegent-knowledgewecode-ai/WegentSkill897todayApache-2.0A60Claude Code, Codex
design-mcp-servercyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A62Claude Code
add-toolcyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A35Claude Code
api-contextcyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A84Claude Code
api-errorscyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A54Claude Code