agentsclimarketplace

Contract test generator

Skill a5c-ai/babysitter/library/specializations/code-migration-modernization/skills/contract-test-generator

Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration

Install
npx -y skills add a5c-ai/babysitter --skill contract-test-generator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Generate contract tests for API migrations with consumer-driven contracts and provider verification

SKILL.md

2.7 KB, as published. Nobody here has run it

Contract Test Generator Skill

Generates contract tests for API migrations, supporting consumer-driven contracts, provider verification, and breaking change detection.

Purpose

Enable API contract testing for:

  • Consumer contract generation
  • Provider verification
  • Schema validation
  • Breaking change detection
  • Mock server generation

Capabilities

1. Consumer Contract Generation

  • Generate from API usage
  • Extract from tests
  • Build from specs
  • Support multiple formats

2. Provider Verification

  • Verify against contracts
  • Test all consumers
  • Check compatibility
  • Document failures

3. Schema Validation

  • Validate request schemas
  • Check response schemas
  • Verify data types
  • Enforce constraints

4. Breaking Change Detection

  • Detect field removals
  • Find type changes
  • Identify required additions
  • Flag compatibility issues

5. Mock Server Generation

  • Generate from contracts
  • Support stub responses
  • Handle scenarios
  • Enable development isolation

6. Contract Versioning

  • Track contract versions
  • Manage compatibility
  • Support migrations
  • Document changes

Tool Integrations

ToolPurposeIntegration Method
PactConsumer-driven contractsCLI
Spring Cloud ContractJava contractsCLI
DreddAPI validationCLI
PrismMock serverCLI
WireMockMock serverCLI

Output Schema

{
  "generationId": "string",
  "timestamp": "ISO8601",
  "contracts": [
    {
      "consumer": "string",
      "provider": "string",
      "interactions": [
        {
          "description": "string",
          "request": {},
          "response": {}
        }
      ]
    }
  ],
  "verification": {
    "passed": "boolean",
    "results": []
  },
  "artifacts": {
    "contractFiles": [],
    "mockServerConfig": "string"
  }
}

Integration with Migration Processes

  • api-modernization: Contract verification
  • monolith-to-microservices: Service contracts

Related Skills

  • openapi-generator: Spec generation
  • api-compatibility-analyzer: Breaking changes

Related Agents

  • regression-detector: Regression prevention
  • cross-team-integrator: Contract coordination

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.