contract-testing

Automate API contract verification and testing with Microcks and OpenAPI/AsyncAPI specifications.

8|2|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/SebastienDegodez/skraft-plugin --skill contract-testing-sebastiendegodez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-testing
Source: https://github.com/SebastienDegodez/skraft-plugin/tree/main/plugins/skills/contract-testing
Command: npx skills add https://github.com/SebastienDegodez/skraft-plugin --skill contract-testing-sebastiendegodez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires microcks, openapi-generator, jsonschema, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of verifying and testing API contracts, saving you time and reducing the risk of errors in your application's integration.

Core Features & Use Cases

  • API Contract Verification: Automatically verify API contracts against the provided OpenAPI/AsyncAPI specifications.
  • Contract Testing: Simulate API requests and verify responses against the contract.
  • Use Case: Imagine you have a new API endpoint that needs to be tested and verified. Use this Skill to create a test case, execute it, and get feedback on whether the API conforms to the contract.

Quick Start

Use the contract-testing skill to generate test cases for your API endpoint 'eligibility-check-api'.

Frequently Asked Questions about contract-testing

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

FAQPage Schema
How do I automate API contract verification for OpenAPI and AsyncAPI specifications?

API contract verification is automated by applying Microcks alongside OpenAPI and AsyncAPI specifications. This Skill parses the provided contracts to simulate API requests and automatically verify that responses conform to the defined schema.

How do I simulate API requests to test an endpoint against an OpenAPI contract?

To simulate API requests for contract testing, you provide your endpoint name and API specifications to generate test cases. The Skill executes these cases against the target endpoint and provides feedback on whether the API conforms to the contract.

Can I use Microcks for contract testing across different stages of the API lifecycle?

Microcks can be used for contract testing across all stages of the API lifecycle, including design, testing, and delivery. It parses and verifies contracts using OpenAPI and AsyncAPI specifications throughout the development process.

What dependencies do I need to parse and verify API contracts using this approach?

To parse and verify API contracts, you need Microcks, openapi-generator, and jsonschema libraries installed. These dependencies are required to simulate requests and validate responses against the provided OpenAPI or AsyncAPI specifications.

What is the best way to verify microservice API contracts without manual integration checks?

The best way to verify microservice API contracts without manual checks is to automate the process using Microcks and OpenAPI/AsyncAPI specifications. This simulates interactions and validates responses directly against the contract to reduce integration errors.

Why does AsyncAPI contract verification require jsonschema and openapi-generator?

AsyncAPI contract verification requires jsonschema to validate the structure of message payloads and openapi-generator to parse the specifications. Microcks uses these libraries to accurately simulate API requests and verify the responses.