# Vitest (agent skill)

> Vitest is an agent skill (a SKILL.md file) from antfu/skills. Vitest fast unit testing framework powered by Vite with Jest-compatible API. It works with Claude Code and has 5,943 GitHub stars across a repository of 4 listed skills. Install it by copying the skill folder into your agent's skills directory.

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures. Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/antfu/skills |
| Skill path | skills/vitest/SKILL.md |
| Skill name | vitest |
| GitHub stars | 5,943 |
| Installs on skills.sh | 6 |
| License | MIT |
| Skills in repo | 4 |
| Plugin marketplace | no |
| Official | no |
| Works with | Claude Code |
| Category | Testing & QA |
| Last commit | Sep 30, 2026 |

## When it triggers

- Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

## Add this skill

### Claude Code

```sh
git clone --depth 1 https://github.com/antfu/skills.git
cp -r skills/skills/vitest ~/.claude/skills/vitest   # personal, or .claude/skills in a project
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/antfu/skills.git
cp -r skills/skills/vitest .agents/skills/vitest   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/antfu/skills.git
cp -r skills/skills/vitest .cursor/skills/vitest   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/antfu/skills/vitest

---

Canonical page: https://appsgit.com/skills/antfu-vitest
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
