Skip to content
Skills Library
Programming · Testing

contract-testing-roster

/contract-testing-roster

Use when an agent must produce a provider-side contract test for THIS service's API and needs to know the stack adapter and whether the optional Microcks verification layer is enabled. Resolves the stack and reads the Microcks opt-in (off by default), then points to the concrete `contract-testing-<stack>` adapter. Loaded by the contract-testing-worker. A baseline in-process integration test is always produced; Microcks contract verification is an additive opt-in.

Licence
GPL-3.0
Last repository change
11.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.10.2026, without references to retired models or APIs.

Licence

GPL-3.0, otwarta.

What it does and when to use it

Use when an agent must produce a provider-side contract test for THIS service's API and needs to know the stack adapter and whether the optional Microcks verification layer is enabled. Resolves the stack and reads the Microcks opt-in (off by default), then points to the concrete `contract-testing-<stack>` adapter. Loaded by the contract-testing-worker. A baseline in-process integration test is always produced; Microcks contract verification is an additive opt-in.

Original author description

Use when an agent must produce a provider-side contract test for THIS service's API and needs to know the stack adapter and whether the optional Microcks verification layer is enabled. Resolves the stack and reads the Microcks opt-in (off by default), then points to the concrete `contract-testing-<stack>` adapter. Loaded by the contract-testing-worker. A baseline in-process integration test is always produced; Microcks contract verification is an additive opt-in.

How it works

  1. One axis (stack) + one boolean (opt-in)
  2. Resolving the opt-in (cascade)
  3. Detection -> adapter
  4. Generic source
  5. Unknown value -> stop, never guess
  6. Contract for callers
Original SKILL.md headings · 77 lines, 457 words
SKILL.md preview
---
name: contract-testing-roster
description: Use when an agent must produce a provider-side contract test for THIS service's API and needs to know the stack adapter and whether the optional Microcks verification layer is enabled. Resolves the stack and reads the Microcks opt-in (off by default), then points to the concrete `contract-testing-<stack>` adapter. Loaded by the contract-testing-worker. A baseline in-process integration test is always produced; Microcks contract verification is an additive opt-in.
---

# Contract Testing Roster (stack agnostic, opt-in Microcks)

The single place that resolves **how** a provider-side contract test is built.
A baseline in-process integration test (the app started in-memory, exercised over
real HTTP) is ALWAYS produced. A Microcks contract-verification layer is an
ADDITIVE opt-in, stacked on top — never a replacement, never a default. The
concrete harness (e.g. WebApplicationFactory, @SpringBootTest, FastAPI TestClient, supertest) and the
concrete Microcks call are owned by the per-stack adapter, NOT by this roster.

This mirrors `resolving-stack-commands`: the roster owns routing + the opt-in
read; the per-stack adapter owns the concrete wiring of both layers.

## One axis (stack) + one boolean (opt-in)

Unlike mocking, there is no exclusive strategy choice here. Only:

- **Stack** — WHICH toolchain, detected via `resolving-stack-commands`.
- **Microcks opt-in** — a boolean ADD-ON. `false` = baseline only (default);
  `true` = baseline + Microcks contract-verification layer (the adapter picks the
  stack-appropriate Microcks API).

## Resolving the opt-in (cascade)

Read the opt-in by tool-call, never from recall. Precedence, first writer wins:

1. **Explicit prompt** — the run prompt asks for Microcks contract verification.
2. **Repo instruction file** — read
   `.github/instructions/skraft.instructions.md` field
   `testing.contract.microcks`. Read ONLY the `testing.contract.*` namespace.
3. **Default** — `false`.

Read the file with a tool call (fact-that-must-be-true, S7). If absent, default.

## Detection -> adapter

Detect the stack (delegate to `resolving-stack-commands`), then resolve the
per-stack adapter. The adapter carries BOTH layers and branches on the opt-in
flag internally:

| Stack | Adapter | Status |
|---|---|---|
| .NET | `contract-testing-dotnet` | supported |
| Python | `contract-testing-python` | supported |
| React front end (exposes no API) | _none needed_ | not applicable: return `status: ok` with no file and the note `front end exposes no API`; its gateways are tested against the provider's contract through the mocking roster |
| Java | _(contract-testing-java not yet provided)_ | NOT SUPPORTED |

Adding a stack = add ONE `contract-testing-<stack>` adapter and the row here,
with zero edits to the worker or the orchestrator.

## Generic source

Both layers consume the GENERIC contract artifacts authored by the
`contract-testing` skill (OpenAPI / `.apiexamples`
/ `.apimetadata`). The roster does not duplicate that authoring.

## Unknown value -> stop, never guess

If `testing.contract.microcks` is neither `true` nor `false`, or the detected
stack has no adapter, STOP and emit a structured blocker:

```yaml
status: blocked
type: invalid_contract_optin   # | unsupported_stack
message: Could not resolve the contract-testing configuration
context:
  microcks: "maybe"
  stack: dotnet
  source: prompt | skraft.instructions.md | default
```

## Contract for callers

- Resolve `(stack)` + opt-in here; do not embed the decision in the worker.
- Baseline in-process integration test is ALWAYS produced regardless of the opt-in.
- Adding a stack = add an adapter and a row here, zero edits elsewhere.

Versions

The database has no other skills named contract-testing-roster.

Database snapshot: 13.11.2026 · package version a0f24db15736 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100mocking-strategy-roster
    Use when an agent must mock a downstream HTTP/event dependency for an integration test and needs to know WHICH mocking strategy and stack adapter to use. Resolves the mocking strategy (Microcks by default, overridable to an in-process library) and the stack, then points to the…
  • 100contract-testing-python
    Use when the contract-testing-roster resolved a Python stack for a provider-side contract test. Always provides the baseline FastAPI TestClient integration test through the app factory; when the Microcks opt-in is enabled, additionally boots the service on a real port with…
  • 100contract-testing
    Contract testing for API consumers and providers. Pact framework, Spring Cloud Contract, consumer-driven contracts, provider verification, and contract broker setup. USE WHEN: user mentions "contract testing", "Pact", "consumer-driven contract", "Spring Cloud Contract", "API…
  • 90quality-contract-testing
    Use this skill when setting up contract testing, Pact, consumer-driven contracts, provider contract verification, API compatibility, or integration testing between services. This skill enforces: consumer-driven contracts with Pact, provider-side verification, contract publishing…
  • 95contract-test
    [UDS] Guide contract testing strategy for APIs and microservices. Use when: API contracts, microservices, consumer-driven testing, provider verification. Not for: designing the API surface in the first place — use /api-design; user-visible flows through a UI — use /e2e.…
  • 90quality-integration-testing
    Use when the user asks about integration testing, component testing, API testing, database testing, test containers, wiremock, contract testing, or service-level testing. Do NOT use for: unit testing (quality-unit-testing), E2E testing (quality-e2e-testing), or contract testing…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.