Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PyModel/react-frontend-skills --skill vitestgit clone --depth 1 https://github.com/PyModel/react-frontend-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pymodel/react-frontend-skills/vitest)<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/vitest"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/vitest/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/vitest"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/vitest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk fail
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.01235 |
| Opus 5.5 | $0.00005 | $0.00494 |
| Sonnet 5.5 | $0.00002 | $0.00247 |
| Haiku 4.5 | $0.00001 | $0.00123 |
Grade A, and why
vitest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Vitest Best Practices
Vitest 5-compatible testing guide with 47 rules across 8 categories. Vitest 5 requires Node.js 22.12+ and Vite 6.4+. Current: Vitest 5.1 (5.1.2).
When to Apply
Reference these guidelines when:
- Writing new Vitest tests
- Debugging flaky or slow tests
- Setting up test configuration
- Reviewing test code in PRs
- Optimizing CI/CD test performance
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Async Patterns | CRITICAL | async- |
| 2 | Test Setup & Isolation | CRITICAL | setup- |
| 3 | Mocking Patterns | HIGH | mock- |
| 4 | Performance | HIGH | perf- |
| 5 | Snapshot Testing | MEDIUM | snap- |
| 6 | Environment | MEDIUM | env- |
| 7 | Assertions | LOW-MEDIUM | assert- |
| 8 | Test Organization | LOW | org- |
Quick Reference
1. Async Patterns (CRITICAL)
async-await-assertions- Await async assertionsasync-return-promises- Return promises from test functionsasync-fake-timers- Use fake timers for time-dependent codeasync-waitfor-polling- Use vi.waitFor for async conditionsasync-concurrent-expect- Use test context expect in concurrent testsasync-act-wrapper- Await user events to avoid act warningsasync-error-handling- Test async error handling properly
2. Test Setup & Isolation (CRITICAL)
setup-beforeeach-cleanup- Clean up state in afterEach hookssetup-restore-mocks- Restore mocks after each testsetup-avoid-shared-state- Avoid shared mutable state between testssetup-beforeall-expensive- Use beforeAll for expensive one-time setupsetup-reset-modules- Reset modules when testing module statesetup-test-factories- Use test factories for complex test datasetup-vitest5-semantics- Vitest 5 runtime semantics: concurrency, text matchers, worker ids, entry points, vite peer
3. Mocking Patterns (HIGH)
mock-vi-mock-hoisting- Understand vi.mock hoisting behaviormock-spyon-vs-mock- Choose vi.spyOn vs vi.mock appropriatelymock-implementation-not-value- Use mockImplementation for dynamic mocksmock-msw-network- Use MSW for network request mockingmock-avoid-overmocking- Avoid over-mockingmock-type-safety- Maintain type safety in mocksmock-clear-between-tests- Clear mock state between tests
What ships with it
47 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/assert-edge-cases.md 2.3 KB
- references/assert-expect-assertions.md 2.3 KB
- references/assert-one-assertion-concept.md 2.6 KB
- references/assert-specific-matchers.md 2.5 KB
- references/assert-toequal-vs-tobe.md 2.1 KB
- references/async-act-wrapper.md 2.4 KB
- references/async-await-assertions.md 1.3 KB
- references/async-concurrent-expect.md 1.9 KB
- references/async-error-handling.md 2.1 KB
- references/async-fake-timers.md 2.0 KB
- references/async-return-promises.md 1.5 KB
- references/async-waitfor-polling.md 2.4 KB
- references/env-browser-api-mocking.md 2.2 KB
- references/env-globals-config.md 2.0 KB
- references/env-per-file-override.md 3.1 KB
- references/env-setup-files.md 2.3 KB
- references/mock-avoid-overmocking.md 2.8 KB
- references/mock-clear-between-tests.md 2.3 KB
- references/mock-implementation-not-value.md 2.3 KB
- references/mock-msw-network.md 2.6 KB
- references/mock-spyon-vs-mock.md 2.4 KB
- references/mock-type-safety.md 2.4 KB
- references/mock-vi-mock-hoisting.md 2.8 KB
- references/org-describe-nesting.md 2.4 KB
- references/org-file-colocation.md 1.7 KB
- references/org-test-naming.md 2.0 KB
- references/org-test-skip-only.md 1.8 KB
- references/perf-bail-fast-fail.md 1.7 KB
- references/perf-bench-test-context.md 2.0 KB
- references/perf-disable-isolation.md 2.1 KB
- references/perf-happy-dom.md 2.2 KB
- references/perf-pool-selection.md 1.9 KB
- references/perf-run-mode-ci.md 2.1 KB
- references/perf-sharding.md 3.0 KB
- references/perf-since-last-run.md 2.0 KB
- references/setup-avoid-shared-state.md 2.5 KB
- references/setup-beforeall-expensive.md 2.3 KB
- references/setup-beforeeach-cleanup.md 1.9 KB
- references/setup-reset-modules.md 2.5 KB
- references/setup-restore-mocks.md 2.7 KB
- references/setup-test-factories.md 2.8 KB
- references/setup-vitest5-semantics.md 2.0 KB
- references/snap-avoid-large.md 2.3 KB
- references/snap-describe-intent.md 2.1 KB
- references/snap-inline-over-file.md 1.9 KB
- references/snap-review-updates.md 1.9 KB
- references/snap-stable-serialization.md 2.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed 7b9c2ed5d905
- 25d ago Changed · -4 lines dc6b28dd3828
- 1mo ago Changed · +1 lines 83350e0025fd
- 2mo ago Changed · +1 lines · -34 tokens per session 0ddeeb701b17
- 2mo ago Changed · +1 lines 0e0ac995e585
- 3mo ago First seen · 121 lines · 46 tokens per session scan A 353024b8238f
vitest is a skill published in the GitHub repository PyModel/react-frontend-skills (54 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 1,235 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
vitest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vitestPyModel/react-frontend-skills | Skill | 54 | 3d ago | MIT | A | 12 | Claude Code, Codex |
| ultracitehaydenbleasel/ultracite | Skill | 3.4k | 3d ago | MIT | A | 179 | Claude Code, Codex |
| typescript-projectmajiayu000/spellbook | Skill | 303 | 5d ago | MIT | A | 42 | Claude Code, Codex |
| type-safetyidavidov13/agentic-playwright | Skill | 318 | 17d ago | MIT | A | 80 | Claude Code, Codex |
| enumsidavidov13/agentic-playwright | Skill | 318 | 17d ago | MIT | A | 73 | Claude Code, Codex |
| refactor-valuesidavidov13/agentic-playwright | Skill | 318 | 17d ago | MIT | A | 55 | Claude Code, Codex |
| jest-unitPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 32 | Claude Code |