contract-validation

Validate frontend-backend API contracts for schema and endpoint consistency.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/git-tao/taotang-website --skill contract-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-validation
Source: https://github.com/git-tao/taotang-website/tree/main/.claude/skills/contract-validation
Command: npx skills add https://github.com/git-tao/taotang-website --skill contract-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill validates frontend-backend API contracts to ensure they remain synchronized during changes to endpoints or service interfaces.

Core Features & Use Cases

  • Schema alignment: backend response shapes must match frontend TypeScript interfaces.
  • Endpoint existence: frontend API calls must have corresponding backend routes.
  • Consistency enforcement: maintains a single source of truth for API contracts across stacks and PR checks.

Quick Start

Run the contract-validation checks whenever you modify API endpoints or frontend service calls to guarantee alignment and prevent regressions.

Frequently Asked Questions about contract-validation

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

FAQPage Schema
How do I keep frontend and backend API contracts in sync?

To keep frontend and backend API contracts in sync, you can run contract-validation checks whenever modifying API endpoints or frontend service calls. This enforces schema consistency and ensures backend response shapes match frontend TypeScript interfaces.

How do I validate endpoint existence for frontend API calls?

Validating endpoint existence requires checking that every frontend API call has a corresponding backend route. The contract-validation workflow automates this verification to prevent calls to missing backend routes.

What is the best way to enforce schema consistency across stacks during code review?

Enforcing schema consistency across stacks is best achieved by maintaining a single source of truth for API contracts and integrating contract-validation checks into your PR workflow to catch regressions automatically.

When do I need to run API contract validation checks?

You need to run API contract validation checks whenever you modify API endpoints, service interfaces, or any change that touches frontend calls or backend responses to guarantee alignment.

Does contract validation work with TypeScript interfaces and backend response shapes?

Yes, contract validation directly compares backend response shapes against frontend TypeScript interfaces. It ensures that any modifications to service interfaces maintain strict schema alignment between the two stacks.