api-contract-qa

Validate live API responses against api-contracts-[feature].md contracts using Chrome DevTools MCP.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/Nikhil-Chopra-7/claude-frontend-skills --skill api-contract-qa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-contract-qa
Source: https://github.com/Nikhil-Chopra-7/claude-frontend-skills/tree/main/api-contract-qa
Command: npx skills add https://github.com/Nikhil-Chopra-7/claude-frontend-skills --skill api-contract-qa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates that runtime API responses conform to the TypeScript contracts generated by api-mapper, catching contract drift after frontend-backend integration.

Core Features & Use Cases

  • Capture live API responses using Chrome DevTools MCP and compare them to api-contracts-*.md.
  • Validate the API envelope (success, data, message, requestId) and the presence and types of fields.
  • Produce a contract QA report with endpoint-by-endpoint results and actionable feedback for the backend team.

Quick Start

Run the API Contract QA workflow after connecting the frontend to the backend and begin validating live API responses against the contracts.

Frequently Asked Questions about api-contract-qa

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate live API responses against TypeScript contracts?

Validate live API responses by capturing network traffic with Chrome DevTools MCP and comparing it against api-contracts-*.md files to detect frontend-backend integration drift. The process checks envelope structures and field types, outputting a Markdown QA report.

What is API contract drift and how do I catch it after frontend integration?

API contract drift occurs when runtime backend responses no longer match frontend TypeScript definitions. Catch this drift by matching live network requests to proxy routes and validating the response envelope, field presence, and data types against documented contracts.

How do I generate a QA report for API mismatches to share with the backend team?

Generate a QA report by capturing live API calls and checking them against api-contracts-[feature].md files. The output is a Markdown report with endpoint-by-endpoint results, actionable alignment guidance, and severity labels like BLOCKER, WARNING, and INFO.

Can I validate API response envelopes and field types using Chrome DevTools?

Yes, you can validate API response envelopes using Chrome DevTools MCP to capture live traffic. The validation process checks the success, data, message, and requestId fields, verifying their presence and types against the defined TypeScript contracts.

Does this API validation process work with frontend proxy routes?

Yes, the API validation process works by matching network requests to frontend proxy routes such as /api/backendProxy. It captures the live responses passing through these routes and validates them against the expected contract fields and types.

What is the best way to flag API response mismatches for backend alignment?

The best way to flag API response mismatches is to validate live traffic against api-contracts-*.md files and generate a Markdown report. This report uses severity labels like BLOCKER, WARNING, and INFO to prioritize backend alignment tasks effectively.