Contract test generator

From a5c-ai/babysitter · View interactive version

Contract test generator is an AI agent skill from the GitHub repository a5c-ai/babysitter. Generate contract tests for API migrations with consumer-driven contracts and provider verification

How to use this skill

Skill file

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:

Capabilities

1. Consumer Contract Generation

2. Provider Verification

3. Schema Validation

4. Breaking Change Detection

5. Mock Server Generation

6. Contract Versioning

Tool Integrations

| Tool | Purpose | Integration Method |

|------|---------|-------------------|

| Pact | Consumer-driven contracts | CLI |

| Spring Cloud Contract | Java contracts | CLI |

| Dredd | API validation | CLI |

| Prism | Mock server | CLI |

| WireMock | Mock server | CLI |

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

Related Skills

Related Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.