Nextjs Testing
HoangNguyen0403/agent-skills-standard
Write Jest or Vitest unit tests with React Testing Library and Playwright E2E tests for Next.js projects.
Write, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 5 configuration.
$ npx skills add Asymmetric-al/core --skill vitest -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Asymmetric-al/core vitest --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/vitest .claude/skills/vitest && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .claude/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitestType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Asymmetric-al/core --skill vitest -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Asymmetric-al/core vitest --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/vitest .agents/skills/vitest && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .agents/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Asymmetric-al/core --skill vitest -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Asymmetric-al/core vitest --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/vitest .cursor/skills/vitest && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .cursor/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Asymmetric-al/core.git --path .agents/skills/vitest--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Asymmetric-al/core --skill vitest -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Asymmetric-al/core vitest --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/vitest .gemini/skills/vitest && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .gemini/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Asymmetric-al/core vitestInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Asymmetric-al/core --skill vitest -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/vitest .github/skills/vitest && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .github/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Asymmetric-al/core --skill vitest -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Asymmetric-al/core vitest --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Asymmetric-al/core.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/vitest .opencode/skills/vitest && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "vitest" agent skill from https://github.com/Asymmetric-al/core/tree/develop/.agents/skills/vitest into .opencode/skills/vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vitest", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
vitestWrite, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 5 configuration.
Vitest is an agent skill from Asymmetric-al/core. Write, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 5 configuration. Use for tests under Core's Vitest include paths, vi.mock/spies/timers, jsdom component tests, coverage output, focused reruns, or unit-test failures. Do not use for browser E2E flows or async Next.js Server Components.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/upstream.md`).
It sits in Testing & QA, covering Unit testing. It works with Vitest and Next.js. The repository describes itself as: A high-performance, enterprise-grade Next.js 16 application for mission-focused non-profit organizations. Built for high impact teams. The licence is AGPL-3.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c30c8ff. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bunbunxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Vitest loads about 1.1k tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 476 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Asymmetric-al/core at commit c30c8ff, republished under its AGPL-3.0 licence (© Asymmetric-al). 476 words, ~1,102 tokens.
.claude/skills/vitest/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use the repository harness as the source of truth. Core currently resolves
Vitest 5.0.3 from bun.lock; verify the exact version before relying on a newly
introduced API.
Read these before changing tests or configuration:
vitest.config.ts — include globs, aliases, Node default environment,
timeouts, mock clearing, setup, and the custom coverage provider.tests/setup/unit-env.ts — safe env defaults and browser shims.scripts/verify/unit-tests.mjs — the full unit gate and platform behavior.docs/ai/rules/testing.md — repository-wide test and CI policy..next-docs/01-app/02-guides/testing/vitest.mdx when testing Next.js code.Do not use bun test; that selects Bun's test runner. Use Vitest through the
committed scripts or bunx vitest.
# Full CI-equivalent unit suite with Core's coverage provider
bun run test:unit
# Focused file or directory while iterating
bunx vitest run tests/unit/path/to/example.test.ts
# Focused test name
bunx vitest run tests/unit/path/to/example.test.ts -t "expected behavior"
# Watch a focused surface
bunx vitest tests/unit/path/to/example.test.ts
# Structured failure report and targeted reruns
bun run test:unit:feedbacktests/unit,
packages/api/tests/unit, or packages/auth conventions from
vitest.config.ts; do not invent a disconnected test root.node. Add
// @vitest-environment jsdom only to files that need DOM APIs, and clean up
rendered components and mutated globals.vi.mock is
hoisted. Use vi.hoisted for shared mock state, dynamic imports when a module
must load after mocks, and vi.importActual for intentional partial mocks.clearMocks: true clears call history but does
not restore globals, timers, dates, env values, or spy implementations. Undo
those changes in hooks.bun run test:unit before handoff..only; use .skip/.todo only with a documented reason and no hidden
loss of required coverage.bun run test:unit passes.See references/upstream.md for the reviewed upstream source, version compatibility decision, license, and refresh workflow.
© Asymmetric-al, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .agents/skills/vitest of Asymmetric-al/core.
Open the folder on GitHubat commit c30c8ff
Vitest next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Vitest this skillAsymmetric-al/core | 381 | — | ~1.1k | Automated safety check: Pass | AGPL-3.0 | |
| Nextjs TestingHoangNguyen0403/agent-skills-standard | 572 | — | ~768 | Automated safety check: Pass | MIT | |
| Nuqs Scaffolderpproenca/dot-skills | 215 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Turborepo Monorepogiuseppe-trisciuoglio/developer-kit | 357 | — | ~2.3k | Automated safety check: Notes | MIT | |
| Test Writing WorkflowiOfficeAI/AionUi | 33k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Vitestsupabase/supabase | 111k | 12 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 |
HoangNguyen0403/agent-skills-standard
Write Jest or Vitest unit tests with React Testing Library and Playwright E2E tests for Next.js projects.
pproenca/dot-skills
Scaffolds URL-state filters for a Next.js page — typed searchParams.ts parser map and a <Filters / client component backed by useQueryStates.
giuseppe-trisciuoglio/developer-kit
Provides comprehensive Turborepo monorepo management guidance for TypeScript/JavaScript projects.
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
supabase/supabase
Vitest API and config reference (Jest-compatible) — mocking with vi., spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering.
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
Asymmetric-al/core
Implement idempotency keys and handling to ensure operations can be safely retried without duplicate effects.
Asymmetric-al/core
Audit and fix accessibility in Core UI. An agent skill from Asymmetric-al/core.
Asymmetric-al/core
A skill your agent uses when building any system where email content triggers actions — AI agent inboxes, automated support handlers, email-to-task pipelines, or any workflow processing untrusted…
Asymmetric-al/core
Build modern, composable, and accessible React UI components following the components.build specification.
Asymmetric-al/core
Guides a one-question-at-a-time design interview, captures alignment in agent/EVE-BRIEF.md, then scaffolds and implements a runnable eve agent with verbose teaching comments.
Asymmetric-al/core
Design engineering principles and patterns for building polished, accessible web interfaces.
Categories
Write, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 5 configuration. Vitest is an agent skill from Asymmetric-al/core. Write, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 5 configuration.
Vitest fits situations like: tests under Cores Vitest include paths; vi.mock/spies/timers; jsdom component tests; coverage output.
Run `npx skills add Asymmetric-al/core --skill vitest -a claude-code`. Or copy the skill folder (.agents/skills/vitest in Asymmetric-al/core) into .claude/skills/vitest in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Asymmetric-al/core --skill vitest -a codex`. Or copy the skill folder (.agents/skills/vitest in Asymmetric-al/core) into .agents/skills/vitest in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Asymmetric-al/core --skill vitest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vitest, .gemini/skills/vitest, .github/skills/vitest and .opencode/skills/vitest in your project.
Going by SKILL.md and its folder, Vitest needs the command-line tools its instructions call (bun and bunx).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Vitest is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 437 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Vitest: Nextjs Testing (HoangNguyen0403/agent-skills-standard, 572 stars), Nuqs Scaffolder (pproenca/dot-skills, 215 stars), Turborepo Monorepo (giuseppe-trisciuoglio/developer-kit, 357 stars) and Test Writing Workflow (iOfficeAI/AionUi, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Asymmetric-al (a GitHub organization) maintains it in Asymmetric-al/core, which has 381 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on October 9, 2026.
Source: Asymmetric-al/core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.