vibe-adversarial-test-generation

vibe-adversarial-test-generation is a skill for Claude Code from ash1794/vibe-engineering. It costs 68 tokens per session (1,365 once invoked), scanned A, original, MIT.

A test-generation helper for finding edge cases, failure modes, and missing tests tied to requirements. It covers cases such as boundary values, empty or missing inputs, malformed data, concurrency, and resource limits.

In plain words
What is it for?
Creating additional tests after basic tests, checking specification coverage, and preparing for security reviews.
Why use it?
Normal tests show that expected inputs work, but they may miss how code behaves under unusual or invalid conditions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the vibe-engineering plugin — 33 skills shipped together

Good fit Creating additional tests after basic tests, checking specification coverage, and preparing for security reviews.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ash1794/vibe-engineering/vibe-adversarial-test-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ash1794/vibe-engineering --skill vibe-adversarial-test-generation
Clone the repo
git clone --depth 1 https://github.com/ash1794/vibe-engineering

Made for: Claude Code.

Or install vibe-engineering, the plugin that ships this one along with the rest of its 33 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vibe-adversarial-test-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation/github.svg)](https://agentmods.dev/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation)
Your own site
<a href="https://agentmods.dev/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation"><img src="https://agentmods.dev/badge/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vibe-adversarial-test-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation"><img src="https://agentmods.dev/badge/skills/ash1794/vibe-engineering/vibe-adversarial-test-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01365
Opus 5.5 $0.00027 $0.00546
Sonnet 5.5 $0.00014 $0.00273
Haiku 4.5 $0.00007 $0.00136

Measured 28d ago against content hash 34b42e904a57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vibe-adversarial-test-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/vibe-engineering/skills/vibe-adversarial-test-generation/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vibe-adversarial-test-generation

Happy-path tests prove your code works. Adversarial tests prove it doesn't break. Spec-linked tests prove it does what it's supposed to.

When to Use This Skill

  • After writing happy-path tests for a feature
  • Before claiming test coverage is complete
  • When spec requirements lack corresponding tests
  • When preparing for a security review
  • When vibe-spec-sync or vibe-coverage-enforcer reports uncovered requirements

When NOT to Use This Skill

  • Before happy-path tests exist (write those first)
  • For throwaway/prototype code
  • When the function is trivially simple (e.g., getters/setters)

Modes

Mode 1: Adversarial (Edge Cases)

Generate tests that break assumptions across 6 categories.

1. Boundary Values
  • Zero, one, max, max+1 for all numeric inputs
  • Empty string, single char, max-length string
  • Empty array, single element, very large array
  • Exactly at threshold values
2. Nil/Null/Undefined
  • nil pointer as receiver
  • nil arguments to every parameter
  • nil nested fields in structs
  • Returning nil where non-nil expected
3. Type Edge Cases
  • Unicode: emoji, RTL text, zero-width chars, combining chars
  • Strings: newlines, tabs, null bytes, control characters
  • Numbers: NaN, Infinity, -0, very large, very small
  • Dates: leap year, DST transitions, timezone boundaries, epoch
4. Concurrency
  • Two goroutines/threads calling the same function
  • Read during write
  • Close during use
  • Cancel during operation
5. Resource Exhaustion
  • Very large inputs (10MB string, 1M element slice)
  • Disk full simulation
  • Network timeout simulation
  • Memory pressure
6. Malformed Input
  • Invalid JSON/YAML/XML
  • Truncated input (cut off mid-field)
  • Wrong types (string where int expected)
  • Extra fields, missing required fields
  • SQL injection patterns, XSS payloads (for external inputs)

Mode 2: Spec-Driven (Requirement Coverage)

Generate tests that trace back to specific spec requirements.

  1. Read the spec — Find the specification document for the feature under test

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +24 tokens per session 34b42e904a57
  2. 1mo ago First seen · 158 lines · 44 tokens per session scan A 3873b71ed8f5

Subscribe to this mod's changes

vibe-adversarial-test-generation is a skill published in the GitHub repository ash1794/vibe-engineering (164 stars, last pushed 28d ago), licensed MIT. It adds 68 tokens to every session and 1,365 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

Other skills, from other repositories

feature-verify

Feature verification (READ-ONLY, P0-P5). Use when: verifying feature behavior after deployment, validating API responses, diagnosing production issues, post-deploy smoke test. Not for: modifying data (use feature-dev), code review (use codex-review-fast), writing tests (use codex-test-gen), security audit (use…

sd0xdev/sd0x-harness · 75 tokens

test-review

Test coverage review via Codex exec. Use when: reviewing test sufficiency, identifying coverage gaps, test quality audit. Not for: generating tests (use codex-test-gen), code review (use codex-code-review). Output: coverage analysis + gap report.

sd0xdev/sd0x-harness · 56 tokens

post-dev-test

Post-development test completion. Use when: checking test coverage after feature-dev, writing missing integration/e2e tests. Not for: unit test generation (use codex-test-gen), test review (use test-review). Output: test files + coverage report.

sd0xdev/sd0x-harness · 55 tokens

pre-pr-audit

Pre-PR confidence audit with 5-dimension scoring. Use when: final check before commit/push/PR, evaluating PR readiness, assessing test quality + risk + coverage holistically. Triggers: pre-pr, readiness check, confidence audit, final verification, ready to PR, how confident. Not for: code review (use…

sd0xdev/sd0x-harness · 95 tokens

test-deep

Context-aware test orchestration. Use when: smart test selection, failure triage, progressive test ladder, test failure analysis. Not for: writing tests (use post-dev-test), reviewing tests (use codex-test-review), generating tests (use codex-test-gen), full manual run (use verify). Output: test results + triage…

sd0xdev/sd0x-harness · 77 tokens

test-health

Holistic test coverage measurement. Use when: assessing test health, measuring coverage trends, quantitative + qualitative test audit. Not for: running tests (use verify), reviewing test sufficiency only (use codex-test-review), generating tests (use codex-test-gen). Output: multi-dimensional dashboard with coverage…

sd0xdev/sd0x-harness · 70 tokens