api-contract-review

api-contract-review is a skill for Claude Code from TencentCloudBase/CloudBase-AI-Toolkit. It costs 54 tokens per session (1,267 once invoked), scanned A, original, MIT.

A review workflow for checking whether CloudBase cloud API wrappers, MCP tools, generated action details, and documentation still match the documented API contract.

In plain words
What is it for?
Use it to audit CloudBase integrations, separate confirmed contract bugs from guesses, and verify that API changes have suitable tests and documentation.
Why use it?
It helps catch incorrect action names, parameters, capitalization, request shapes, and missing contract tests before stale behavior ships.

Skill for Claude Code

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

Part of the cloudbase-ai-toolkit plugin — 47 skills, 3 commands, 6 agents, 2 MCP servers, 2 plugins shipped together

Good fit Use it to audit CloudBase integrations, separate confirmed contract bugs from guesses, and verify that API changes have suitable tests and documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review
About the project

CloudBase AI Toolkit is an integration layer that lets AI coding tools use Tencent CloudBase as an application backend, including databases, authentication, functions, storage, and deployments. Developers use it to have coding agents build and operate CloudBase-backed applications through skills, plugins, commands, and chat-accessible tools. The catalogue entries are the toolkit’s own skills, agents, hooks, plugins, rules, instructions, and MCP tools.

TencentCloudBase/CloudBase-AI-Toolkit · 1,138 stars · on GitHub · docs.cloudbase.net

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 TencentCloudBase/CloudBase-AI-Toolkit --skill api-contract-review
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit

Made for: Claude Code.

Or install cloudbase-ai-toolkit, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 6 agents, 2 MCP servers, 2 plugins.

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 api-contract-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review/github.svg)](https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review)
Your own site
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review/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 api-contract-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/api-contract-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,267 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.00054 $0.01267
Opus 5.5 $0.00022 $0.00507
Sonnet 5.5 $0.00011 $0.00253
Haiku 4.5 $0.00005 $0.00127

Measured 1mo ago against content hash 13b00588a9db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-contract-review 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 1mo 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.

skills/api-contract-review/SKILL.md · 138 lines

How it starts

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

API Contract Review

Review CloudBase cloud API integrations for contract correctness before the repository ships stale, guessed, or undocumented behavior.

When to use this skill

Use this skill when you need to:

  • Review CloudBase cloud API wrappers or MCP tools for outdated or incorrect action or interface names
  • Check whether request parameters, casing, nesting, or request shape drifted away from documentation
  • Audit whether a CloudBase API change is backed by the right contract tests
  • Run a periodic API correctness review before opening corrective PRs
  • Separate confirmed contract bugs from vague "maybe this API changed" speculation

Do NOT use for:

  • General code smell review without a contract-correctness question
  • Regular SDK usage that does not touch CloudBase control-plane or documented API contracts
  • Guessing undocumented behavior from naming intuition
  • Shipping a fix when the documentation still does not support the proposed action or parameter shape

Workflow

Phase 1 — Scope and evidence

  1. Read references/review-checklist.md first.
  2. Identify the review surface:
    • mcp/src/tools/*
    • related tests
    • generated action metadata
    • user-facing docs that describe the same API behavior
  3. Record the exact action, interface, or payload being reviewed before forming conclusions.

Phase 2 — Documentation-first verification

Before judging any implementation, you must read the relevant official documentation first.

Required entry points:

  • CloudBase API overview: https://cloud.tencent.com/document/product/876/34809
  • Dependency-resource API docs when relevant: https://cloud.tencent.com/document/product/876/34808
  • CloudBase Manager SDK docs before approving direct Cloud API usage: https://docs.cloudbase.net/api-reference/manager/node/introduction

Verify the documented contract, not your memory:

  • exact action or interface name
  • required and optional parameters
  • parameter casing and nesting
  • request shape
  • auth model and caller context
  • response shape, task model, and documented limits

Read the full file on GitHub · 138 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 138 lines · 54 tokens per session scan A 13b00588a9db

Subscribe to this mod's changes

api-contract-review is a skill published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,138 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,267 once invoked, about $0.0002 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.