schema-contract-governance

Select and enforce contract layering strategies for data schemas.

3|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Ilenburg1993/chatgpt-docker-puppeteer --skill schema-contract-governance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema-contract-governance
Source: https://github.com/Ilenburg1993/chatgpt-docker-puppeteer/tree/main/.github/skills/schema-contract-governance
Command: npx skills add https://github.com/Ilenburg1993/chatgpt-docker-puppeteer --skill schema-contract-governance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a clear framework for deciding and enforcing the appropriate contract layering strategy within a repository, preventing inconsistencies and ensuring maintainability.

Core Features & Use Cases

  • Contract Layer Selection: Guides decisions on when to use JSDoc, .d.ts files, JSON Schema, Zod, or ts.server.protocol.
  • Standard Enforcement: Helps maintain a consistent approach to defining and managing data contracts across different parts of a project.
  • Use Case: When introducing a new API or data structure, this skill helps determine if simple JSDoc is sufficient, or if a more formal contract like JSON Schema or Zod is required for better maintainability and validation.

Quick Start

Use the schema-contract-governance skill to decide on the best contract layer for a new report schema.

Frequently Asked Questions about schema-contract-governance

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

FAQPage Schema
How do I choose between Zod and JSON Schema for API data contracts?

To choose between Zod and JSON Schema for data contracts, evaluate whether you need TypeScript-native runtime validation or framework-agnostic schema definitions. This governance skill guides that selection to maintain consistency.

When do I need formal schema definitions instead of just JSDoc?

You need formal schema definitions instead of JSDoc when introducing new APIs or shared data structures that require runtime validation and strict maintainability. JSDoc suffices only for simple, non-validated type hints.

What is the best way to enforce consistent type definitions across a TypeScript repository?

The best way to enforce consistent type definitions is applying a contract layering strategy using .d.ts files, Zod, or JSON Schema based on data requirements. This ensures appropriate abstraction levels and maintainability.

Can I use this schema governance strategy for shared types and report schemas?

Yes, you can use this schema governance strategy for shared types and report schemas. It addresses scenarios involving data contracts for APIs, reports, and runtime validation to ensure clarity and consistency.

Why does my repository have inconsistent data contracts and validation logic?

Your repository has inconsistent data contracts because it lacks a governed layering strategy for selecting between JSDoc, .d.ts files, JSON Schema, and Zod. Enforcing a standard approach prevents these inconsistencies.