integration-test-writer

integration-test-writer is a skill for Claude Code from matteocervelli/llms. It costs 33 tokens per session (4,652 once invoked), scanned A, original, MIT.

A guide for writing integration tests, which check that multiple software components work together. It covers APIs, databases, external services, and complete workflows.

In plain words
What is it for?
It helps test API controllers with services and databases, external API connections, authentication flows, multi-step workflows, and cross-component error handling.
Why use it?
It exposes problems at the boundaries between components that isolated unit tests may not detect.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { createApp } from '../src/app';.

Good fit It helps test API controllers with services and databases, external API connections, authentication flows, multi-step workflows, and cross-component error handling.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/matteocervelli/llms
agentmods
npx agentmods add skills/matteocervelli/llms/integration-test-writer

Made for: Claude Code.

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-test-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/matteocervelli/llms/integration-test-writer"><img src="https://agentmods.dev/badge/skills/matteocervelli/llms/integration-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,652 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.00033 $0.04652
Opus 5.5 $0.00013 $0.01861
Sonnet 5.5 $0.00007 $0.00930
Haiku 4.5 $0.00003 $0.00465

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

Security

Grade A, and why

integration-test-writer 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 3mo 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.

.archive/claude-v1/skills/integration-test-writer/SKILL.md · 813 lines

How it starts

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

Integration Test Writer Skill

Purpose

This skill provides systematic guidance for writing integration tests that verify component interactions, API endpoints, database operations, and end-to-end workflows. Integration tests validate that multiple components work together correctly.

When to Use

  • Test API endpoints and routes
  • Verify database interactions
  • Test multi-component workflows
  • Validate authentication and authorization flows
  • Test external service integrations
  • Verify error handling across boundaries

Integration vs Unit Testing

Unit Tests:

  • Test single component in isolation
  • Mock all dependencies
  • Fast execution (< 1 second)
  • High coverage of edge cases

Integration Tests:

  • Test multiple components together
  • Use real or test doubles (minimal mocking)
  • Slower execution (seconds to minutes)
  • Focus on component interactions

Integration Testing Workflow

1. Identify Integration Points

Map the system:

# Identify components to test together
- API controllers + Services + Database
- Services + External APIs
- Authentication + Authorization + Resources
- Multi-step workflows

Integration test targets:

  • API endpoints (all HTTP methods)
  • Database CRUD operations
  • Authentication flows
  • Authorization checks
  • External service calls
  • Multi-component workflows
  • Error propagation across boundaries

Deliverable: Integration test plan


2. Setup Test Environment

Test environment components:

  1. Test Database:

    • Separate database for testing
    • Reset between tests
    • Seed data for tests
  2. Test Configuration:

    • Override production settings
    • Use test credentials
    • Mock external services
  3. Test Fixtures:

    • Factory functions for test data
    • Reusable setup/teardown
    • Consistent test state

Python example (pytest + FastAPI):

# tests/conftest.py
import pytest
from fastapi.testclient import TestClient
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, Session

from src.main import app
from src.database import Base, get_db
from src.models import User, Resource

# Test database
TEST_DATABASE_URL = "sqlite:///./test.db"
engine = create_engine(TEST_DATABASE_URL, connect_args={"check_same_thread": False})
TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)


@pytest.fixture(scope="function")
def db() -> Session:
    """
    Database fixture with setup and teardown.

    Yields:
        Database session for testing

    Notes:
        - Creates all tables before test
        - Drops all tables after test
        - Each test gets fresh database
    """
    Base.metadata.create_all(bind=engine)
    db = TestingSessionLocal()
    try:
        yield db
    finally:
        db.close()
        Base.metadata.drop_all(bind=engine)


@pytest.fixture
def client(db: Session) -> TestClient:
    """
    Test client with database dependency override.

    Args:
        db: Database session fixture

    Returns:
        FastAPI TestClient configured for testing
    """
    def override_get_db():
        try:
            yield db
        finally:
            pass

    app.dependency_overrides[get_db] = override_get_db
    client = TestClient(app)
    yield client
    app.dependency_overrides.clear()


@pytest.fixture
def test_user(db: Session) -> User:
    """
    Create test user in database.

    Args:
        db: Database session

    Returns:
        Created user instance
    """
    user = User(
        name="Test User",
        email="[email protected]",
        password_hash="hashed_password"
    )
    db.add(user)
    db.commit()
    db.refresh(user)
    return user


@pytest.fixture
def auth_token(client: TestClient, test_user: User) -> str:
    """
    Generate authentication token for test user.

    Args:
        client: Test client
        test_user: Test user fixture

    Returns:
        JWT authentication token
    """
    response = client.post(
        "/api/auth/login",
        json={"email": test_user.email, "password": "password"}
    )
    return response.json()["access_token"]


@pytest.fixture
def auth_headers(auth_token: str) -> dict:
    """
    Generate authorization headers with token.

    Args:
        auth_token: JWT token

    Returns:
        Headers dictionary with Authorization header
    """
    return {"Authorization": f"Bearer {auth_token}"}

Read the full file on GitHub · 813 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. 3mo ago First seen · 813 lines · 33 tokens per session scan A 71ee53f79946

Subscribe to this mod's changes

integration-test-writer is a skill published in the GitHub repository matteocervelli/llms (25 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 4,652 once invoked, about $0.0001 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-09-01.

Related

integration-test-writer compared with skills from other repositories

integration-test-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
integration-test-writermatteocervelli/llmsSkill256mo agoMITA33Claude Code
mem0-oss-to-platformmem0ai/mem0Skill70k5d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill695yesterdayMITA105Claude Code, Codex