testing

testing is a skill for Claude Code 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 Code

Written for Claude Code: when-to-use in frontmatter.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/excalibuross/excalibur-core/testing
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 ExcaliburOSS/excalibur-core --skill testing
Clone the repo
git clone --depth 1 https://github.com/ExcaliburOSS/excalibur-core

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 testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/excalibuross/excalibur-core/testing/github.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/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 testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/excalibuross/excalibur-core/testing"><img src="https://agentmods.dev/badge/skills/excalibuross/excalibur-core/testing.svg" alt="Reviewed on agentmods" width="80" 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. 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.00022 $0.00329
Opus 5.5 $0.00009 $0.00132
Sonnet 5.5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 2mo ago against content hash fb3c289ba1c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 1mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 329 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-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

cargo-pgrx

Choose and run cargo-pgrx commands, pgrx tests, pgtest coverage, and pgsys boundary checks.

yugabyte/yugabyte-db · 29 tokens

blueprint-cloudflare-data

Turn the spec's tables into D1 migrations with tests.

receptron/mulmoterminal · 18 tokens

jpa-persistence-test

Writes the persistence tests of a use case (UC-XXX) for Spring Data JPA: @DataJpaTest classes against a real database in a Testcontainers container (never H2 unless the project already tests on it), test data from Flyway test migrations, one UC RepositoryTest class per use case with @UseCase annotations. Tests only…

AI-Unified-Process/marketplace · 222 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

synthetic-seeder

Generate two-sided synthetic data tests (source + Snowflake) for migrated stored procedures and functions. Derives test scenarios from source SQL branch analysis, writes step-based validation YAML artifacts, and enriches them with isolation metadata. Use when generating or refreshing test cases for a migrated object.…

sfc-gh-dflippo/snowflake-dbt-demo · 88 tokens