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.
npx skills add acolomba/pi-claude-marketplace --skill typescript-unit-testinggit clone --depth 1 https://github.com/acolomba/pi-claude-marketplaceWrote 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/acolomba/pi-claude-marketplace/typescript-unit-testing)<a href="https://agentmods.dev/skills/acolomba/pi-claude-marketplace/typescript-unit-testing"><img src="https://agentmods.dev/badge/skills/acolomba/pi-claude-marketplace/typescript-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.
<a href="https://agentmods.dev/skills/acolomba/pi-claude-marketplace/typescript-unit-testing"><img src="https://agentmods.dev/badge/skills/acolomba/pi-claude-marketplace/typescript-unit-testing.svg" alt="Reviewed on agentmods" width="80" 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.00054 | $0.04821 |
| Opus 5 | $0.00027 | $0.02410 |
| Sonnet 5 | $0.00011 | $0.00964 |
| Haiku 4.5 | $0.00005 | $0.00482 |
Grade A, and why
typescript-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 yesterday.
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 — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript unit testing rules
"Do" and "Do not" are hard rules. "Prefer" states the default and allows a justified exception. "May" grants a permission. Copy the Good form.
Every case must discriminate the behavior named in its title: a wrong implementation makes the assertion fail. A test with weak assertions costs all the maintenance of a test and gives none of the protection.
Tools
Use node:test for the runner, lifecycle, and the context's t.mock (stubs, spies, fake timers); node:assert/strict for assertions; strong-mock for strict interaction mocks; --experimental-test-coverage for coverage.
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'
import { mock, verify, when } from 'strong-mock'
Do not add another runner, assertion library, or mocking library. Do not import the process-wide mock from node:test; use the context's t.mock.
Pairing and coverage
- Every production
.tsmodule underextensions/pi-claude-marketplace/has exactly one.test.tsmodule undertests/at the mirrored path:extensions/pi-claude-marketplace/orders/order-service.ts->tests/orders/order-service.test.ts. That test module owns the source module's exported behavior. - No exclusions. Type-only modules,
index.tsbarrels, and one-function modules all need a test module. If a module is not worth a test, fold it into its consumer. - Do not co-locate tests under
extensions/pi-claude-marketplace/, use.spec.ts, or test one source module from another module's test. - Test modules and test support (fakes, seeds, contracts) need no meta-tests; a fake is verified through its shared contract.
- Each source-test pair reaches 100% function, line, and branch coverage when run alone. Aggregate coverage does not count.
- Do not add coverage exceptions or
/* node:coverage ignore */directives. Remove dead code or cover it through a public-behavior case. - Run
node --test <test-path>while developing,npm run test:coverage:direct -- <path>for the pair (:allafter a shared contract, fake, or harness change), andnpm run checkbefore completion.
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.
- yesterday First seen · 269 lines · 54 tokens per session scan A 6fc0a1d12f63
typescript-unit-testing is a skill published in the GitHub repository acolomba/pi-claude-marketplace (24 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 4,821 once invoked, about $0.0003 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-09-17.
Other skills, from other repositories
typescript
TypeScript strict mode with eslint and jest.
vitest-skill
Generates Vitest tests in JavaScript/TypeScript with Vite-native speed. Jest-compatible API with ESM support and HMR. Use when user mentions "Vitest", "vi.mock", "vitest.config". Triggers on: "Vitest", "vi.mock", "vi.fn", "Vite test", "vitest config".
jest-unit
Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.
jest
Jest testing best practices for JavaScript and TypeScript applications, covering test structure, mocking, and assertion patterns.
raise-coverage
Input: a package directory (for example packages/txpool) and optionally a target line-coverage percentage. Without a target, raise every threshold by five points or to what the new run measures, whichever is lower.
typescript-testing
Applies repository-aware TypeScript test design, behavior evidence, isolation, and mock-boundary criteria. Use when writing or reviewing unit tests.