OpenParable
Skip to content
← Back to skills

Contract Test

Testing & Quality
contract-test

Contract Test is an Agent Skill for testing & quality published in the Archive228/loopkit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Test the boundary between two systems by the contract, not the implementation. Use for APIs, integrations, and shared interfaces.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Archive228/loopkit/blob/HEAD/skills/contract-test/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/contract-test, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Contract Test

Test what the two sides AGREED on, so either can change internals without breaking the other.

  • Assert the shape: required fields, types, status codes, error format — not internal logic.
  • Cover the contract's edges: missing optional fields, the documented error responses, pagination bounds, versioning.
  • For consumers: test against the real contract (recorded/real responses), not a mock you wrote to match your assumptions — that mock drifts and lies.
  • One source of truth for the schema; both sides validate against it. A green unit test with a wrong mock is worse than no test. Pin the contract.