Skills for Real Engineers. Straight from my .agents directory.
vitest
Agent skill fromjezweb/claude-skills
Set up Vitest testing in any project — detects type (Cloudflare Workers, React, Node, library), generates vitest.config.ts, test setup, utilities, and a sample test. Covers mocking patterns, coverage config, workspace setup, Jest migration. Use whenever the user mentions adding tests, setting up Vitest, configuring tests, migrating from Jest, fixing testing infrastructure, or asks 'how do I test this'.
How to install vitest
npx skills add jezweb/claude-skills# or add only this skill to Claude Code: copy the folder
plugins/dev-tools/skills/vitest/
# into
~/.claude/skills/vitest/ (all projects)
.claude/skills/vitest/ (one project)
1# Vitest Setup23Detect the project type, generate the right Vitest configuration, and produce working test infrastructure. Not a reference card — this skill creates files.45## Workflow671. **Detect** — scan the project to determine type and existing setup82. **Configure** — generate vitest.config.ts tailored to the environment93. **Scaffold** — create test setup, utilities, and a sample test104. **Wire up** — add package.json scripts and TypeScript config1112## Step 1: Detect Project Type1314Read these files to determine the project:1516```17package.json → dependencies, scripts, type field18tsconfig.json → paths, compiler options19wrangler.toml → Cloudflare Workers project20vite.config.ts → existing Vite setup (extend, don't replace)21vitest.config.ts → already configured? just fill gaps22jest.config.* → migration candidate23src/ → source structure24```2526Classify as one of:2728| Type | Signals | Environment |29|------|---------|-------------|30| **Cloudflare Workers** | wrangler.toml, @cloudflare/workers-types, cloudflare vite plugin | `node` with Workers-specific setup |31| **React (Vite)** | @vitejs/plugin-react, react-dom | `jsdom` or `happy-dom` |32| **React (SSR/TanStack Start)** | @tanstack/start, vinxi | Split: `node` for server, `jsdom` for client |33| **Node/Hono API** | hono, express, no react-dom | `node` |34| **Library** | exports field, no framework deps | `node` |35…
Excerpt shown under the repository's MIT license.
More skills in claude-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
