oc-claude-api

oc-claude-api is a skill for Claude Code from asfbay-bit/opchain-skills. It costs 119 tokens per session (4,767 once invoked), scanned A, original, Apache-2.0.

A development workflow for applications that use the Claude API or Anthropic software library. It covers how the app sends requests, uses tools, streams responses, caches prompts, and moves between Claude model versions.

In plain words
What is it for?
Use it to build chatbots, data-extraction tools, agents, or AI evaluation tools; design tool use and batching; improve prompt-cache use; and migrate code when Claude models change.
Why use it?
It helps keep the request layer consistent while building, debugging, or updating an application that depends on Claude.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the opchain plugin — 36 skills, 16 commands, 4 hooks shipped together

Good fit Use it to build chatbots, data-extraction tools, agents, or AI evaluation tools; design tool use and batching; improve prompt-cache use; and migrate code when Claude models change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asfbay-bit/opchain-skills/oc-claude-api
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 asfbay-bit/opchain-skills --skill oc-claude-api
Clone the repo
git clone --depth 1 https://github.com/asfbay-bit/opchain-skills

Made for: Claude Code.

Or install opchain, the plugin that ships this one along with the rest of its 36 skills, 16 commands, 4 hooks.

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 oc-claude-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-claude-api/github.svg)](https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-claude-api)
Your own site
<a href="https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-claude-api"><img src="https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-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.

agentmods 80×15 button for oc-claude-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-claude-api"><img src="https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-claude-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,767 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.
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.00119 $0.04767
Opus 5.5 $0.00048 $0.01907
Sonnet 5.5 $0.00024 $0.00953
Haiku 4.5 $0.00012 $0.00477

Measured 2d ago against content hash 59b1cff4fa2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oc-claude-api 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 2d 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.

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/opchain/skills/oc-claude-api/SKILL.md · 387 lines

How it starts

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

Claude API

On first invocation, read references/orchestrator.md and follow its welcome protocol.

First-party harness for building, debugging, and optimizing applications on the Claude API / Anthropic SDK. Owns model routing, prompt caching (on by default), tool-use design, batch/streaming patterns, and version-migration playbooks. Apps built or touched through this skill ship prompt caching from the first commit and carry token-ceiling guardrails per phase.

This is the Claude-in-the-loop counterpart to the rest of the pipeline. If you're building an LLM feature — a chatbot, an extraction pipeline, an agent, an LLM judge — this skill owns the request layer: which model, how it's cached, how tools are wired, and how the code moves when a model version bumps. It does not own agent topology or harness loops (that's oc-agent-forge), retrieval (oc-rag-forge), or prompt versioning + eval datasets (oc-prompt-ops). It owns the Claude API surface those skills build on.

Accuracy contract. Model IDs, prices, parameters, and breaking changes in this skill and its reference docs are sourced from the Claude Code built-in claude-api skill (when present), not from memory. It is not bundled with opchain. When in doubt about a model ID, a price, a beta header, or a deprecated parameter, invoke claude-api rather than inventing one; if it is not installed, query the Models API (client.models.list() / client.models.retrieve(id), see references/model-routing.md § Live capability lookup). The most recent models are Fable 5 (claude-fable-5), Opus 4.8 (claude-opus-4-8), Sonnet 4.6 (claude-sonnet-4-6), and Haiku 4.5 (claude-haiku-4-5).

How This Skill Fits the Build Pipeline

APP-ARCHITECT (planning)                 TRI-DEV (building)
  Phase 2: Spec ──"AI app?"──▶ oc-claude-api model-routing decision tree
                                         │  routing → checkpoint key_decisions;
                                         │  app-architect folds it into
                                         │  11-ai-architecture.md
                                         ▼
                          oc-agent-forge (topology/loop) ──reads model routing──┐
                          oc-rag-forge   (retrieval)      ──reads model routing──┤
                          oc-prompt-ops  (eval/versioning)──reads model routing──┘

Read the full file on GitHub · 387 lines

Files

What ships with it

6 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. 2d ago Changed 59b1cff4fa2a
  2. 24d ago Changed 0ff6258d3bf8
  3. 27d ago Changed c67dbc13aff6
  4. 2mo ago Changed af8d29cf7eeb
  5. 2mo ago Changed 65487ca5bf1d
  6. 2mo ago Changed 916c7779134f
  7. 2mo ago Changed · +18 lines · +14 tokens per session ba3d5d9d8151
  8. 3mo ago Changed 1fdd59dc9fc4
  9. 3mo ago First seen · 369 lines · 105 tokens per session scan A 6f2409cf893d

Subscribe to this mod's changes

oc-claude-api is a skill published in the GitHub repository asfbay-bit/opchain-skills (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 119 tokens to every session and 4,767 once invoked, about $0.0005 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-31.

Related

oc-claude-api compared with skills from other repositories

oc-claude-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oc-claude-apiasfbay-bit/opchain-skillsSkill03d agoApache-2.0A119Claude Code
gemini-api-devgoogle-gemini/gemini-skillsSkill5.1kyesterdayApache-2.0A96Claude Code
openrouter-ai-models-guidenirholas/three.wsSkill289todayApache-2.0A64Claude Code, Codex
cloudflare-workers-aisecondsky/claude-skillsSkill2574d agoMITA39Claude Code
blueprint-from-collection-actionsreceptron/mulmoterminalSkill287todayMITA34Claude Code, Codex
blueprint-from-collection-actionsreceptron/mulmoterminalSkill287todayMITA34Claude Code, Codex
blueprint-from-collection-actionsreceptron/mulmoterminalSkill287todayMITA31Claude Code, Codex