api-contract-review
БесплатноБез исполняемых скриптовНе проверенUse when auditing CloudBase cloud API wrappers, MCP tools, generated action metadata, or related docs for outdated or incorrect action names, parameters…
от TencentCloudBase★ 1 172 звезды на 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
- Read
references/review-checklist.mdfirst. - Identify the review surface:
mcp/src/tools/*- related tests
- generated action metadata
- user-facing docs that describe the same API behavior
- 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
If the docs do not clearly support the action, parameter, or behavior, treat the implementation as unverified and stop short of guessing.
Internal parameters
Some parameters are internal to Tencent Cloud and not publicly documented. These parameters are valid but will not appear in the official API documentation.
Known internal parameters:
EnvTypesinDescribeEnvs— filters environments by type (e.g.,["weda", "baas"]). This parameter is not in the public documentation but is accepted by the backend.
When you encounter a parameter that:
- Does not appear in official documentation
- But is confirmed by the team as valid internal behavior
Mark it as an internal parameter in your review report, not as a contract bug.
Internal parameters
Some parameters are internal to Tencent Cloud and not publicly documented. These parameters are valid but will not appear in the official API documentation.
Known internal parameters:
EnvTypesinDescribeEnvs— filters environments by type (e.g.,["weda", "baas"]). This parameter is not in the public documentation but is accepted by the backend.
When you encounter a parameter that:
- Does not appear in official documentation
- But is confirmed by the team as valid internal behavior
Mark it as an internal parameter in your review report, not as a contract bug.
Phase 3 — Repository cross-check
- Compare implementation, tests, generated metadata, and user-facing docs against the documented contract.
- Mark each mismatch as one of:
- outdated action or interface name
- wrong parameter mapping
- wrong parameter casing or nesting
- undocumented request shape
- missing contract test
- stale public documentation
- Prefer nearby targeted tests over broad assumptions.
Phase 4 — Escalation and follow-through
- If the contract bug is confirmed and the fix is low-risk, prepare the code, test, and doc updates needed for a focused PR.
- Any change to a CloudBase cloud API wrapper or call is incomplete without tests that would fail on the previous wrong contract.
- If the issue is serious but still ambiguous, write a report and open an issue instead of shipping a guessed fix.
- Route broad code hygiene findings to
codebase-audit. Route open-PR repair work topr-review-fixafter the contract finding is confirmed.
Routing
| Task | Read |
|---|---|
| Review CloudBase API contract correctness | references/review-checklist.md |
| Run a broad code audit after contract review | codebase-audit |
| Repair an already-open PR after confirming the contract fix | pr-review-fix |
Evaluation prompts
Should-trigger
- Audit
mcp/src/toolsfor CloudBase API actions whose parameter casing or nesting no longer matches the official docs. - Review this MCP tool and tell me whether it guessed a CloudBase action name instead of proving it from documentation.
Установить api-contract-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл api-contract-review?
Use when auditing CloudBase cloud API wrappers, MCP tools, generated action metadata, or related docs for outdated or incorrect action names, parameters, casing, request shapes, or missing contract tests, especially during periodic quality review or before preparing corrective PRs.
Как установить скилл api-contract-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-contract-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic