# gjalla-test-audit

Audits test suites to uncover false confidence, over-mocked logic, and assertions that conceal code regressions. Helpful when hardening test suites before major updates.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 878 installs · ★ 3
- Author: gjalla
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gjalla/engineering/tree/HEAD/skills/gjalla-test-audit/SKILL.md
- Updated: 2026-09-20
- HTML: https://affpapa.org/en/nevibecode/skills/gjalla-test-audit

## What it does

The skill examines your testing setup across five structured phases. First, it maps directories and distinguishes between isolated unit tests and integration tests that use real backends like PGlite or SQLite. Then it inspects tests alongside their corresponding source files to verify that real application code gets exercised.

It flags tests with heavy ORM mocking, assertions verifying hardcoded mock returns, and cases where business logic is copy-pasted directly into the test file. A mock chain that intercepts every query will pass even if database queries target non-existent columns.

Findings are grouped into four action tiers alongside bug reports. Once reviewed, the skill executes a staged cleanup: deleting useless test files, fixing inverted assertions, and revealing honest gaps in coverage.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-test-audit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gjalla-test-audit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gjalla-test-audit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-test-audit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gjalla-test-audit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-test-audit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gjalla-test-audit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install gjalla/engineering gjalla-test-audit
```

2. **Manually: put the files in place**
- File: `.github/skills/gjalla-test-audit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-test-audit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/gjalla/engineering --path skills/gjalla-test-audit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gjalla-test-audit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add gjalla/engineering --skill gjalla-test-audit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/gjalla/engineering/tree/HEAD/skills/gjalla-test-audit/SKILL.md

## When to use it
- locate tautological mocks that pass regardless of schema bugs
- catch tests asserting wrong behaviors that match broken source logic
- purge redundant unit tests when real integration tests exist
- generate an accurate coverage deficit map before writing new tests

## Example prompts
- Run an audit on the test suite to locate tautological mocks
- Check the database test layer and classify weak tests into tiers
- Prepare a staged test cleanup plan to eliminate redundant mocks

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [skill-creator](https://affpapa.org/en/nevibecode/skills/skill-creator.md) — skill · 414180 installs
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs

From the same set: [gjalla/engineering](https://affpapa.org/en/nevibecode/by/gjalla/engineering.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
