llm-cli-gateway: Skill for Claude Code

.agents/skills/provider-claude/SKILL.md

provider-claude is a skill for Claude Code from verivus-oss/llm-cli-gateway. It costs 67 tokens per session (2,007 once invoked), scanned A, original, MIT.

A maintenance guide for keeping a gateway's Claude Code integration aligned with Anthropic's command-line program. It tracks changes to flags, output, permissions, sessions, and models.

In plain words
What is it for?
Checking upstream Claude Code releases, investigating contract drift, and maintaining the integration's central compatibility definition.
Why use it?
It helps detect when an updated Claude Code release no longer matches the gateway's expected rules, before requests fail or behave differently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

This is verivus-oss/llm-cli-gateway's own configuration. It tells Claude Code how to work on llm-cli-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-cli-gateway configures →

Part of the llm-gateway plugin — 24 skills, 4 commands, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to verivus-oss/llm-cli-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/verivus-oss/llm-cli-gateway/main/.agents/skills/provider-claude/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/verivus-oss/llm-cli-gateway

Made for: Claude Code.

Or install llm-gateway, the plugin that ships this one along with the rest of its 24 skills, 4 commands, 2 MCP servers.

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 provider-claude

README.md
[![agentmods](https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-claude/github.svg)](https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-claude)
Your own site
<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-claude"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-claude/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 provider-claude

Your own site · 80×15
<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-claude"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-claude.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,007 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.00067 $0.02007
Opus 5 $0.00034 $0.01004
Sonnet 5 $0.00013 $0.00401
Haiku 4.5 $0.00007 $0.00201

Measured 5d ago against content hash c0b7a225376e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

provider-claude 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 5d 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.

.agents/skills/provider-claude/SKILL.md · 151 lines

How it starts

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

Provider: Claude Code CLI

Process guidance for keeping the gateway's Claude (claude) integration aligned with the upstream CLI. This skill does not define argv/env behaviour; the single mechanical source of truth is UPSTREAM_CLI_CONTRACTS.claude in src/upstream-contracts.ts, enforced by validateUpstreamCliArgs / validateUpstreamCliEnv. Never re-encode flags, output modes, permission modes, or session rules here or in TOML.

Identity

Field Value
CliType claude
Executable claude
Package @anthropic-ai/claude-code (npm)
Changelog https://code.claude.com/docs/en/changelog.md
Install docs https://code.claude.com/docs/en/overview
Watch categories flags, output-formats, permission-modes, session-resume, models

These values mirror UPSTREAM_CLI_CONTRACTS.claude.upstreamMetadata and docs/upstream/provider-sources.dag.toml ([providers.claude]). The TypeScript metadata is authoritative; the TOML is scanner input only.

When to use

  • An Anthropic Claude Code release lands and you need to check for contract drift.
  • A claude request fails the upstream contract check before spawn.
  • npm run upstream:scan -- --live reports a change on the Claude changelog.

How LLM agents should use Claude through the gateway

  1. Discover the live gateway/provider surface before relying on provider-specific controls:
    provider_tool_capabilities({cli:"claude"})
    
    For a cached read-only resource, use provider-tools://claude.
  2. Use claude_request for normal turns and claude_request_async for long-running review, implementation, or analysis. Sync calls may auto-defer; poll llm_job_status and fetch with llm_job_result when that happens.
  3. Omit model unless the caller explicitly asked for a specific variant; the gateway resolves the configured Claude default.
  4. For review or code-reading tasks, keep tool access available. Claude supports allowedTools, disallowedTools, and tools, but do not pass an empty allowlist for reviews. Under mcp_managed, non-empty allowedTools or tools is a high-risk managed input that requires approval plus LLM_GATEWAY_APPROVAL_ALLOW_BYPASS=1, but remains bounded.
  5. Use mcpServers only for gateway-known MCP servers. Under legacy approval, strictMcpConfig defaults to false; set it to true when missing MCP access should fail fast. Under mcp_managed, the gateway forces strictMcpConfig:true, so Claude uses only the generated configuration and only provisioned gateway-owned local definitions are eligible. Dynamic npx, ambient-PATH, and Codex-config overrides remain legacy-only; a caller-supplied false cannot weaken that boundary.
  6. Prefer approvalStrategy:"mcp_managed" over raw dangerouslySkipPermissions. Under managed approval, a direct dangerouslySkipPermissions or permissionMode:"bypassPermissions" request is honored only with an explicit caller request, approval-manager approval, and LLM_GATEWAY_APPROVAL_ALLOW_BYPASS=1. Settings or setting sources, agents, native forks, plugins, added directories, non-empty systemPrompt / appendSystemPrompt, prompt-file controls (systemPromptFile / appendSystemPromptFile), safeMode:true, bare:true, and debugFile are high-risk managed inputs: they require approval and the operator setting, but remain bounded and do not select full permission on their own. A gateway-created worktree is also a high-risk managed input under the same conditions.
  7. Use createNewSession, sessionId, or continueSession for real Claude continuity. Under mcp_managed, native continuation is also a high-risk input that requires approval plus the operator setting but remains bounded. Claude also supports structured output via outputFormat and jsonSchema.
  8. Select local repository work with workingDir, a verified registered workspace, or gateway worktree. An unscoped CLI child uses a fresh neutral temporary cwd, not the gateway repository. A cwd-scoped continuation needs a stable selected target.
  9. Claude's ordinary print path, including promptParts without effective cache control, carries the prompt in argv. Oversized UTF-8 input on that path fails before spawn as non-retryable input_too_large; the gateway does not truncate instructions. Effective cache-control requests require outputFormat:"stream-json" and carry the assembled content blocks through stream-json stdin instead. All other caller-controlled argv values are admitted in their final encoded form before spawn. Embedded NUL bytes return non-retryable invalid_input without exposing the rejected value. The stdin branch completes only after the full payload write callback succeeds; a clean child exit with closed or pending delivery is a fixed non-sensitive failure.

Read the full file on GitHub · 151 lines

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. 5d ago Changed c0b7a225376e
  2. 10d ago First seen · 151 lines · 67 tokens per session scan A 8c2d47aad131

Subscribe to this mod's changes

provider-claude is a skill published in the GitHub repository verivus-oss/llm-cli-gateway (15 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 2,007 once invoked, about $0.0003 per session on Opus 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.