Defines best practices for unit and integration testing, emphasizing real runtimes over heavy mocking.

Install

mkdir -p .claude/skills/tests && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9117" && unzip -o skill.zip -d .claude/skills/tests && rm skill.zip

Installs to .claude/skills/tests

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Testing doctrine, commands, and test layout conventions
55 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Enforce directory-based test placement
  • →Implement end-to-end integration harnesses
  • →Isolate unit tests from external dependencies
  • →Configure IPC and UI testing environments
  • →Simulate LLM router responses

How it works

It applies standardized folder structures and utilizes predefined test harnesses (IPC/UI/E2E) to categorize and run validation scripts.

Inputs & outputs

You give it
Source code file and testing requirement
You get back
Structured test file or test runner configuration

When to use tests

  • →Structure new integration tests
  • →Determine if a module needs unit testing
  • →Apply standard mocking conventions

About tests

Enforces testing standards by requiring integration tests for end-to-end coverage and unit tests for isolated, pure logic. It provides rules on where to place tests and how to use LLM routers in a test environment.

Testing doctrine, commands, and test layout conventions

When not to use it

  • →Testing unrefined code with high volatility
  • →Visual verification that is better served by manual stories

Limitations

  • →Restricts mocking to specific router types
  • →Cannot bypass the requirement for real runtime tests

How it compares

It enforces architectural discipline regarding where and how code is tested compared to arbitrary test placement.

Compared to similar skills

tests side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tests (this skill)06moNo flagsIntermediate
dependency-upgrade266moReviewIntermediate
vitest418moNo flagsIntermediate
browser-tools610moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry