# Run Tests

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

- **Type:** Skill
- **Install:** `agentstack add skill-sgaunet-claude-plugins-run-tests`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sgaunet](https://agentstack.voostack.com/s/sgaunet)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sgaunet](https://github.com/sgaunet)
- **Source:** https://github.com/sgaunet/claude-plugins/tree/main/plugins/software-engineering/skills/run-tests

## Install

```sh
agentstack add skill-sgaunet-claude-plugins-run-tests
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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  &&`. Otherwise, use the current directory.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sgaunet](https://github.com/sgaunet)
- **Source:** [sgaunet/claude-plugins](https://github.com/sgaunet/claude-plugins)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sgaunet-claude-plugins-run-tests
- Seller: https://agentstack.voostack.com/s/sgaunet
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
