unit-test-validator

unit-test-validator is a skill for Claude Code, Codex from dayvisonassis/sdd-skills. It costs 97 tokens per session (1,264 once invoked), scanned A, original, MIT.

A read-only checker for unit tests in the PABX monorepo, a repository that contains multiple related applications and services.

In plain words
What is it for?
Use it to audit Angular frontend specifications and Node.js backend unit tests, report severity and coverage issues, and return a pass, warning, or fail verdict.
Why use it?
It finds violations of the project's unit-test rules without running tests or changing source files, so problems can be fixed deliberately.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **`../unit-test-writer/references/pabx-rules.md`** — validate against it..

Good fit Use it to audit Angular frontend specifications and Node.js backend unit tests…

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/dayvisonassis/sdd-skills
agentmods
npx agentmods add skills/dayvisonassis/sdd-skills/unit-test-validator

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 unit-test-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/dayvisonassis/sdd-skills/unit-test-validator.svg)](https://agentmods.dev/skills/dayvisonassis/sdd-skills/unit-test-validator)
Your own site
<a href="https://agentmods.dev/skills/dayvisonassis/sdd-skills/unit-test-validator"><img src="https://agentmods.dev/badge/skills/dayvisonassis/sdd-skills/unit-test-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,264 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.00097 $0.01264
Opus 5 $0.00048 $0.00632
Sonnet 5 $0.00019 $0.00253
Haiku 4.5 $0.00010 $0.00126

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

Security

Grade A, and why

unit-test-validator 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.

skills/unit-test-validator/SKILL.md · 87 lines

How it starts

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

Unit Test Validator (PABX)

Audit unit test files to ensure they comply with every rule the unit-test-writer enforces. Read-only: produce a detailed compliance report; never modify test or production files, never execute tests (static analysis only).

Project scope: PABX monorepo. The full rule set is in ../unit-test-writer/references/pabx-rules.md — validate against it.

Scope:

  • Frontend: apps/frontend/*.spec.ts, co-located with the source.
  • Backend: apps/backend/__tests__/unit/*.test.js, mirroring src/ (1:1).

INPUT

  • test_file_path (required) — test file or directory to validate.
  • checklist_file_path (optional) — the .unit-test.md to cross-reference coverage.
  • target_file (optional) — the source under test, to verify coverage completeness.
  • severity_filter (optional) — critical | major | minor (default: all).

OUTPUT

A compliance report (English) with: summary counts by severity, applicable rule categories, overall verdict (PASS = 0 critical + 0 major; PASS WITH WARNINGS = 0 critical, some major/minor; FAIL = ≥1 critical), each violation ([SEVERITY] Rule-ID, location, description, expected, found, fix), coverage analysis, performance analysis (backend), and positive findings. When dispatched by the evaluator, the verdict is the signal it consumes.


EXECUTION STEPS (3 Phases)

Phase 1 — Structural Analysis

Detect scope (frontend .spec.ts vs backend .test.js). Inventory describe/it/hooks/helpers. Map checklist ↔ tests (if provided) and source methods ↔ tests (if target_file given). Note all imports and mock-vs-import order. Identify mocks and cleanup points. Verify order: mocks → imports → describe → beforeEach → tests → afterEach.

Phase 2 — Rule-by-Rule Validation

Check EVERY applicable rule from ../unit-test-writer/references/pabx-rules.md, grouped as:

  • Language & Naming [ALL, CRITICAL] — English only; descriptive names; no double blank lines.
  • Test Structure [ALL, MAJOR] — AAA; independence; deterministic; no prod modification; behavior over implementation.
  • Mock & Isolation [ALL, CRITICAL] — all deps mocked; jest.clearAllMocks(); no real deps imported.
  • Frontend Component [FE, CRITICAL] — real component (no inline @Component copy); TestBed.resetTestingModule(); fixture destroy; subscription cleanup; NO_ERRORS_SCHEMA; jQuery mock before imports; jest.setTimeout; previous-fixture cleanup.
  • Frontend Service [FE, CRITICAL] — manual new Service(...); no TestBed.inject(); no HttpClientTestingModule; localStorage mock before imports; per-method httpClientMock.
  • Frontend Async [FE, MAJOR] — fakeAsync+tick; multiple tick() for chains; done for service Observables.
  • Backend Location/Structure [BE, MAJOR] — 1:1 mapping; req/res/next pattern; no DB access.
  • Backend Promise.all() [BE, CRITICAL] — new mock per dbRead/dbWrite; clone() returns new object; .then via Promise.resolve().then.bind(); fast execution.
  • Coverage [ALL, MAJOR] — public methods, error paths, edge cases, boundaries, checklist alignment.
  • Forbidden Practices [ALL, CRITICAL] — no prod modification, real deps, shared state, Portuguese, inline components, TestBed.inject, HttpClientTestingModule, legacy Karma/Jasmine, slow-model mocks.
  • Resource Cleanup [ALL, MAJOR] — mock reset, fixture destroy, subscription cleanup, TestBed reset, no leaks.

Read the full file on GitHub · 87 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 · 87 lines · 97 tokens per session scan A f5568f06d6f7

Subscribe to this mod's changes

unit-test-validator is a skill published in the GitHub repository dayvisonassis/sdd-skills (1 stars, last pushed 10d ago), licensed MIT. It adds 97 tokens to every session and 1,264 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

review-ugc-render

Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates setfinalrender — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops…

gooseworks-ai/goose-skills · 116 tokens

test-generator

A test-writing helper that creates unit or integration tests from the code's actual behavior and contracts. Unit tests check small pieces of code, while integration tests check how real components work together.

laolaoshiren/claude-code-skills-zh · 79 tokens

testing-r-packages

Best practices for writing R package tests using testthat version 3+. Use when writing, organizing, or improving tests for R packages. Covers test structure, expectations, fixtures, snapshots, mocking, and modern testthat 3 patterns including self-sufficient tests, proper cleanup with withr, and snapshot testing.

posit-dev/skills · 67 tokens

r-package-development

R package development with devtools, testthat, and roxygen2. Use when the user is working on an R package, running tests, writing documentation, or building package infrastructure.

posit-dev/skills · 41 tokens

coverage-enhancer

Analyze existing test suites and source code to suggest additional unit tests that improve test coverage. Use this skill when working with test files and source code to identify untested code paths, missing edge cases, uncovered branches, untested error conditions, and gaps in test coverage. Supports major testing…

ArabelaTso/Skills-4-SE · 84 tokens

java-regression-test-generator

Automatically generate regression tests for Java codebases by analyzing changes between old and new code versions. Use when users need to: (1) Generate tests after refactoring or code changes, (2) Ensure previously tested behavior still works in new versions, (3) Cover modified or newly added code paths, (4) Migrate…

ArabelaTso/Skills-4-SE · 111 tokens