SKILL

test-detect

Auto-detect testing framework and run relevant tests. Identifies Jest, Vitest, Playwright, Cypress, pytest, Go test, and others. Can run all tests, specific file tests, or generate basic tests for new code. Usage - /test-detect, /test-detect src/auth/login.ts, /test-detect generate src/utils.ts

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Test Detect
  • Workflow
  • Step 1: Detect the testing framework
  • Step 2: Parse arguments
  • Step 3: Run full test suite
  • Step 4: Run tests for a specific file
  • Step 5: Generate tests
  • Tips

Automatically detect the testing framework in the current project and run the right tests. Check for these files in order (first match wins): | Check | Framework | Run Command | |-------|-----------|-------------| | vitest.config. exists OR vitest in devDeps | Vitest | npx vitest run | | jest.config. exists OR jest in devDeps | Jest | npx jest | | playwright.config. exists | Playwright | npx playwright test | | cypress.config. exists | Cypress | npx cypress run | | pytest.ini or conftest.py or pyproject.toml with [tool.pytest] | pytest | python -m pytest | | go.mod exists | Go test | go test ./... | | Cargo.toml exists | Rust/cargo | cargo test | | mix.exs exists | ExUnit | mix test | | Gemfile with rspec | RSpec | bundle exec rspec | | package.json has scripts.test | npm test | npm test | Report the detected framework before proceeding. Check $ARGUMENTS for the mode: No arguments or "all": Run the full test suite (Step 3) File path (e.g., src/auth/login.ts): Run tests for that file (Step 4) "generate" + file path (e.g., generate src/utils.ts): Generate tests (Step 5) Run the detected test command. After completion: Report total tests, passed, failed, skipped If tests fail, show th

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/development/test-detect/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:44.834Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.