unit-testing

unit-testing is a skill for Claude Code from LiorCohen/sdd. It costs 20 tokens per session (2,387 once invoked), scanned A, original, no licence file.

A guide to unit testing with Vitest, a JavaScript and TypeScript test runner. It covers mocks, reusable test data, isolated tests, and quick feedback.

In plain words
What is it for?
Use it for creating Vitest unit tests with mocks, fixtures, and isolated test cases.
Why use it?
It helps developers write tests that check small pieces of code independently and catch mistakes quickly.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the sdd plugin — 47 skills, 3 commands, 7 agents shipped together

Good fit Use it for creating Vitest unit tests with mocks, fixtures, and isolated test cases.

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

Made for: Claude Code.

Or install sdd, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 7 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/liorcohen/sdd/unit-testing"><img src="https://agentmods.dev/badge/skills/liorcohen/sdd/unit-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,387 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 unknown 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.00020 $0.02387
Opus 5.5 $0.00008 $0.00955
Sonnet 5.5 $0.00004 $0.00477
Haiku 4.5 $0.00002 $0.00239

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

Security

Grade A, and why

unit-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 1mo 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.

plugin/fullstack-typescript/skills/unit-testing/SKILL.md · 403 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 1mo ago First seen · 403 lines · 20 tokens per session scan A cfd8d6655298

Subscribe to this mod's changes

unit-testing is a skill published in the GitHub repository LiorCohen/sdd (43 stars, last pushed 7mo ago), with no licence file. It adds 20 tokens to every session and 2,387 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-09-03.

Related

Other skills, from other repositories

drogon-gen-test

A test-case generator for Drogon applications using the DROGON_TEST framework. It can describe unit tests, integration tests, and asynchronous database tests.

voidvec/drogon-claude-plugin · 45 tokens

testing

Use this skill when writing, fixing, reviewing, or planning tests in any project, in whatever runner the project already uses. Also use it to write the failing proof for a suspected bug and to promote that proof into a durable regression test. Triggers: user says "test", "unit test", "integration test", "e2e", "mock"…

WrongStack/WrongStack · 116 tokens

proof-strategy

Produce a test strategy for a project or feature — risk map, test type decisions, coverage targets, CI config. Use when asked to "create test strategy", "what should we test", "testing plan", or "improve test coverage".

tonone-ai/tonone · 53 tokens

matlab-testing-ci

MATLAB R2026a testing, validation, and CI workflow for matlab.unittest, MATLAB Test, Simulink Test, coverage, artifact generation, GitHub Actions, and open-source reproducibility. Use whenever MATLAB work needs verification, regression tests, CI, GitHub publication, or acceptance criteria.

wzyn20051216/matlab-agent-skills · 66 tokens

proof-recon

Testing reconnaissance — inventory all tests, frameworks, coverage, CI integration, and assess testing maturity for project takeover. Use when asked to "understand the tests", "testing assessment", "what's tested", or "test inventory".

tonone-ai/tonone · 50 tokens

no-silent-pass

Write Python whose failures are visible and checks that actually fire — distinct sentinels for success and error, filters that narrow to nothing without reading as "all clear", output never discarded on a non-zero exit, and selftest cases proven red before they are trusted (mutate the fix, mutate it the other way too…

AleksandarBisevac/claude-plugins · 143 tokens