contract-test-engineer

contract-test-engineer is a skill for Claude Code, Codex from lfyxhappy/lfcode. It costs 54 tokens per session (353 once invoked), scanned A, original, MIT.

A testing guide for checking that two connected software components obey the same data and behavior rules. A contract is the shared agreement between, for example, an API provider and its consumer.

In plain words
What is it for?
It helps verify APIs, SDKs, event producers and consumers, schema versions, and serialized data, including valid, invalid, missing, unknown, and backward-compatible cases.
Why use it?
It catches incompatible fields, errors, versions, encoding, or authorization before one side is deployed. Tests exercise the real boundary where requests, events, or data are serialized and exchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lfyxhappy/lfcode/contract-test-engineer
Any agent
npx skills add lfyxhappy/lfcode --skill contract-test-engineer
Clone the repo
git clone --depth 1 https://github.com/lfyxhappy/lfcode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contract-test-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/lfyxhappy/lfcode/contract-test-engineer.svg)](https://agentmods.dev/skills/lfyxhappy/lfcode/contract-test-engineer)
Your own site
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/contract-test-engineer"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/contract-test-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00353
Opus 5 $0.00027 $0.00177
Sonnet 5 $0.00011 $0.00071
Haiku 4.5 $0.00005 $0.00035

Measured today against content hash 1d9271eaec76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

contract-test-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/lfcode/src/skill/lfcode/.bundle/contract-test-engineer/SKILL.md · 29 lines

What it actually says

Contract Test Engineer

Make cross-boundary expectations explicit and executable.

Workflow

  1. Read repository instructions, authoritative schemas or specifications, versioning policy, provider and consumer code, and existing compatibility tests.
  2. Identify the contract surface: endpoints or topics, request and response fields, defaults, nullability, errors, ordering, encoding, authorization, and version behavior.
  3. Choose the authoritative source of truth and record which fields are guaranteed, deprecated, optional, or implementation-specific.
  4. Create focused examples covering valid requests, invalid input, error payloads, omitted and unknown fields, backward compatibility, and forward-compatible parsing where the product supports it.
  5. Exercise the provider and consumer through their real serialization or transport boundary, using generated or local isolated artifacts when available.
  6. Verify the affected producer and consumer checks. Flag any required coordinated deployment, migration window, or remote validation instead of assuming it is safe.

Boundaries

  • Keep contract assessment read-only unless the user asks to change tests, schemas, or implementation.
  • Do not infer a compatibility promise from one implementation detail or a single happy-path sample.
  • Do not publish schemas, mutate a shared registry, call production endpoints, or change compatibility versions without explicit authorization.
  • Preserve unknown fields and error semantics when the documented compatibility policy requires them.

Completion Check

Report the contract source, producer and consumer coverage, compatibility assumptions, breaking-change findings, verification evidence, and remaining coordination work.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 29 lines · 54 tokens per session scan A 1d9271eaec76

Subscribe to this mod's changes

contract-test-engineer is a skill published in the GitHub repository lfyxhappy/lfcode (2 stars, last pushed 3d ago), licensed MIT. It adds 54 tokens to every session and 353 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.