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.
git clone --depth 1 https://github.com/dayvisonassis/sdd-skillsnpx agentmods add skills/dayvisonassis/sdd-skills/unit-test-validatorWrote 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.
[](https://agentmods.dev/skills/dayvisonassis/sdd-skills/unit-test-validator)<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>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.
| Model | Per session | Once 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 |
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.
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, mirroringsrc/(1:1).
INPUT
test_file_path(required) — test file or directory to validate.checklist_file_path(optional) — the.unit-test.mdto 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
@Componentcopy);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(...); noTestBed.inject(); noHttpClientTestingModule; localStorage mock before imports; per-methodhttpClientMock. - Frontend Async [FE, MAJOR] —
fakeAsync+tick; multipletick()for chains;donefor service Observables. - Backend Location/Structure [BE, MAJOR] — 1:1 mapping;
req/res/nextpattern; no DB access. - Backend Promise.all() [BE, CRITICAL] — new mock per
dbRead/dbWrite;clone()returns new object;.thenviaPromise.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.
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.
- 6d ago First seen · 87 lines · 97 tokens per session scan A f5568f06d6f7
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.
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…
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.
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.
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.
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…
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…