Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 98k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-compat

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install check-api-compat in Claude Code

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

A

No 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 →

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.

check-api-compat Install

Add to stack

Loading.