# Test efficacy audit

> Test efficacy audit is an open-source agent skill for developer tools. Measures test coverage for a repository and writes a dated audit report. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-audit/skills/test-efficacy-audit
- **Repository:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** test-efficacy-audit
- **Collection:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill runs the repository's unit and Testcontainers integration tests once, serially, and records line and branch coverage against a fixed threshold. It works in a temporary git worktree of HEAD, so the working tree is left unchanged, and it writes a single dated report under docs/audit.

Before any install or test command runs, the skill shows the commands and asks the user for approval. It picks install and test commands from the lockfile and manifest scripts, adds coverage and single-worker options for the detected runner, and excludes end-to-end tests and tests that need a live external service. If Docker is not running, it asks the user to start it or falls back to unit tests with partial coverage noted as a gap.

The report includes the measured commit, test counts, coverage per top-level folder, and a gaps section for warnings, failures and failing tests. It does not run mutation testing; that is handled by a separate audit skill.

## When your agent uses it

> Writes a dated test efficacy audit report for the current repository: one serial test run (unit tests and Testcontainers integration tests) with code coverage, and the line coverage against a fixed threshold. Runs in a temporary git worktree, so the working tree does not change. Works on any repository and any tech stack. Does not run mutation testing; use /mutation-audit for that. Writes only docs/audit/test-efficacy-audit/test-efficacy-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /test-efficacy-audit — never inferred from user messages.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/test-efficacy-audit)
- [License: Apache-2.0](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/test-efficacy-audit)

## Features

- **Serial test run:** Runs unit and integration tests one process at a time with single-worker options.
- **Coverage thresholds:** Grades line coverage as pass, warn or fail against fixed cutoffs.
- **Testcontainers support:** Includes integration tests that use Testcontainers in the coverage measurement.
- **Isolated worktree:** Measures HEAD in a temporary git worktree so the working tree is untouched.
- **Folder breakdown:** Reports line coverage for each top-level source folder.
- **Dated audit report:** Writes one markdown report with environment, metrics, test results and gaps.

## Good for

- Check how much of the codebase the unit and integration tests actually exercise
- Produce a dated test coverage report for a release review
- Find which source folders have weak test coverage
- Confirm integration tests run and count toward coverage

## Install

### Claude Code

This skill ships in the `nexa-claude-audit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add nexadevapp/nexa-claude-skills-marketplace
/plugin install nexa-claude-audit@nexa-claude-marketplace
```

Or copy only this skill to `~/.claude/skills/test-efficacy-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/test-efficacy-audit &&
cp -R "$tmp/nexa-claude-audit/skills/test-efficacy-audit" ~/.claude/skills/test-efficacy-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/test-efficacy-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/test-efficacy-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/test-efficacy-audit &&
cp -R "$tmp/nexa-claude-audit/skills/test-efficacy-audit" ~/.agents/skills/test-efficacy-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/test-efficacy-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/test-efficacy-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/test-efficacy-audit &&
cp -R "$tmp/nexa-claude-audit/skills/test-efficacy-audit" ~/.cursor/skills/test-efficacy-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/test-efficacy-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/nexadevapp/nexa-claude-skills-marketplace.git --path nexa-claude-audit/skills/test-efficacy-audit
```

Or copy the folder to `~/.gemini/skills/test-efficacy-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/test-efficacy-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/test-efficacy-audit &&
cp -R "$tmp/nexa-claude-audit/skills/test-efficacy-audit" ~/.copilot/skills/test-efficacy-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/test-efficacy-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git
```

Then copy `nexa-claude-skills-marketplace/nexa-claude-audit/skills/test-efficacy-audit` into your agent's skills folder as `test-efficacy-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Test efficacy audit run mutation testing?

No. The skill measures coverage only. Mutation testing is handled by the separate /mutation-audit skill.

### Will Test efficacy audit change my working tree?

No. It runs in a temporary git worktree of HEAD and removes it at the end. The only file it writes in the repository is the report.

### Can Test efficacy audit run without my approval?

No. It shows the install and test commands and asks for approval first. If you decline, it stops and writes no report.

### What happens if Docker is not available?

The skill asks you to start Docker. If you decline, it runs unit tests only and records the coverage as partial in the gaps section.

### How is Test efficacy audit invoked?

Only explicitly with the /test-efficacy-audit command, not inferred from ordinary messages.

### How do I install Test efficacy audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/test-efficacy-audit to use it in all your projects, or to .claude/skills/test-efficacy-audit in one project. Or install the nexa-claude-audit plugin, which includes it: /plugin marketplace add nexadevapp/nexa-claude-skills-marketplace, then /plugin install nexa-claude-audit@nexa-claude-marketplace.

### Does Test efficacy audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Test efficacy audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Test efficacy audit?

The closest alternatives to Test efficacy audit are QA audit, Testing audit, Mutation audit, Test gap audit and Full test audit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [QA audit](https://ai-powered.com/skills/qa-audit): QA audit is an open-source agent skill for developer tools.
- [Testing audit](https://ai-powered.com/skills/testing-audit): Testing audit is an open-source agent skill for developer tools.
- [Mutation audit](https://ai-powered.com/skills/mutation-audit): Mutation audit is an open-source agent skill for developer tools.
- [Test gap audit](https://ai-powered.com/skills/test-gap-audit): Test gap audit is an open-source agent skill for developer tools.
- [Full test audit](https://ai-powered.com/skills/full-test-audit): Full test audit is an open-source agent skill for developer tools.
- [Code metrics audit](https://ai-powered.com/skills/code-metrics-audit): Code metrics audit is an open-source agent skill for developer tools.
- [Skill review](https://ai-powered.com/skills/skill-review): Skill review is an open-source agent skill for developer tools.
- [Test coverage analysis](https://ai-powered.com/skills/test-coverage-analysis): Test coverage analysis is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/test-efficacy-audit
