/polymath-qa:integration-contractfrom polymath-qa
Design integration/contract tests for a service boundary — consumer-driven contracts, stub-vs-hit, fixtures, failure modes. Boundary tests, not unit tests (unit-tests) or the plan (test-strategy).
Ships in polymath-qa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Test the seams between components and services — where unit tests can't reach and full e2e is too slow and flaky.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-qa:integration-contract.This designs boundary tests. It is not unit testing (polymath-qa:unit-tests), the cross-layer plan (polymath-qa:test-strategy), or smell review (polymath-qa:test-smell).
A test plan per boundary, then the test files written in the repo's conventions:
Boundary: orders-service → payments-api (we own the consumer)
Interaction Stub/hit Why Tests
POST /v1/charges stub third-party, nondeterministic contract: request/response schema pinned (Pact)
failure: timeout 2s → order stays PENDING, retried
failure: 5xx → no double charge on retry (idempotency key)
failure: malformed body → 502 to caller, alert logged
orders DB (Postgres) hit owned; testcontainers postgres:16 partial write: crash between insert + outbox → no orphan
order.created event (Kafka) hit owned; testcontainers kafka contract: event schema v3 validated against registry
Fixtures: per-test schema + truncate on teardown; no shared rows.
Run: make test-integration (needs Docker)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-qa6 skills in this plugin
/assertion-qualityReview test assertions — assert behavior not implementation; kill snapshot/tautological checks; one reason-to-fail per test; improves existing tests, not authoring them (unit-tests)./coverage-gapReview a diff for missing test coverage; pairs every changed behavior with an existing test or a flagged gap plus a recommended layer; finds gaps, not authoring (unit-tests)./test-smellDetect test smells/anti-patterns — over-mocking, fragile assertions, slow setup, flaky timing; flag each with its layer and a refactor. Reviews existing tests, not authoring them (unit-tests).Other plugins' skills for the same job