skills/vitest/SKILL.md
Use for Vitest in TypeScript React/Next.js: write, run, or debug unit/component tests, mocks, testing utilities, and coverage.
npx skillsauth add paulrberg/dot-agents vitestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Follow the repository's Vitest configuration and test conventions before introducing generic patterns.
nlx vitest run ... only when the repository has no preferred recipe/script. Prefer
--reporter=agent on Vitest 4.1+ for minimal agent-friendly output when the repository has no reporter convention.@testing-library/jest-dom.@effect/vitest conventions (it.effect, Layers, TestClock) instead of generic
patterns.Completion requires a focused test that meaningfully exercises the requested behavior and passes under the repository's
configuration. For a bug with observed red-before-green evidence, finish with ### 🧪 Regression covered; otherwise use
### 🧪 Tests verified. Include a phase/command/result table with only the phases actually run. Report mock, timer,
environment, or shared-state cleanup only when the checks provide that evidence. Keep reporter output, snapshots,
assertions, failure text, commands, and diagnostics exact and undecorated.
development
Refactor naming and repository structure exhaustively while preserving behavior and external contracts.
tools
Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).
testing
Audit an entire repository with fresh eyes for correctness errors, bugs, omissions, duplication, inconsistencies, and other evidenced mistakes; fix every safe issue and verify the result.
development
Autonomous overnight codebase improvement with bounded runtime, evidence-gated changes, and verification.