vitest

0
C

Vitest unit testing patterns for TypeScript. Covers test structure, mocking, assertions, and coverage. Triggers on vitest, describe, it, expect, mock.

CommandsAgentsMarketplace
#mock#vitest#test#mocking#vitest description#API#unit tests#tests

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 settlemint/agent-marketplace/vitest
skilz install settlemint/agent-marketplace/vitest --agent opencode
skilz install settlemint/agent-marketplace/vitest --agent codex
skilz install settlemint/agent-marketplace/vitest --agent gemini

First time? Install Skilz: pip install skilz

Works with 14 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/settlemint/agent-marketplace
2. Copy the agent skill directory:
cp -r agent-marketplace/devtools/skills/vitest ~/.claude/skills/

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

Related Agentic Skills

Agentic Skill Details

Type
Other
Meta-Domain
Primary Domain
Market Score
0

Agent Skill Grade

C
Score: 75/100 Click to see breakdown

Score Breakdown

Spec Compliance
14/15
PDA Architecture
22/30
Ease of Use
21/25
Writing Style
8/10
Utility
16/20
Modifiers: -6

Areas to Improve

  • Missing TOC for 350-line file
  • Redundant mocking examples
  • Non-standard reference directory

Recommendations

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

Graded: 2026-01-19

Developer Feedback

I took a look at your vitest skill and wanted to share some thoughts.

Links:

The TL;DR

You're at 75/100, solid C-grade territory. This is based on Anthropic's skill best practices rubric. Your strongest area is Spec Compliance (14/15) — the fundamentals are tight. Weakest is Progressive Disclosure Architecture (22/30) — there's some structural inefficiency that's eating your token economy.

What's Working Well

  • Spec compliance is basically perfect (14/15). Your YAML frontmatter is clean, naming follows conventions, and your description has comprehensive trigger coverage (40+ patterns). This skill will activate on natural queries.
  • Your trigger list is genuinely thorough — covering everything from explicit vi.fn, .test.ts, describe( to implicit "mock a service test" patterns. That's good UX design.
  • The quick_start table is a solid entry point with clear scenarios, and your success_criteria checklist gives devs a real validation path. That's the kind of thing that makes a skill feel approachable.

The Big One: Token Waste From Duplication

Your mocking patterns appear twice — once inline in the <mocking> section (lines 110-123) and again in templates/mock-module.ts.md. For a 350-line file, this is burning tokens on repetition.

The fix: Keep only the vi.fn() basics in SKILL.md with a reference to the template. Move the full module mocking example into the template exclusively. This alone should save ~40 tokens and bump you +2 points toward 77/100.

Other Things Worth Fixing

  1. Add a table of contents — 350+ lines without a TOC makes navigation a pain. Add a simple ## Contents section listing: objective, mocking, advanced patterns, assertions, templates, commands. G...

AI-Detected Topics

Extracted using NLP analysis

mock vitest test mocking vitest description API unit tests tests current API testing

Report Security Issue

Found a security vulnerability in this agent skill?