CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/vitest-tests

Configures and runs Vitest - Vite-native unit framework with Jest-compatible API (`expect`, `vi.fn`, `vi.mock`, `vi.spyOn`); reads `vite.config.*` so existing Vite plugins work; supports in-source testing via `if (import.meta.vitest)`, browser-mode UI for headed tests, type-checking via `vitest --typecheck`, native ESM, and coverage via v8 (default) or istanbul providers. Use when the user works with Vite-based projects (Vue, Svelte, Solid, modern React with Vite) or is migrating from Jest on an existing Vite project (not bundler-free Node - use jest-tests for that).

73

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

80%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong, executable skill body with lean prose and copy-paste code across a clear 9-step sequence. Its main gaps are the absence of explicit validation checkpoints in the workflow and an inline-everything structure that underuses progressive disclosure.

Suggestions

Add an explicit validation/feedback step, e.g. after Step 7 type-checking and Step 8 coverage: 'run vitest run --typecheck --coverage; if thresholds or type errors fail, fix and re-run before committing'.

Move the longer detail blocks (Step 3 full coverage config, Step 6 browser mode, Step 9 CI yaml) into a reference file such as CONFIG.md and keep SKILL.md as a lean overview with one-level links.

Trim a few restated rationales (e.g., the v8-vs-istanbul note appears in both Step 3 prose and the Anti-patterns table) to tighten token efficiency.

DimensionReasoningScore

Conciseness

Lean prose that assumes competence ('Vitest reads your vite.config.* by default', 'Migration from Jest: replace jest. with vi.') and avoids explaining what test frameworks or ESM are; nearly every token earns its place.

3 / 3

Actionability

Every step ships executable, copy-paste-ready code or commands (npm install -D vitest, vite.config.ts blocks, vi.mock/vi.spyOn snippets, vitest run --coverage), matching the fully-executable anchor.

3 / 3

Workflow Clarity

The 9 steps are clearly sequenced, but there are no explicit validation/checkpoint steps or error-recovery feedback loops (e.g., 'run tests; if type errors, fix and re-run'), which keeps it below the top anchor.

2 / 3

Progressive Disclosure

Well-organized into sections with a one-level References list, but at ~250 lines all config detail, mocking, browser-mode, and CI content is inline rather than split into reference files, so it is not a lean overview pointing to deeper materials.

2 / 3

Total

10

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A dense but complete description: it states concrete capabilities, gives explicit use-when triggers covering the main ecosystems, and actively disambiguates from jest-tests. Its only weakness is verbosity bordering on overload, though that is not penalized at the top anchor.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities ('Configures and runs Vitest', 'reads vite.config.*', 'in-source testing via if (import.meta.vitest)', 'type-checking via vitest --typecheck', 'coverage via v8 ... or istanbul'), matching the multiple-specific-actions anchor.

3 / 3

Completeness

Explicitly answers both what (the enumerated capabilities) and when via the 'Use when the user works with Vite-based projects ... or is migrating from Jest' clause, matching the both-what-and-when anchor.

3 / 3

Trigger Term Quality

Natural terms a user would say appear directly: 'Vitest', 'Vite-based projects', 'Vue, Svelte, Solid, modern React', and 'migrating from Jest', giving good coverage of common phrasings.

3 / 3

Distinctiveness Conflict Risk

Clear Vite-native niche with distinct triggers, and it even disambiguates by steering bundler-free Node cases to jest-tests, making wrong-skill triggering unlikely.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents