integration-contract-safety

Automate contract safety for REST APIs, webhooks, and event schemas.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lgerard314/global-plugin --skill integration-contract-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-contract-safety
Source: https://github.com/lgerard314/global-plugin/tree/main/plugin/skills/integration-contract-safety
Command: npx skills add https://github.com/lgerard314/global-plugin --skill integration-contract-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevent silent breaking changes across service boundaries by governing every point where code crosses a team or service line: REST/HTTP APIs, webhooks, async event payloads, and machine-readable schema files. It prescribes how to distinguish additive from breaking changes, version and sign payloads, and keep contract tests wired in CI so breakage is caught before deployment.

Core Features & Use Cases

  • Cross-service contract governance: ensures machine-readable contracts for public APIs and event schemas, with versioning and deprecation signals.
  • Webhook security and signing: enforces payload signing, signature verification, and robust handling of unknown schema versions.
  • CI/CD contract testing: runs contract tests (Pact or schema-driven tests) on every push and blocks merges on failure.
  • Migration & deprecation guidance: provides a structured process for producer migrations and consumer adaptation with deprecation signaling.

Quick Start

Set up the contract-safety checks in CI to validate API contracts, webhook signatures, and event schemas on every push.

Frequently Asked Questions about integration-contract-safety

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

FAQPage Schema
How do I prevent breaking changes in cross-service APIs and webhooks?

To prevent breaking changes in cross-service APIs, enforce machine-readable contracts like OpenAPI or JSON Schema and run CI-based contract tests on every push to catch breakages before deployment. This governs versioning, deprecation signals, and consumer migrations across service boundaries.

What is contract testing and when should I use it for event schemas?

Contract testing validates interactions between services using machine-readable schemas to prevent silent failures. You should use it for REST APIs, webhook payloads, and async event schemas whenever code crosses a team or service boundary, ensuring signature verification and schema compatibility.

How do I verify webhook signatures and handle unknown schema versions?

Verify webhook signatures by enforcing payload signing and validating signatures against expected keys before processing. Handle unknown schema versions by implementing robust versioning and deprecation signaling, allowing consumers to adapt gracefully to new event payload structures.

Does this contract testing approach work with Pact and OpenAPI schemas?

Yes, this approach supports running Pact or schema-driven contract tests in CI pipelines. It works with OpenAPI and JSON Schema files to validate REST APIs, webhook payloads, and event schemas, blocking merges automatically whenever contract validation fails.

What is the best way to manage API versioning and consumer deprecation?

The best way to manage API versioning is to maintain machine-readable contracts with explicit deprecation signals. This provides a structured process for producer migrations and consumer adaptation, ensuring additive changes are distinguished from breaking changes across service boundaries.

Why do my contract tests fail when event payloads change across services?

Contract tests fail when event payload changes break the machine-readable schema or signature verification. Running schema-driven tests or Pact in CI catches these cross-service boundary violations before deployment, preventing silent breaking changes from reaching production.