Skip to content
Skill

Vibe adversarial test generation

Generates edge-case and spec-linked tests to check code beyond the happy path

Vibe adversarial test generation is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
163
Last commit
License
MIT
Listing updated

Similar skills

About Vibe adversarial test generation

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/vibe-adversarial-test-generation:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/vibe-adversarial-test-generation to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/vibe-adversarial-test-generation to use it in every project:

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Vibe adversarial test generation 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.

More from ash1794/vibe-engineering

  1. Checks finished work against its acceptance criteria before it is marked done

    • Open source
    • 163 GitHub stars
    • Developer tools
  2. Checks your own work for test tampering, skipped requirements and unverified claims

    • Open source
    • 163 GitHub stars
    • Developer tools
  3. Guides an agent to combine commits from parallel branches with sequential cherry-picks

    • Open source
    • 163 GitHub stars
    • Developer tools
  4. Audits Go tests for race conditions, shared mock state and cleanup ordering

    • Open source
    • 163 GitHub stars
    • Developer tools
  5. Checks test coverage by risk tier and maps spec requirements to tests and code

    • Open source
    • 163 GitHub stars
    • Developer tools
  6. Captures architecture decisions from diffs and conversations into an ADR-style log

    • Open source
    • 163 GitHub stars
    • Developer tools