integration-testing

integration-testing is a skill for Claude Code, Codex from OKHP3/skillz. It costs 78 tokens per session (966 once invoked), scanned A, original, MIT.

A testing approach that checks whether parts of an application work together across real boundaries, such as a service and its database, queue, filesystem, or external dependency.

In plain words
What is it for?
It helps test database queries and migrations, API communication, message producers and consumers, serialization, transactions, and other cross-component behaviour.
Why use it?
It catches failures that isolated unit tests can miss, especially when mocks behave differently from real services.

Skill for Claude CodeCodex

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

Good fit It helps test database queries and migrations, API communication, message producers and consumers, serialization, transactions, and other cross-component behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okhp3/skillz/integration-testing
View source ↗ OKHP3/skillz
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 OKHP3/skillz --skill integration-testing
Clone the repo
git clone --depth 1 https://github.com/OKHP3/skillz

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 integration-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/okhp3/skillz/integration-testing/github.svg)](https://agentmods.dev/skills/okhp3/skillz/integration-testing)
Your own site
<a href="https://agentmods.dev/skills/okhp3/skillz/integration-testing"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/integration-testing/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 integration-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/okhp3/skillz/integration-testing"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/integration-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 966 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.00078 $0.00966
Opus 5 $0.00039 $0.00483
Sonnet 5 $0.00016 $0.00193
Haiku 4.5 $0.00008 $0.00097

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

Security

Grade A, and why

integration-testing 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 6d 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.

community/integration-testing/SKILL.md · 93 lines

How it starts

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

Integration testing

Unit tests prove each piece works against your assumptions about its neighbours. Integration tests prove the assumptions were right. Almost every "all tests pass but production is broken" story lives in that gap — a mock that returns a shape the real service never returns.

These cost more than unit tests and less than end-to-end. Spend them on the seams where your assumptions about someone else's behaviour are most likely wrong.

1. Pick the seams worth the cost

Test the boundaries where you cross into something you do not control:

  • Your code against a real database: queries, migrations, transactions, constraints. The highest-value integration tests in most applications, because SQL and ORM behaviour is where mocks lie most.
  • Your service against its dependencies: real HTTP, real serialization.
  • Message producers against consumers: that the payload one writes is one the other parses.
  • Your code against the filesystem, clock, or queue, where behaviour is subtle.

Do not integration-test pure logic. If it has no boundary, it belongs in a unit test.

Done when: each planned test crosses a boundary you do not own.

2. Use the real thing, not a mock

The entire point is exercising real behaviour. A mocked database tests your mock.

  • Containers for infrastructure: a real Postgres, Redis, or Kafka in a container. Testcontainers-style libraries make this a few lines and it is worth it.
  • The same version as production. Testing on a different major version tests a different system.
  • Real HTTP against a local instance where you can run the dependency; a recorded or contract-verified stub where you cannot.

For third-party services you cannot run: record real responses once, replay them, and re-record on a schedule. A hand-written stub drifts from reality silently and gives false confidence indefinitely.

Done when: no test in this suite mocks the thing it is testing against.

3. Make each test own its data

Read the full file on GitHub · 93 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. 6d ago First seen · 93 lines · 78 tokens per session scan A e1c3c8d5f035

Subscribe to this mod's changes

integration-testing is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 966 once invoked, about $0.0004 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.