qa-api-testing-contracts

qa-api-testing-contracts is a skill for Codex from vasilyu1983/AI-Agents-public. It costs 44 tokens per session (2,865 once invoked), scanned A, original, MIT.

A testing approach that checks whether APIs continue to obey their documented agreements, or contracts. It covers REST, GraphQL, gRPC, event systems, webhooks, and multi-step workflows.

In plain words
What is it for?
Use it to lint API descriptions, detect breaking changes, test invalid and security-related inputs, and create release gates.
Why use it?
It helps catch schema errors and breaking changes before clients or downstream services fail. It turns API definitions into checks that can run during development and releases.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to lint API descriptions, detect breaking changes, test invalid and security-related inputs, and create release gates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts
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.

Any agent
npx skills add vasilyu1983/AI-Agents-public --skill qa-api-testing-contracts
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: 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 qa-api-testing-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts/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 qa-api-testing-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-api-testing-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,865 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.02865
Opus 5 $0.00022 $0.01432
Sonnet 5 $0.00009 $0.00573
Haiku 4.5 $0.00004 $0.00286

Measured 5d ago against content hash 936ba47e3f97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

qa-api-testing-contracts 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 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/buf_breaking_check.sh, scripts/pact_can_i_deploy.sh, scripts/schemathesis_baseline.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

frameworks/shared-skills/skills/qa-api-testing-contracts/SKILL.md · 209 lines

How it starts

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

QA API Testing and Contracts

Use this skill to turn API artifacts into enforceable checks: linting, breaking-change detection, executable contracts, negative/security coverage, and release gates that stop unsafe changes from shipping.

Quick Reference

Need Go to
Run the contract-testing workflow ## Workflow
Gather the right API inputs first ## Inputs to Gather
Check release-gate quality ## Quality Checks
Load templates and references ## Navigation

Inputs to Gather

  • Contract surface and canonical artifact for each surface:
    • REST: OpenAPI 3.1 or 3.2
    • GraphQL: SDL plus schema registry if used
    • gRPC: .proto plus buf.yaml
    • Async/event flows: AsyncAPI
    • Multi-step workflows: Arazzo
    • Webhooks/callbacks: OpenAPI webhooks or AsyncAPI channels
  • Where each artifact lives in-repo and whether generated artifacts exist in CI.
  • Environments, auth methods, webhook signing model, and stable test identities/keys.
  • Critical operations, messages, and workflows ranked by business risk.
  • Data constraints: idempotency, ordering, pagination/cursors, retries, eventual consistency, rate limits, state convergence after backend changes, and DLQ/replay behavior.
  • Versioning/deprecation policy, consumer inventory, and any operation registry or broker/registry already in use.
  • Current tooling and CI policy: what blocks PR merge, release promotion, and production deploy.

Outputs (What to Produce)

  • A minimal gate set for PR and release: lint + breaking diff + contract checks + promotion gate.
  • A coverage map derived from the canonical artifacts, with critical operations and workflows first.
  • A negative/security baseline aligned to OWASP API risks plus webhook/event-specific failure modes.
  • An explicit quota and degraded-mode matrix for critical endpoints (for example 429/Retry-After, fallback body shape, and state-transition convergence checks).

Quick Start

  1. Identify the source-of-truth artifacts and remove drift between fragments, generated files, and runtime behavior.
  2. Lint every artifact before writing tests.
  3. Add breaking-change checks against the base branch on every PR.
  4. Choose an enforcement mix:
    • CDC: Pact / PactFlow
    • Schema-driven: Specmatic / Microcks
    • Property-based hardening for HTTP APIs: Schemathesis
  5. Add minimum negative/security cases for auth, validation, error contracts, rate limits, webhooks, and async replay behavior.
  6. Make release gates explicit:
    • Pact can-i-deploy
    • GraphQL schema plus operations checks
    • buf breaking
    • Executable async/workflow contract checks

Read the full file on GitHub · 209 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. 5d ago First seen · 209 lines · 44 tokens per session scan A 936ba47e3f97

Subscribe to this mod's changes

qa-api-testing-contracts is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (87 stars, last pushed 6d ago), licensed MIT. It adds 44 tokens to every session and 2,865 once invoked, about $0.0002 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-03.

Related

Other skills, from other repositories

add-handler

Scaffold a new HTTP handler with service function, store method (if needed), and table-driven test, following the project's internal/{api,service,store} layout. Invoke when the user asks to add an endpoint, handler, or route.

MuhammadUsmanGM/claude-code-best-practices · 52 tokens

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.

wshobson/agents · 39 tokens

architecture-patterns

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or…

wshobson/agents · 65 tokens

web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

wshobson/agents · 46 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens