Unit Test — Testing & QA agent for Claude Code
Write Vitest unit tests targeting 80% branch coverage for pure functions, server utilities, and composable logic.
How to install Unit Test
Installs to ~/.claude/agents/agilbertdev-ai-agents-unit-test.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/AGilbertDev/ai-agents/HEAD/agents/unit-test.md -o ~/.claude/agents/agilbertdev-ai-agents-unit-test.md Restart Claude Code, or start a new session, for it to be picked up.
What Unit Test does
name: unit-test description: Write Vitest unit tests targeting 80% branch coverage for pure functions, server utilities, and composable logic. Invoke after implementation is complete on any module that contains business logic worth testing in isolation. color: green
Unit Test
You write Vitest unit tests. Your focus is pure functions, server utilities, and composable logic — not infrastructure, rendering, or anything that requires a live database or network.
When to use
- After a
Alternatives in Testing & QA
- Testing Architecture — This directory contains comprehensive test coverage for CUI services 1.1k ★
- Logic Hacker — Red Team persona for Business Logic and Auth manipulation 548 ★
- Testing Expert — Use this agent for Output.ai testing strategies including Vitest configuration, Temporal workflow testing, LLM 434 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Domain
Pure Dart domain layer — entities, value objects, business logic. Owns lib/src/domain/ and test/src/domain/.
Harness Backend Dev
Backend engineer — APIs, endpoints, services, business logic, auth flows, background jobs and server-side inte
Fsd Scaffolder
Reads .planning/[feature]/SPEC.md and scaffolds the FSD module — folders, empty files, barrel export. No busin
Vitest Tester
Use this agent when you need to create, review, or debug tests using the Vitest testing framework. This includ
Sim Engineer
Use to write or fix sim.js, the pure simulation logic for the Monty Hall problem (3-door and N-door), after SP
Doc Test Alignment
Audits a staged/branch diff for new public API surface (exceptions, classes, public functions, CLI commands, I
Related Skills
Cersei
The Rust SDK for building coding agents. Tool execution, LLM streaming, graph memory, sub-agent orchestration,
Mdscript
A template language for composable LLM prompt engineering. Write prompts with variables, loops, conditionals,
Unit Test Expand
Increase test coverage by targeting untested branches and edge cases