test-driven-development
Write tests first, watch them fail, then implement minimal code to pass.
vitest
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
Full skill instructions
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 |
| test/describe, hooks, fixtures | test-api.md |
| vi.fn, vi.mock, timers, spies | mocking.md |
| expect, snapshots, coverage, filtering | utilities.md |
| Environments, type testing, browser mode | 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.
vue skill for component patternsts-library skill for library patternsvite skill for shared configWrite tests first, watch them fail, then implement minimal code to pass.
Enforce verification commands before claiming work completion, fixes, or test passes—no success assertions without fresh evidence.
Dispatch fresh subagents per task with two-stage review (spec compliance, then code quality) in the current session.
Evaluate code review feedback with technical rigor before implementing, avoiding performative agreement and blind implementation.
Test-driven documentation for creating reusable agent techniques, patterns, and reference guides.
Structured workflow for completing development branches with test verification and merge/PR options.
Browser automation with 40+ commands for navigation, interaction, form filling, and web testing.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Comprehensive reference guide for writing, debugging, and maintaining Playwright tests across all testing types and scenarios.
End-to-end Solana development with framework-kit, @solana/kit, Anchor programs, and local testing.
ab testing
Build custom Expo development clients for testing native code on physical devices via EAS Build or locally.
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.