vitest

1 stars
14
B

Use when writing or modifying Vitest tests to follow best practices for test structure, assertions, mocking, and coverage

Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security

Installation for Agentic Skill

View all platforms →
skilz install mcclowes/vague/vitest
skilz install mcclowes/vague/vitest --agent opencode
skilz install mcclowes/vague/vitest --agent codex
skilz install mcclowes/vague/vitest --agent gemini

First time? Install Skilz: pip install skilz

Works with 22+ AI coding assistants

Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...

View All Agents
Download Agent Skill ZIP

Extract and copy to ~/.claude/skills/ then restart Claude Desktop

1. Clone the repository:
git clone https://github.com/mcclowes/vague
2. Copy the agent skill directory:
cp -r vague/.claude/skills/vitest ~/.claude/skills/

Need detailed installation help? Check our platform-specific guides:

Related Agentic Skills

Agentic Skill Details

Repository
vague
Stars
1
Type
Technical
Meta-Domain
development
Primary Domain
testing
Market Score
14

Agent Skill Grade

B
Score: 87/100 Click to see breakdown

Score Breakdown

Spec Compliance
12/15
PDA Architecture
26/30
Ease of Use
22/25
Writing Style
9/10
Utility
17/20
Modifiers: +1

Areas to Improve

  • Missing Table of Contents in Main File
  • Reference Files Lack Internal Navigation
  • Limited Trigger Coverage in Metadata

Recommendations

  • Add trigger phrases to description for discoverability
  • Add table of contents for files over 100 lines

Graded: 2026-01-24

Developer Feedback

I was checking out your vitest skill and noticed how you've structured the progressive disclosure—the way you layer from basic setup into advanced patterns really minimizes token overhead. With an 87/100, you're clearly nailing the practical stuff, but I'm curious whether you considered adding examples for some of the edge cases around test isolation or async handling that folks usually trip up on.

Links:

The TL;DR

You're at 87/100, solid B grade. This is based on Anthropic's best practices for agentic skills. Your strongest area is Writing Style (9/10)—the voice is imperative, concise, no fluff. Weakest is Spec Compliance (12/15), mainly because you're only hitting 1-2 trigger phrases when you could be more granular.

What's Working Well

  • Progressive Disclosure is genuinely tight. Your three reference files (assertions.md, mocking.md, async.md) sitting below the main file is the right call. Separates overview from deep dives without bloating the core.
  • Quick Start template hits the mark. You're giving developers something they can copy-paste immediately—describe, beforeEach, assertions. That's how you get adoption.
  • Clear API language throughout. Using vi.fn, vi.mock, vi.waitFor consistently makes it obvious you're speaking Vitest, not generic testing concepts.

The Big One: Missing Navigation in Reference Files

Your reference files are getting meaty (assertions.md is 102 lines, mocking.md is 116 lines), but they lack a table of contents. When someone's scanning for "which assertion should I use for object comparison?" they're scrolling the whole file. A simple TOC at the top of each reference file gains you ~2 points and makes the skill way more usable.

Fix: Add this after the header in each reference...

Report Security Issue

Found a security vulnerability in this agent skill?