ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Verify API contracts between services to ensure compatibility and prevent breaking changes. Use for contract testing, Pact, API contract validation, schema validation, and consumer-driven contracts.
Claude Code
$ npx -y skills add aj-geddes/useful-ai-prompts --skill api-contract-testing --agent claude-code
Codex
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a codex -y
Cursor
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a cursor -y
Gemini CLI
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a gemini-cli -y
GitHub Copilot
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a github-copilot -y
OpenCode
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a opencode -y
Windsurf
$ npx skills add aj-geddes/useful-ai-prompts --skill api-contract-testing -a windsurf -y
name: api-contract-testing description: > Verify API contracts between services to ensure compatibility and prevent breaking changes. Use for contract testing, Pact, API contract validation, schema validation, and consumer-driven contracts.
Contract testing verifies that APIs honor their contracts between consumers and providers. It ensures that service changes don't break dependent consumers without requiring full integration tests. Contract tests validate request/response formats, data types, and API behavior independently.
Minimal working example:
// tests/pact/user-service.pact.test.ts
import { PactV3, MatchersV3 } from "@pact-foundation/pact";
import { UserService } from "../../src/services/UserService";
const { like, eachLike, iso8601DateTimeWithMillis } = MatchersV3;
const provider = new PactV3({
consumer: "OrderService",
provider: "UserService",
port: 1234,
dir: "./pacts",
});
describe("User Service Contract", () => {
const userService = new UserService("http://localhost:1234");
describe("GET /users/:id", () => {
test("returns user when found", async () => {
await provider
.given("user with ID 123 exists")
.uponReceiving("a request for user 123")
.withRequest({
method: "GET",
path: "/users/123",
headers: {
// ... (see reference guides for full implementation)Detailed implementations in the `references/` directory:
| Guide | Contents | |---|---| | [Pact for Consumer-Driven Contracts](references/pact-for-consumer-driven-contracts.md) | Pact for Consumer-Driven Contracts | | [OpenAPI Schema Validation](references/openapi-schema-validation.md) | OpenAPI Schema Validation | | [JSON Schema Validation](references/json-schema-validation.md) | JSON Schema Validation | | [REST Assured for Java](references/rest-assured-for-java.md) | REST Assured for Java | | [Contract Testing with Postman](references/contract-testing-with-postman.md) | Contract Testing with Postman | | [Pact Broker Integration](references/pact-broker-integration.md) | Pact Broker Integration |
488 production-ready AI prompts, all following a standardized template with validated quality gates. Transform ChatGPT, Claude, and other AI assistants into expert consultants.
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and…
Implement Role-Based Access Control (RBAC), permissions management, and authorization policies. Use when building secure access…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard navigation, and a11y testing. Use when…
Test web applications for WCAG compliance and ensure usability for users with disabilities. Use for accessibility test, a11y,…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate user stories, manage sprint backlog,…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident coordination. Use when setting up…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…