# Vibe concurrent test safety

> Vibe concurrent test safety is an open-source agent skill for developer tools. Audits Go tests for race conditions, shared mock state and cleanup ordering. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ash1794/vibe-engineering/tree/master/plugins/vibe-engineering/skills/vibe-concurrent-test-safety
- **Repository:** https://github.com/ash1794/vibe-engineering
- **GitHub stars:** 163
- **License:** MIT
- **Skill name:** vibe-concurrent-test-safety
- **Collection:** https://github.com/ash1794/vibe-engineering
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent to review test code that runs goroutines, async work or shared mutable state, and to flag the concurrency bugs that usually cause flaky results. It lists common patterns to avoid, such as reading mock fields directly while a goroutine writes to them, closing resources before a background worker has stopped, and relying on fixed sleeps to wait for startup.

The agent works through an audit checklist covering accessor use for mock state, context cancellation before cleanup, joining goroutines before a test ends, replacing sleeps with channels, waitgroups or polling, and running tests under the race detector and repeated runs. Its suggested output is a table of issues with line references and fixes, followed by code snippets for each fix.

The examples are written in Go and rely on the race detector and go test flags, so the skill is aimed at Go test suites. It is a plain instruction file with no bundled scripts.

## When your agent uses it

> Audits tests for concurrency safety — race conditions, shared mock state, cleanup ordering. Use when writing tests that involve goroutines, async operations, or shared mutable state.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-concurrent-test-safety)
- [License: MIT](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-concurrent-test-safety)

## Features

- **Race condition detection:** Spots unsynchronized access to shared mock fields and state touched by goroutines.
- **Cleanup ordering checks:** Verifies that contexts are cancelled and background workers stop before resources close.
- **Timing-based wait removal:** Flags fixed sleeps used for synchronization and suggests readiness checks instead.
- **Goroutine join audit:** Confirms spawned goroutines finish before a test returns, using channels or waitgroups.
- **Structured audit report:** Produces a table of issues with line references, fixes and code snippets.

## Good for

- Audit a Go test file that starts a daemon for race conditions
- Find why a test passes locally but fails intermittently in CI
- Fix shared mock access in tests that use goroutines
- Reorder cleanup so a server shuts down before its resources close
- Replace sleep-based waits in async tests with readiness checks

## Install

### Claude Code

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

```sh
/plugin marketplace add ash1794/vibe-engineering
/plugin install vibe-engineering@vibe-plugins
```

Or copy only this skill to `~/.claude/skills/vibe-concurrent-test-safety`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/vibe-concurrent-test-safety &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-concurrent-test-safety" ~/.claude/skills/vibe-concurrent-test-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/vibe-concurrent-test-safety` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/vibe-concurrent-test-safety` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/vibe-concurrent-test-safety &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-concurrent-test-safety" ~/.agents/skills/vibe-concurrent-test-safety &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/vibe-concurrent-test-safety` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/vibe-concurrent-test-safety` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/vibe-concurrent-test-safety &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-concurrent-test-safety" ~/.cursor/skills/vibe-concurrent-test-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/vibe-concurrent-test-safety` 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/ash1794/vibe-engineering.git --path plugins/vibe-engineering/skills/vibe-concurrent-test-safety
```

Or copy the folder to `~/.gemini/skills/vibe-concurrent-test-safety` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/vibe-concurrent-test-safety &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-concurrent-test-safety" ~/.copilot/skills/vibe-concurrent-test-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/vibe-concurrent-test-safety` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git
```

Then copy `vibe-engineering/plugins/vibe-engineering/skills/vibe-concurrent-test-safety` into your agent's skills folder as `vibe-concurrent-test-safety`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use Vibe concurrent test safety?

When writing tests that launch goroutines or async operations, use shared mock objects across goroutines, fail intermittently, or start and stop daemons or servers during tests.

### When should I not use Vibe concurrent test safety?

For purely synchronous tests, tests already verified race-free with the -race flag, or simple mock tests with single-threaded access.

### Does Vibe concurrent test safety run any scripts or tools?

No. The skill ships only its SKILL.md file and has no scripts, so it works by guiding the agent's review of the test code.

### What checks does the audit include?

Accessor use for mock fields, context cancellation before cleanup, goroutine joins, removal of sleep-based synchronization, polling for async assertions, passing with -race and passing across repeated runs with -count=100.

### How do I install Vibe concurrent test safety in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/vibe-concurrent-test-safety to use it in all your projects, or to .claude/skills/vibe-concurrent-test-safety in one project. Or install the vibe-engineering plugin, which includes it: /plugin marketplace add ash1794/vibe-engineering, then /plugin install vibe-engineering@vibe-plugins.

### Does Vibe concurrent test safety 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 Vibe concurrent test safety?

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 Vibe concurrent test safety?

The closest alternatives to Vibe concurrent test safety are Go concurrency review, Go test quality, Axiom audit concurrency, Axiom analyze test failures and Axiom audit testing.

## Where this comes from

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

## Alternatives

- [Go concurrency review](https://ai-powered.com/skills/go-concurrency-review): Go concurrency review is an open-source agent skill for developer tools.
- [Go test quality](https://ai-powered.com/skills/go-test-quality): Go test quality is an open-source agent skill for developer tools.
- [Axiom audit concurrency](https://ai-powered.com/skills/axiom-audit-concurrency): Axiom audit concurrency is an open-source agent skill for developer tools.
- [Axiom analyze test failures](https://ai-powered.com/skills/axiom-analyze-test-failures): Axiom analyze test failures is an open-source agent skill for developer tools.
- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing is an open-source agent skill for developer tools.
- [Vibe adversarial test generation](https://ai-powered.com/skills/vibe-adversarial-test-generation): Vibe adversarial test generation is an open-source agent skill for developer tools.
- [Vibe anti rationalization check](https://ai-powered.com/skills/vibe-anti-rationalization-check): Vibe anti rationalization check is an open-source agent skill for developer tools.
- [Vibecheck](https://ai-powered.com/skills/vibecheck): Vibecheck is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/vibe-concurrent-test-safety
