Skip to main content
skill

test-detect — Claude Code skill: tests and setup

Detects the project’s test framework, runs the matching checks, and can create starter tests for a source file.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/test-detect
Open on GitHub

What test-detect does

The skill inspects project configuration and dependencies, reports the framework it found, then runs its matching command. It covers Vitest, Jest, Playwright, Cypress, pytest, Go test, Cargo, ExUnit, RSpec, and npm test. A full run reports test totals and shows the first failure messages with file and line references.

Give it a source path and it searches common locations such as __tests__, test, and tests for a matching test file. With generate, it reads the source, identifies exported functions, classes, or components, and writes a test covering the normal path, edge cases, and errors. In a monorepo, detection uses the configuration nearest to the current directory, so changing where you run the command can change the selected framework.

When several frameworks are present, the skill reports them and defaults to the unit-test option. It can run commands such as npx vitest run, npx jest, python -m pytest, or go test ./..., depending on the project.

What it helps with

  • identify the test framework from project files
  • run the full suite with the matching command
  • locate tests for a source file
  • create starter coverage for new code
  • surface the first failures with file and line references

Example prompts for the agent

  • Detect the test framework and run the full suite.
  • Run tests for src/auth/login.ts.
  • Generate tests for src/utils.ts.

How to install test-detect

1claude-code-templates

npx claude-code-templates@latest --skill development/test-detect

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill test-detect -a claude-code

3Manually: put the files in place

~/.claude/skills/test-detect/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/test-detect/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about test-detect

How do I install test-detect in Claude Code?

Run npx claude-code-templates@latest --skill development/test-detect.

What does test-detect do?

It detects the project’s test framework and runs either the full suite or tests associated with one source file. Its generate mode writes a starter test file based on the source code.

Which frameworks can test-detect detect?

It checks for Vitest, Jest, Playwright, Cypress, pytest, Go test, Cargo, ExUnit, RSpec, and npm test. If several are present, it reports them and defaults to the unit-test framework.

Similar skills

All skills for Testing and QA →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor