Skip to content
Back to skills

Run Tests

ASecurity

Auto-detect project test runner and run it. Internal utility skill used by feature-flow commands for the test phase.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentpythongobash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add sgaunet/claude-plugins --skill run-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sgaunet-run-tests/badge)](https://www.skillsdirectory.com/skills/sgaunet-run-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run-tests
description: Auto-detect project test runner and run it. Internal utility skill used by feature-flow commands for the test phase.
user-invocable: false
allowed-tools: Bash(task:*), Bash(make:*), Bash(go:*), Bash(npm:*), Bash(npx:*), Bash(python:*), Bash(cargo:*), Glob
---

# Run Tests Skill

Auto-detect the project's test runner from build files and run it. Returns pass/fail status with output.

## Detection Logic

Probe for build/config files using **first match wins**:

| Trigger | Command | Fallback |
|---------|---------|----------|
| Taskfile.yml (`test` task) | `task test` | -- |
| Makefile (`test` target) | `make test` | -- |
| go.mod | `go test ./...` | -- |
| package.json (`test` script) | `npm test` | `npx jest` or `npx vitest run` |
| pyproject.toml / setup.py | `python -m pytest` | -- |
| Cargo.toml | `cargo test` | -- |
| None detected | Warn: "No test runner detected" and skip | -- |

## Execution

1. Detect test runner using the table above
2. Run the detected command
3. On success: report "Tests passed"
4. On failure: display output, attempt fix (max 2 retries) — analyze failure, apply fix via Edit, re-run
5. Return final status (pass/fail) and output

## Working Directory

If a `working_directory` context is provided (e.g., a worktree path), run all commands prefixed with `cd <working_directory> &&`. Otherwise, use the current directory.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.