qauth: Skill for Claude Code

.claude/skills/nx-testing/SKILL.md

nx-testing is a skill for Claude Code from qauth-labs/qauth. It costs 28 tokens per session (499 once invoked), scanned A, original, Apache-2.0.

A testing guide for Vitest in an Nx monorepo, a single repository containing multiple related projects. It covers unit tests, HTTP integration tests, containers, coverage, and common Nx test commands.

In plain words
What is it for?
Use it when writing tests, running test suites, checking coverage, or investigating test failures in an Nx workspace.
Why use it?
It provides consistent instructions for running tests in one project, across projects, or only in affected projects. It also gives patterns for placing and writing tests.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is qauth-labs/qauth's own configuration. It tells Claude Code how to work on qauth itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything qauth configures →

Reuse

Borrowing it

Nothing to install: this file belongs to qauth-labs/qauth. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/qauth-labs/qauth/main/.claude/skills/nx-testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/qauth-labs/qauth

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/qauth-labs/qauth/nx-testing"><img src="https://agentmods.dev/badge/skills/qauth-labs/qauth/nx-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 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.00028 $0.00499
Opus 5.5 $0.00011 $0.00200
Sonnet 5.5 $0.00006 $0.00100
Haiku 4.5 $0.00003 $0.00050

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

Security

Grade A, and why

nx-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 3d 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.

.claude/skills/nx-testing/SKILL.md · 97 lines

What it actually says

Nx Testing Workflows

Test Stack

  • Runner: Vitest 5.x
  • HTTP Testing: Supertest
  • Containers: Testcontainers
  • Coverage: Built-in Vitest

Running Tests

# Single project
pnpm nx test auth-server
pnpm nx test auth-server --watch
pnpm nx test auth-server --coverage

# Multiple projects
pnpm nx run-many -t test --all
pnpm nx affected -t test
pnpm nx run-many -t test --all --parallel=3

# Vitest UI
pnpm test:ui

Test File Patterns

Co-locate tests with source:

libs/server/jwt/src/
├── jwt.service.ts
├── jwt.service.spec.ts
└── index.ts

Unit Test Example

import { describe, it, expect, beforeEach } from 'vitest';
import { createService } from './service';

describe('Service', () => {
  let service: ReturnType<typeof createService>;

  beforeEach(() => {
    service = createService();
  });

  it('should do something', () => {
    expect(service.method()).toBe(expected);
  });
});

Integration Test with Fastify

import { describe, it, expect, beforeAll, afterAll } from 'vitest';
import { buildTestApp } from '@qauth-labs/shared-testing';
import type { FastifyInstance } from 'fastify';

describe('Route', () => {
  let app: FastifyInstance;

  beforeAll(async () => {
    app = await buildTestApp();
  });

  afterAll(async () => {
    await app.close();
  });

  it('should return 200', async () => {
    const response = await app.inject({
      method: 'GET',
      url: '/health',
    });
    expect(response.statusCode).toBe(200);
  });
});

Best Practices

  1. Test business logic in isolation
  2. Use @qauth-labs/shared-testing utilities
  3. Use Testcontainers for real PostgreSQL
  4. Mock external services
  5. Name tests descriptively
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. 3d ago Changed e61d6dce94d5
  2. 1mo ago First seen · 97 lines · 28 tokens per session scan A 1d22abbf1cbc

Subscribe to this mod's changes

nx-testing is a skill published in the GitHub repository qauth-labs/qauth (26 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 499 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

Clerk Auth Testing

Testing patterns for Clerk authentication including sign-in flow testing, protected route testing, webhook verification, middleware testing, and organization-based access control.

PramodDutta/qaskills · 31 tokens

vitest

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

KhaledSaeed18/node-express-boilerplate · 36 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

principle-test-behavior-not-implementation

Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.

michael-denyer/pstack-claude · 50 tokens