api-contract-author

api-contract-author is an agent for Claude Code from pnakhat/qa-ai-repo. It costs 56 tokens per session (533 once invoked), scanned A, original, MIT.

A coding agent that adds or extends API contract tests for a service. It examines the service’s interface, such as an OpenAPI document, GraphQL schema, or Pact setup, then creates tests and deployment checks.

In plain words
What is it for?
Use it to discover an API interface, create consumer or specification-based tests, and add CI gates such as deployment checks or breaking-change detection. It can also report dependencies such as brokers or credentials that are unavailable locally.
Why use it?
It helps catch incompatible changes between an API and the programs that use it before deployment. It also selects a testing style based on whether the API has known internal consumers or many external users.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the api-contract-testing plugin — 1 skill, 1 agent shipped together

Good fit Use it to discover an API interface, create consumer or specification-based tests, and add CI gates such as deployment checks or breaking-change detection. It can also report dependencies such as brokers or credentials that are unavailable locally.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pnakhat/qa-ai-repo/api-contract-author
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.

Clone the repo
git clone --depth 1 https://github.com/pnakhat/qa-ai-repo

Made for: Claude Code.

Or install api-contract-testing, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

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 api-contract-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/api-contract-author/github.svg)](https://agentmods.dev/agents/pnakhat/qa-ai-repo/api-contract-author)
Your own site
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/api-contract-author"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/api-contract-author/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-contract-author

Your own site · 80×15
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/api-contract-author"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/api-contract-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00056 $0.00533
Opus 5.5 $0.00022 $0.00213
Sonnet 5.5 $0.00011 $0.00107
Haiku 4.5 $0.00006 $0.00053

Measured 1mo ago against content hash 379d68dd1c9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-contract-author 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 1mo ago.

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.

api-contract-testing/agents/api-contract-author.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior API quality engineer specializing in contract testing.

Follow the api-contract-testing skill (preloaded) — its rules and guardrails are authoritative. Detailed code, config, and commands live in the reference.md file in the api-contract-testing skill's directory and the tooling.md file in the api-contract-testing skill's directory; Read them when a step needs them.

Before execution, read the verification.md file in the api-contract-testing skill's directory. Apply its decision and verification criteria to the process below; include unexecuted checks and their reasons in the report.

Process

  1. Discover the interface. Look for an OpenAPI/AsyncAPI spec, GraphQL schema, route definitions, existing HTTP clients, and any current Pact/contract setup. Identify providers and their consumers.
  2. Recommend an approach using the skill's decision table (consumer-driven, spec-first, or both) and state your reasoning briefly.
  3. Scaffold the tests in the project's language/framework:
    • Consumer tests generating pacts with shape/type matchers.
    • Provider verification with provider states that set up and tear down their data against an isolated provider DB.
    • Or spec conformance (Schemathesis) + a spec lint (Spectral).
  4. Add the gates. Wire can-i-deploy (Pact) or a breaking-change diff (oasdiff / GraphQL Inspector) into CI as blocking steps, per the skill's CI wiring.
  5. Run the local checks, including a known incompatible provider probe. Fix demonstrated harness defects without weakening the contract; note anything that needs a broker/credentials the environment lacks.

Report

The files added/changed, approach chosen and why, the matcher/provider-state patterns used (and how state and fuzzing data are cleaned up), the CI gates wired in (and confirmation they block, not just report), local run results, and any follow-ups requiring a Pact Broker / PactFlow or a spec that doesn't exist yet.

Read the full file on GitHub · 42 lines

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. 1mo ago Changed · +3 lines 379d68dd1c9b
  2. 1mo ago Changed · +1 lines 990ac9f3006c
  3. 1mo ago Changed · -33 lines 8a45332790c4
  4. 3mo ago First seen · 71 lines · 56 tokens per session scan A 53596b38ea22

Subscribe to this mod's changes

api-contract-author is an agent published in the GitHub repository pnakhat/qa-ai-repo (2 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 533 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

api-contract-author compared with agents from other repositories

api-contract-author next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-contract-authorpnakhat/qa-ai-repoAgent21mo agoMITA56Claude Code
php-developerdavepoon/buildwithclaudeAgent3.8ktodayMITA51Claude Code
backend-reviewerjeremylongshore/tons-of-skills-marketplaceAgent3.0ktodayMITA36Claude Code
openai-api-expert0xfurai/claude-code-subagentsAgent1.0k23d agoMITA23Claude Code
integrations-engineeravelikiy/great_ctoAgent11714d agoMITA106Claude Code
gatetonone-ai/tononeAgent843d agoMITA19Claude Code
broadcasting-agentSofttor/nestjs-hexagonalAgent515d agoMITA58Claude Code