What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

vitest: a Claude Code skill by Anthony Fu

For JavaScript and TypeScript developers writing or fixing Vitest tests and config. Skip it if your project runs Jest, Mocha or another runner and you are not moving to Vitest.

Score
71of 100
Rank
#163of 239
Installs
47.6Kon skills.sh
Security
Clear 5 scanners
Updated
2026
Context
~45tokens always

Install

npx skills add https://github.com/antfu/skills --skill vitest

Run it in your terminal. View the source

Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app

What does vitest do?

vitest is a skill that gives Claude a reference map of the Vitest test runner, written against Vitest 5.1.0-beta.1. The main file is an index: it sorts topics into core, feature and advanced tables and points each one to its own reference page. Core pages cover defineConfig, the CLI, test and describe, expect matchers and hooks such as aroundEach. Feature pages cover vi mocks, snapshots, V8 or Istanbul coverage, fixtures through test.extend, sharding, tags, reporters and Tinybench benchmarks. Advanced pages cover fake timers, jsdom and happy-dom environments, expectTypeOf type tests and multi-project workspaces. It holds no workflow of its own; Claude reads the page that fits the task.

When should you use vitest?

Use it when

  • You are adding unit tests to a Vite project
  • You need to mock a module, timer or date in Vitest
  • You want coverage or sharding set up in vitest.config

Skip it when

  • Your tests run on Jest and will stay there
  • You want a step-by-step testing workflow, not reference notes

What it needs and what it can touch

You need

  • Node.js and Vitest in your project

From reading its instructions, not from running it.

Why it scores 71

Strongest on upkeep (100 of 100), weakest on adoption (52).

  • Adoption35 points 52
  • Upkeep20 points 100
  • Trust20 points 65
  • Quality15 points 85
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

Is vitest safe to install?

Every scanner that checked it passed it. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.

ScannerResultDate
Gen Agent Trust HubPassedOct 23, 2026
SocketPassedOct 23, 2026
SnykLow riskOct 23, 2026
RunlayerLow riskFeb 26, 2026
ZeroLeaksPassedApr 15, 2026

Details

Installs
47,597
Repository stars
6,064
Last repository change
Tokens always loaded
about 45
Tokens when used
about 833
License
MIT
Data confidence
High

Alternatives to vitest

All skills for this job
  • golang-testing

    For Go developers writing, reviewing or debugging tests, from table-driven cases to fuzzing and leak checks.

    Score 72 45.5K installs

    Get golang-testing
  • playwright-best-practices

    For teams writing Playwright end-to-end, component or API tests who want a guide picked for each task.

    Score 74 105K installs High-risk warning

    Get playwright-best-practices
  • tdd

    For developers who want Claude to build features test first, one failing test at a time.

    Score 87 1.2M installs

    Get tdd
  • angular-developer

    For Angular developers who want Claude to write version-aware, current Angular code and check it builds.

    Score 78 49.2K installs Official

    Get angular-developer