pact-interface-design

Define and enforce Pact interface signatures across modules.

1|1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill pact-interface-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pact-interface-design
Source: https://github.com/Pact-Community-Organization/github-marketplace/tree/main/skills/pact-interface-design
Command: npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill pact-interface-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pact interfaces are critical for modular contracts but are often hard to enforce across modules and governance boundaries. This Skill provides a structured approach to define interface contracts in Pact, ensuring signatures, capabilities, and metadata are consistently implemented and verifiable. It also guides teams on best practices for interface immutability, versioning, and exact implementation matching.

Core Features & Use Cases

  • Define signature-only interfaces (defun/defcap/defconst) to enforce exact compliance by implementers.
  • Validate cross-module implementations using strict implements checks and immutability rules.
  • Support governance-oriented patterns to version and extend interfaces without breaking upgrades.

Quick Start

Define an interface with signature-only members in a Pact file and implement it with a module that matches every signature exactly.

Frequently Asked Questions about pact-interface-design

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

FAQPage Schema
How do I enforce exact signature matching for Pact interfaces across modules?

To enforce exact signature matching for Pact interfaces, define signature-only members using defun, defcap, and defconst, then validate implementations with strict implements checks to ensure cross-module compatibility and immutability.

What is the best way to define interface contracts in Pact for governance boundaries?

Defining interface contracts in Pact for governance boundaries involves creating signature-only interfaces and using governance-oriented patterns to version and extend them without breaking upgrades across modules.

How do I validate cross-module implementations of a Pact contract?

Validating cross-module implementations of a Pact contract requires using strict implements checks and immutability rules to verify that the implementing module matches every interface signature exactly.

Can I version and extend Pact interfaces without breaking existing implementations?

Yes, you can version and extend Pact interfaces without breaking implementations by applying governance-oriented patterns that support interface immutability and safe upgrades across module boundaries.

Does a Pact interface definition require YAML frontmatter?

Yes, a Pact interface definition requires YAML frontmatter containing a name and description to ensure metadata is consistently implemented and verifiable across governance boundaries.