# Vibe adversarial test generation

> Vibe adversarial test generation is an open-source agent skill for developer tools. Generates edge-case and spec-linked tests to check code beyond the happy path. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ash1794/vibe-engineering/tree/master/plugins/vibe-engineering/skills/vibe-adversarial-test-generation
- **Repository:** https://github.com/ash1794/vibe-engineering
- **GitHub stars:** 163
- **License:** MIT
- **Skill name:** vibe-adversarial-test-generation
- **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 write adversarial tests for a function, covering boundary values, nil or null inputs, unusual character and number formats, concurrent access, resource exhaustion and malformed input. For each adversarial input the agent decides whether the code should return an error, fall back gracefully, or never panic, then writes the tests as table-driven cases and runs them to surface panics or wrong error handling.

A second mode works from a specification document. The agent extracts atomic, testable requirements, flags vague ones that cannot be tested, and maps existing tests to requirement IDs using comment markers, test name patterns or semantic matching. It then writes tests for uncovered requirements with traceability markers and reports the coverage change before and after.

The skill is written for use after happy-path tests exist. It names examples in Go, Python and TypeScript for the traceability markers and expects the agent to read the target code and any spec file in the project.

## When your agent uses it

> Generates edge case, failure mode, and spec-driven test cases. Covers boundary values, nil inputs, concurrency, resource exhaustion, malformed data, and requirement-linked traceability tests. Use after happy-path tests exist and before claiming coverage is complete, when requirements lack tests, or before a security review.

## 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-adversarial-test-generation)
- [License: MIT](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-adversarial-test-generation)

## Features

- **Boundary value tests:** Covers zero, maximum, just-over-maximum and threshold inputs for numbers, strings and collections.
- **Nil and malformed input:** Checks nil arguments, wrong types, truncated payloads, missing fields and injection patterns.
- **Unicode and type edge cases:** Exercises emoji, right-to-left text, control characters, NaN, infinity and date edge cases.
- **Concurrency and resource limits:** Tests simultaneous calls, read during write, cancellation and very large inputs.
- **Requirement traceability:** Maps tests to spec requirement IDs using comment markers or test name patterns.
- **Coverage gap reporting:** Reports requirement coverage before and after the new tests and lists remaining gaps.

## Good for

- Add edge case tests for a parsing function before a release
- Find which spec requirements in a feature have no tests
- Generate nil and malformed input tests before a security review
- Check that a concurrent function handles cancellation correctly
- Write tests linked to requirement IDs in a specification

## 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-adversarial-test-generation`:

```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-adversarial-test-generation &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-adversarial-test-generation" ~/.claude/skills/vibe-adversarial-test-generation &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/vibe-adversarial-test-generation` 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-adversarial-test-generation &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-adversarial-test-generation" ~/.agents/skills/vibe-adversarial-test-generation &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/vibe-adversarial-test-generation` 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-adversarial-test-generation &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-adversarial-test-generation" ~/.cursor/skills/vibe-adversarial-test-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/vibe-adversarial-test-generation` 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-adversarial-test-generation
```

Or copy the folder to `~/.gemini/skills/vibe-adversarial-test-generation` yourself.

### VS Code

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

```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-adversarial-test-generation &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-adversarial-test-generation" ~/.copilot/skills/vibe-adversarial-test-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/vibe-adversarial-test-generation` 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-adversarial-test-generation` into your agent's skills folder as `vibe-adversarial-test-generation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use Vibe adversarial test generation?

After happy-path tests exist, before claiming coverage is complete, when requirements lack tests, or before a security review.

### When should I not use Vibe adversarial test generation?

Before happy-path tests exist, for throwaway prototype code, or for trivially simple functions such as getters and setters.

### What does Vibe adversarial test generation expect from the project?

A function under test and, for spec mode, a specification document. Test markers use the req:ID comment format in Python, Go or TypeScript.

### Does Vibe adversarial test generation install scripts or tools?

The skill folder contains a single SKILL.md file and no scripts.

### How do I install Vibe adversarial test generation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/vibe-adversarial-test-generation to use it in all your projects, or to .claude/skills/vibe-adversarial-test-generation 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 adversarial test generation 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 adversarial test generation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Vibe adversarial test generation?

The closest alternatives to Vibe adversarial test generation are Vibe coverage enforcer, Vibe anti rationalization check, Vibe concurrent test safety, Vibe fuzz parser inputs and Vibe gap analysis.

## Where this comes from

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

## Alternatives

- [Vibe coverage enforcer](https://ai-powered.com/skills/vibe-coverage-enforcer): Vibe coverage enforcer 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.
- [Vibe concurrent test safety](https://ai-powered.com/skills/vibe-concurrent-test-safety): Vibe concurrent test safety is an open-source agent skill for developer tools.
- [Vibe fuzz parser inputs](https://ai-powered.com/skills/vibe-fuzz-parser-inputs): Vibe fuzz parser inputs is an open-source agent skill for developer tools.
- [Vibe gap analysis](https://ai-powered.com/skills/vibe-gap-analysis): Vibe gap analysis is an open-source agent skill for developer tools.
- [Vibe devil advocate review](https://ai-powered.com/skills/vibe-devil-advocate-review): Vibe devil advocate review is an open-source agent skill for developer tools.
- [Property based testing](https://ai-powered.com/skills/property-based-testing): Property based testing is an open-source agent skill for developer tools.
- [Vibe scenario matrix](https://ai-powered.com/skills/vibe-scenario-matrix): Vibe scenario matrix is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/vibe-adversarial-test-generation
