testing

testing is a skill for Claude Code, Codex from ExcaliburOSS/excalibur-core. It costs 22 tokens per session (329 once invoked), scanned A, original, Apache-2.0.

A testing guide for QuickContract services using Jest, a JavaScript and TypeScript test framework, with mocked Prisma database access. It also defines a required retry test for webhook handlers, which process notifications sent from another service.

In plain words
What is it for?
Use it to structure unit-test files, mock database methods, check exact calls, create minimal fixtures using integer cents, and run the full or focused Jest test suite.
Why use it?
It helps tests stay isolated from a real database and catches duplicate side effects when the same webhook notification is delivered more than once.

Skill for Claude CodeCodex

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/excalibuross/excalibur-core/testing
Any agent
npx skills add ExcaliburOSS/excalibur-core --skill testing
Clone the repo
git clone --depth 1 https://github.com/ExcaliburOSS/excalibur-core

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 testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/excalibuross/excalibur-core/testing.svg)](https://agentmods.dev/skills/excalibuross/excalibur-core/testing)
Your own site
<a href="https://agentmods.dev/skills/excalibuross/excalibur-core/testing"><img src="https://agentmods.dev/badge/skills/excalibuross/excalibur-core/testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 329 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 $0.00022 $0.00329
Opus 5 $0.00011 $0.00164
Sonnet 5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 4d ago against content hash fb3c289ba1c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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.

examples/demo-repo/.claude/skills/testing/SKILL.md · 41 lines

What it actually says

Testing skill

How to test QuickContract services correctly.

Instructions

  1. Co-locate unit specs in test/ as <name>.spec.ts, mirroring src/.
  2. Build services with Test.createTestingModule from @nestjs/testing and provide a mocked PrismaService — never connect to a real database in unit tests.
  3. Mock Prisma model methods per test (findUnique, create, update, findMany) with jest.fn() and assert on call arguments, not just call counts.
  4. For webhook handlers, always include a retry case: deliver the same event twice and assert the side effect happened exactly once.
  5. Run the suite with pnpm test; a focused file runs with pnpm test -- escrow.service.

Conventions

  • Test names describe behavior: releases funds once per captured payment.
  • Use integer cents in fixtures (amountCents: 250_00).
  • Keep fixtures minimal; build helpers in the spec file, not shared globals.
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. 4d ago First seen · 41 lines · 22 tokens per session scan A fb3c289ba1c6

Subscribe to this mod's changes

testing is a skill published in the GitHub repository ExcaliburOSS/excalibur-core (22 stars, last pushed 8d ago), licensed Apache-2.0. It adds 22 tokens to every session and 329 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

adding-dbt-unit-test

Creates unit test YAML definitions that mock upstream model inputs and validate expected outputs. Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt.

dbt-labs/dbt-agent-skills · 44 tokens

phpunit-migration-test-generation

Use this skill when the user asks to generate, write, or create migration tests for a Shopware 6 migration class — phrases like "generate migration tests", "write a migration test", "create migration test", "test this migration", "test Migration1234Foo". Analyzes the source migration's SQL operations to pick an…

shopwareLabs/ai-coding-tools · 141 tokens

testing-paperclip

Paperclip-Testing-Strategie — Vitest, Plugin-Test-Harness aus @paperclipai/plugin-sdk/testing, echte Postgres-Integration-Tests, Cross-Tenant-Isolation. Verwenden Sie dies beim Schreiben oder Reviewen von Paperclip-Tests.

TheBeardedBearSAS/claude-craft · 57 tokens

seed

Database seeding, test fixtures, factory patterns, fake data generation. Idempotent seed scripts.

arbazkhan971/godmode · 22 tokens

pytest-databases

Auto-activate for pytestdatabases, Docker DB fixtures, PostgreSQL/pgvector/ParadeDB, MySQL/MariaDB, Oracle/SQL Server, CockroachDB/YugabyteDB, MongoDB, Redis/Valkey, Elasticsearch, BigQuery/Spanner, Azurite, MinIO, or RustFS tests. Not for mocked databases.

litestar-org/litestar-skills · 79 tokens

smoke-test-database

Quick Reference - Load this first for fast context (3KB).

FortiumPartners/ensemble · 0 tokens