jmagly/aiwg/vitest-runner
Claude Code and agent skill by jmagly/aiwg
- community
Checking that the SKILL.md file is still in the repository.
Execute JavaScript/TypeScript tests with Vitest, supporting coverage, watch mode, and parallel execution. Use for JS/TS test automation.
Install
npx vskill@latest install jmagly/aiwg/vitest-runnerSKILL.md
Vitest Runner Skill
Purpose
Single responsibility: Execute and manage Vitest test suites with proper configuration, coverage reporting, and failure analysis. (BP-4)
Grounding Checkpoint (Archetype 1 Mitigation)
Before executing, VERIFY:
- [ ] Node.js installed and version appropriate
- [ ] package.json exists with vitest dependency
- [ ] Test files exist (.test.ts, .spec.ts)
- [ ] vitest.config.ts or vite.config.ts present (optional)
DO NOT run tests without verifying node_modules installed.
Uncertainty Escalation (Archetype 2 Mitigation)
ASK USER instead of guessing when:
- Multiple test configurations detected
- Coverage threshold unclear
- Watch mode vs single run
- Specific test patterns needed
NEVER modify test configurations without user approval.
Context Scope (Archetype 3 Mitigation)
| Context Type | Included | Excluded | |
|---|---|---|---|
| RELEVANT | Test files, vitest config, package.json | Application logic | |
| PERIPHERAL | Coverage reports, test utilities | Build configs | |
| DISTRACTOR | Deployment configs | Other frameworks |
Workflow Steps
Step 1: Environment Check (Grounding)
Step 2: Discover Tests
Step 3: Execute Tests
Basic execution:
With coverage:
Specific file or pattern:
Watch mode:
Parallel execution:
Step 4: Analyze Results
Recovery Protocol (Archetype 4 Mitigation)
On error:
- PAUSE - Capture test output
- DIAGNOSE - Check error type:
Cannot find module→ Check imports, tsconfig pathsSyntaxError→ Check TypeScript compilationTimeout→ Increase timeout or check async handlingENOENT→ Check file paths, fixtures
- ADAPT - Adjust test selection or configuration
- RETRY - With narrower scope (max 3 attempts)
- ESCALATE - Report failures with context
Checkpoint Support
State saved to: .aiwg/working/checkpoints/vitest-runner/
Common Vitest Options
| Option | Purpose | |
|---|---|---|
--run | Single run (no watch) | |
--watch | Watch mode | |
--coverage | Generate coverage | |
--reporter=verbose | Detailed output | |
--grep "pattern" | Filter tests | |
--bail | Stop on first failure | |
--update | Update snapshots | |
--ui | Open UI |
Configuration Templates
vitest.config.ts:
References
- Vitest documentation: https://vitest.dev/
- REF-001: Production-Grade Agentic Workflows (BP-4 single responsibility)
- REF-002: LLM Failure Modes (Archetype 1 grounding)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagentic/code/frameworks/sdlc-complete/extensions/javascript/skills/vitest-runner/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 12
- Repository npm downloads, 7 days
- 2,424
- 7-day trend score
- 41
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 19 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jmagly/aiwg/vitest-runner)