API Contract Test
CommunityAutomate API contract tests end-to-end.
Authorbtabaska
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill automates the generation of deterministic API contract tests to validate API endpoints against the OpenAPI spec and frontend TypeScript types, reducing drift and speeding up integration readiness.
Core Features & Use Cases
- Automated contract test generation: Create pytest tests for API endpoints or Vitest tests for frontend calls that verify request/response shapes against the OpenAPI schema and generated clients.
- Drift detection and fast feedback: Compare implementation, OpenAPI, and frontend types to fail early on mismatches.
- End-to-end workflow: Reads handlers, OpenAPI spec, and client models to produce test files under api/tests/contracts/ or frontend/tests/contracts/.
Quick Start
Provide an endpoint (e.g., GET /v1/opportunities/search) and the target side (api or frontend) to generate the corresponding contract test file.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: API Contract Test Download link: https://github.com/btabaska/simpler-grants-documentation-automation/archive/main.zip#api-contract-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.