Agent skill

Vitest

by pixel-point in pixel-point/animate-text

Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest).

No licenceAuto-check passedTesting & QA

Install Vitest

skills CLI
$ npx skills add pixel-point/animate-text --skill vitest -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pixel-point/animate-text vitest --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pixel-point/animate-text.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/vitest .claude/skills/vitest && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vitest
GitHub stars
149
Used in
2 other repos
Token cost
~1.3k tokens
SKILL.md length
494 words
Files
50 (incl. references, assets)
Skills in repo
2
Repo updated
First seen
Licence
None found

At a glance

Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest).

  • Works in 8 steps: Async Patterns (CRITICAL) → Test Setup & Isolation (CRITICAL) → Mocking Patterns (HIGH) → …
  • Tasks that involve Unit testing
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Vitest is an agent skill from pixel-point/animate-text. Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 52 other files, including reference files and assets (for example `AGENTS.md`, `CHANGELOG.md` and `README.md`).

It sits in Testing & QA, covering Unit testing. It works with Vitest and Jest.

When your agent uses it

  • Tasks that involve Unit testing

Example prompts

  • “/vitest”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Async Patterns (CRITICAL)
  2. Test Setup & Isolation (CRITICAL)
  3. Mocking Patterns (HIGH)
  4. Performance (HIGH)
  5. Snapshot Testing (MEDIUM)
  6. Environment (MEDIUM)
  7. Assertions (LOW-MEDIUM)
  8. Test Organization (LOW)

What it can do on your machine

Read from SKILL.md and the folder at commit 0f783e4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Vitest loads about 1.3k tokens when it runs, and up to ~26k if it reads all its reference files. Until then it costs about 86 tokens; SKILL.md has 494 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~86
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~26k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 494 words (~1,271 tokens).

“Comprehensive performance optimization and best practices guide for Vitest testing framework. Contains 44 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code review.”

— opening of SKILL.md by pixel-point
name
vitest

Read the full SKILL.md on GitHub

Files

SKILL.md and 49 other files (references, assets) in .agents/skills/vitest of pixel-point/animate-text.

  • SKILL.md
  • AGENTS.md
  • CHANGELOG.md
  • README.md
  • assets/templates/_template.md
  • references/_sections.md
  • references/assert-edge-cases.md
  • references/assert-expect-assertions.md
  • references/assert-one-assertion-concept.md
  • references/assert-specific-matchers.md
  • references/assert-toequal-vs-tobe.md
  • references/async-act-wrapper.md
  • references/async-await-assertions.md
  • references/async-concurrent-expect.md
  • references/async-error-handling.md
  • references/async-fake-timers.md
  • references/async-return-promises.md
  • references/async-waitfor-polling.md
  • … and 32 more

Open the folder on GitHubat commit 0f783e4

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in pixel-point/animate-text, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Vitest next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vitest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vitest this skillpixel-point/animate-text1492 repos~1.3kAutomated safety check: PassNone
Test GuardamElnagdy/guard-skills1.3k2 repos~2.1kAutomated safety check: PassMIT
Designing TestsCloudAI-X/claude-workflow-v21.4k1 repos~1.5kAutomated safety check: PassMIT
Playwright Testingchongdashu/vibejam-starter-pack149—~2.1kAutomated safety check: PassNone
Playwright Testingchongdashu/vibejam-starter-pack149—~2.2kAutomated safety check: PassNone
MoAI TDD Workflowmodu-ai/moai-adk1.2k—~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Test Guard

    amElnagdy/guard-skills

    Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.

    1.3k GitHub starsUsed in 2 repos~2.1k tokens
    Testing & QAAuto-check passed
  • Designing Tests

    CloudAI-X/claude-workflow-v2

    Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.

    1.4k GitHub starsUsed in 1 repo~1.5k tokens
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.2k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • MoAI TDD Workflow

    modu-ai/moai-adk

    Drives test-first development through the RED, GREEN, REFACTOR cycle, with a config switch that selects between TDD and a DDD workflow for existing code.

    1.2k GitHub stars~3.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Tsed Migration

    tsedio/tsed

    Migrates an application to Ts.ED v8 from v7, with pointers for v6 and plain Express apps.

    3.1k GitHub stars~2.5k tokensUpdated 2 days ago
    Testing & QAAuto-check passed

More from pixel-point/animate-text

  • Animate Text

    pixel-point/animate-text

    Curated text animation catalog with exact JSON specs for headings, labels, counters, and text swaps.

    149 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Categories

Questions about Vitest

What does Vitest do?

Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest). Vitest is an agent skill from pixel-point/animate-text., snapshots, and test performance (formerly test-vitest).

When should I use Vitest?

Vitest fits situations like: tasks that involve Unit testing.

How do I install Vitest in Claude Code?

Run `npx skills add pixel-point/animate-text --skill vitest -a claude-code`. Or copy the skill folder (.agents/skills/vitest in pixel-point/animate-text) into .claude/skills/vitest in your project. Claude Code loads it when a task matches its description.

How do I install Vitest in Codex?

Run `npx skills add pixel-point/animate-text --skill vitest -a codex`. Or copy the skill folder (.agents/skills/vitest in pixel-point/animate-text) into .agents/skills/vitest in your project. Codex loads it when a task matches its description.

Can I use Vitest in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pixel-point/animate-text --skill vitest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vitest, .gemini/skills/vitest, .github/skills/vitest and .opencode/skills/vitest in your project.

What does Vitest need to run?

SKILL.md names no scripts, command-line tools or credentials: Vitest is instructions for the agent only.

Does Vitest access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Vitest safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Vitest use?

No licence was found for Vitest or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Vitest use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 24k tokens, read only when the agent opens those files.

What are the alternatives to Vitest?

Skills that share tags, products or a category with Vitest: Test Guard (amElnagdy/guard-skills, 1.3k stars), Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars), Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars) and Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vitest?

pixel-point (a GitHub organization) maintains it in pixel-point/animate-text, which has 149 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on April 24, 2026.

Source: pixel-point/animate-text on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.