check-api-compat
Skill by vllm-project
Checks vLLM's OpenAI-compatible and Anthropic-compatible API behavior against the official upstream spec. It is for reviewers and developers handling bugs, PRs, or field changes on endpoints such as /v1/chat/completions and /v1/messages.
Install check-api-compat
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vllm-project/vllm /tmp/vllm && mkdir -p ~/.claude/skills && cp -r /tmp/vllm/.agents/skills/check-api-compat ~/.claude/skills/check-api-compatRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vllm-project/vllm /tmp/vllm && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vllm/.agents/skills/check-api-compat ~/.gemini/antigravity-cli/skills/check-api-compatAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells an AI assistant how to check vLLM's OpenAI-compatible and Anthropic-compatible API behavior against the official upstream specification. It applies to bugs, issues, pull requests, reviews, and questions that touch endpoints such as /v1/chat/completions, /v1/responses, /v1/embeddings, and /v1/messages. It also covers changes that add, remove, or rename fields on their request or response models. The skill states that vLLM's own code, tests, and docstrings are not evidence of correct behavior.
The workflow has several steps. The assistant names the surface, endpoint, and field, then reads vLLM's protocol and serving files. It fetches the OpenAI OpenAPI spec or the Anthropic Messages docs and compares name, type, default, and semantics. Each difference is classed as matching upstream, a vLLM extension, or an incompatibility. It is meant for developers and reviewers working on vLLM.
Written from the project's SKILL.md and checked against it.
What it can do
- Pin the questionNames the surface, endpoint path, and the field or behavior before looking anything up.
- Read vLLM's implementationPoints to the protocol, serving, and router files for each endpoint in a vLLM checkout.
- Fetch the upstream specUses the OpenAI OpenAPI spec, installed SDK types, or Anthropic Messages docs as sources.
- Compare on four axesChecks name, type, default, and semantics, plus streaming, errors, and omitted versus null.
- Classify findingsSorts each difference as matching upstream, a vLLM extension, or an incompatibility.
- Report with evidenceStates the upstream source, the vLLM file and line, and the smallest suggested fix.
What you need
- A vLLM source checkout
- Network access to fetch upstream API specs
- Python with the openai and anthropic SDKs installed, for reading their types
Try asking
- Is this /v1/chat/completions behavior a bug or intended per the upstream spec?
- What should the default for this field be on vLLM's /v1/messages endpoint?
- Check whether this PR changes request fields on /v1/responses against upstream.
Good to know
- Does not apply to vLLM-internal APIs such as the engine, scheduler, or LLM class.
- Does not apply to endpoints that have no upstream counterpart.
- A failed upstream fetch is a fetch failure, not proof that a field is absent.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/check-api-compat/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
agents/openai.yaml277 B
Alternatives to check-api-compat
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
check-api-compat: common questions
Does this skill check vLLM's own code for correct API behavior?
No. The skill says vLLM's own code, tests, and docstrings are the thing under test, so behavior is checked against the upstream spec instead.
Which endpoints does check-api-compat cover?
The skill names /v1/chat/completions, /v1/completions, /v1/responses, /v1/embeddings, and /v1/messages, along with their request and response models.
How does it treat vLLM-specific fields like vllm_xargs?
The skill treats fields with no upstream name, such as vllm_xargs and chat_template_kwargs, as intentional vLLM extensions and not as violations.
How do I install check-api-compat?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is check-api-compat free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is check-api-compat safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to check-api-compat?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
