contract-fixture-author

Automate contract schema, fixture, and test coverage maintenance.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/Vel-Labs/ClearIntent --skill contract-fixture-author
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-fixture-author
Source: https://github.com/Vel-Labs/ClearIntent/tree/main/skills/contract-fixture-author
Command: npx skills add https://github.com/Vel-Labs/ClearIntent --skill contract-fixture-author

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Contract fixture authoring keeps examples and schemas aligned with canonical authority truth.

Core Features & Use Cases

  • Maintain alignment between contract schemas and fixture data.
  • Add valid fixtures for new contract shapes and invalid fixtures for negative tests.
  • Update contract validation tests and workflow documentation to reflect changes.

Quick Start

Update or create a new valid or invalid contract fixture for a schema, then execute the contract validation scripts to verify correctness.

Frequently Asked Questions about contract-fixture-author

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

FAQPage Schema
How do I automate contract fixture and schema validation in my development pipeline?

You can automate contract fixture and schema validation by updating contract schemas, fixtures, and tests, then running validation scripts like scripts/validate-contracts.ts to verify correctness and alignment automatically.

What is the best way to keep contract schemas and fixture data aligned?

Keeping contract schemas and fixture data aligned requires automating the maintenance of contract fixtures and schemas, adding valid fixtures for new shapes and invalid fixtures for negative tests to ensure fail-safe behavior.

How do I create invalid contract fixtures for negative tests?

Creating invalid contract fixtures for negative tests involves adding fixture data that deliberately violates the contract schema shapes, then executing contract validation scripts to verify the tests fail correctly and safely.

Do I need npm scripts to run contract validation and typechecking?

Yes, you need npm scripts to run contract validation and typechecking, executing scripts such as scripts/validate-contracts.ts to keep fixtures in sync and verify correctness across your development pipeline.

Why does my contract fixture validation fail after updating schemas?

Contract fixture validation fails after updating schemas because existing fixtures may no longer match the new canonical authority truth, requiring you to update contract fixtures and tests to restore alignment.

Can I use contract validation tests to audit fail-safe behavior across pipelines?

Yes, contract validation tests provide auditability and fail-safe behavior across development pipelines by validating both valid and invalid fixtures against contract schemas to ensure continuous alignment.