document-writer
Use when writing blog posts or documentation markdown files - provides writing style guide (active voice, present tense), content structure patterns, and MDC…
Use when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel
$ npx -y skills add onmax/nuxt-skills --skill vitest --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/vitestContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel
name: vitest description: Use when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel license: MIT
Vite-native testing framework with Jest-compatible API.
npm i -D vitest
// vitest.config.ts
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node', // or 'jsdom' for DOM tests
},
})// example.test.ts
import { describe, expect, it, vi } from 'vitest'
describe('math', () => {
it('adds numbers', () => {
expect(1 + 1).toBe(2)
})
})| Task | File | | ---------------------------------------- | --------------------------------------- | | Configuration, CLI, projects | [config.md](references/config.md) | | test/describe, hooks, fixtures | [test-api.md](references/test-api.md) | | vi.fn, vi.mock, timers, spies | [mocking.md](references/mocking.md) | | expect, snapshots, coverage, filtering | [utilities.md](references/utilities.md) | | Environments, type testing, browser mode | [advanced.md](references/advanced.md) |
**Consider loading these reference files based on your task:**
**DO NOT load all files at once.** Load only what's relevant to your current task.
Repo: onmax/nuxt-skills
Use when writing blog posts or documentation markdown files - provides writing style guide (active voice, present tense), content structure patterns, and MDC…
Use when adding animations with Motion Vue (motion-v) - provides motion component API, gesture animations, scroll-linked effects, layout transitions, and…
Build typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC…
Internationalize Nuxt applications with @nuxtjs/i18n. Use when configuring locales or browser detection, translating messages or routes, building locale…
Use when creating Nuxt modules: (1) Published npm modules (@nuxtjs/, nuxt-), (2) Local project modules (modules/ directory), (3) Runtime extensions…