deepseek-provider-contract

deepseek-provider-contract is a skill for Claude Code from AnastasiyaW/codex-claude-code-config. It costs 98 tokens per session (978 once invoked), scanned A, original, MIT.

A local checklist for reviewing a proposed connection to DeepSeek, an AI service, before sending it project data or secrets. It checks tool-call history, strict response formats, output limits, and what data would leave the project.

In plain words
What is it for?
Use it to validate DeepSeek tool-call fixtures, define the model and request limits, run a bounded opt-in test, record what happened, and compare it with the current provider.
Why use it?
It helps catch provider-integration errors and unsafe data handling before credentials, code, or conversation records are sent to an outside service.

Skill for Claude Code

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

Part of the claude-code-config plugin — 57 skills, 8 agents shipped together

Good fit Use it to validate DeepSeek tool-call fixtures, define the model and request limits, run a bounded opt-in test, record what happened, and compare it with the current provider.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract
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 AnastasiyaW/codex-claude-code-config --skill deepseek-provider-contract
Clone the repo
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config

Made for: Claude Code.

Or install claude-code-config, the plugin that ships this one along with the rest of its 57 skills, 8 agents.

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 deepseek-provider-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract/github.svg)](https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract)
Your own site
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract/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 deepseek-provider-contract

Your own site · 80×15
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/deepseek-provider-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 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.00098 $0.00978
Opus 5 $0.00049 $0.00489
Sonnet 5 $0.00020 $0.00196
Haiku 4.5 $0.00010 $0.00098

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

Security

Grade A, and why

deepseek-provider-contract 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/test_validate_deepseek_history.py, scripts/validate_deepseek_history.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/operational/deepseek-provider-contract/SKILL.md · 89 lines

How it starts

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

DeepSeek Provider Contract

This is a local, offline contract check. It neither reads DEEPSEEK_API_KEY nor sends code, transcripts, or secrets. A third-party harness is an implementation candidate, not a trusted route.

Use It In This Order

  1. Classify the proposed prompt/data. Private archive, credentials, customer data, and whole transcripts stay local unless the user explicitly authorizes that provider and scope.

  2. Freeze the provider model, endpoint, request budget, and fallback in the integration plan. Do not inherit defaults from a community wrapper.

  3. Save a redacted request-history fixture that explicitly declares whether the outbound request carries tools, then run:

    The fixture shape is {"outbound_request":{"tools":[...]},"messages":[...]}; use "tools": [] only for an outbound tools-free request.

    python skills/operational/deepseek-provider-contract/scripts/validate_deepseek_history.py fixture.json
    
  4. Run the provider only in a bounded, opt-in experiment. Record model, endpoint, max output, cache-usage fields, request digest, and observed result.

  5. Compare against the incumbent on the same frozen task before adding any route to a workflow. A passing history fixture proves message lifecycle only; it does not prove quality, price, availability, or data handling.

Required Invariants

  • In thinking mode with tools, preserve the provider's complete assistant message, including reasoning_content and tool_calls. Do not rebuild a reduced assistant message from content alone.
  • Each tool result has the exact prior tool_call_id.
  • While a request carries tools, retain the documented reasoning_content from prior assistant turns in its history. Do not reduce this to only the most recent tool-call turn; check the current provider documentation because model and endpoint semantics change.
  • Use strict schema only with the beta endpoint and only after validating the supported JSON Schema subset. Never call a schema "strict" merely because it looks valid locally.
  • Set output bounds explicitly and make cache hits/misses observability, not a correctness promise.

Read the full file on GitHub · 89 lines

Files

What ships with it

2 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 · +9 lines · +98 tokens per session 8b0a4debbfeb
  2. 10d ago First seen · 80 lines · 0 tokens per session scan A 000cfb88f619

Subscribe to this mod's changes

deepseek-provider-contract is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 978 once invoked, about $0.0005 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.