api-contract-testing

Probes HTTP endpoints with curl and verifies responses against declared API contracts.

39|6|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/vladkesler/initrunner --skill api-contract-testing-vladkesler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-contract-testing
Source: https://github.com/vladkesler/initrunner/tree/main/examples/roles/integration-tester/skills/api-contract-testing
Command: npx skills add https://github.com/vladkesler/initrunner --skill api-contract-testing-vladkesler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Curl-based HTTP endpoint testing is time-consuming and error-prone when validating status codes, headers, and payload conformance to contracts across APIs. This skill provides a lightweight, repeatable method to assert API contracts using curl and inline checks.

Core Features & Use Cases

  • Probing endpoints and extracting status codes with curl.
  • Validating response bodies against inline JSON checks and optional OpenAPI schemas.
  • Timing and payload delivery to simulate real requests in CI/CD.

Quick Start

Use this skill to validate an API endpoint against its contract by making a curl request and asserting the expected status, headers, and payload.

Frequently Asked Questions about api-contract-testing

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

FAQPage Schema
How do I validate API endpoint responses against contracts using curl?

To validate API endpoint responses against contracts using curl, this Skill probes HTTP endpoints and verifies status codes, headers, payloads, and schema conformance against declared contracts for RESTful services.

What is API contract testing and how does it work with HTTP requests?

API contract testing verifies that HTTP request responses conform to declared schemas and expected values. This Skill applies inline JSON checks and optional OpenAPI schema validation to curl responses during development and integration.

Can I validate OpenAPI schemas and inline JSON payloads with curl responses?

Yes, you can validate OpenAPI schemas and inline JSON payloads with curl responses. This Skill extracts status codes and response bodies from curl requests to assert payload conformance to declared API contracts.

How do I automate API validation in CI/CD using curl and deterministic test scripting?

To automate API validation in CI/CD, this Skill uses deterministic test scripting with curl to simulate real requests, ensuring repeatable results for status codes, headers, and payloads in production-like validation environments.

Does curl-based API contract testing work for integration tests and production-like validation?

Yes, curl-based API contract testing works for integration tests and production-like validation. This Skill provides a lightweight, repeatable method to assert API contracts across RESTful services during development and production stages.

What is the best way to check HTTP status codes and headers against declared API contracts?

The best way to check HTTP status codes and headers against declared API contracts is using curl-based probing combined with inline JSON checks, ensuring response payloads and headers match expected schemas deterministically.