# Adversarial Spec

> Drafts a PRD or tech spec, has other LLMs critique it in parallel, and revises it with Claude until every model agrees.

Adversarial Spec is an open-source Claude Code plugin by zscole for writing product specs. Claude drafts the document, sends it to other models for critique, adds its own, revises, and repeats until all of them sign off. The idea is that several models arguing over a spec catch gaps a single reviewer would miss.

What you can do with it
- Describe a product, or hand it an existing document, and get a PRD or a technical spec back
- Start with an optional interview that captures your requirements first
- Have models from OpenAI, Google, xAI, Mistral, Groq, Deepseek and others critique each round in parallel, through their APIs, OpenRouter, AWS Bedrock or the Codex and Gemini CLIs
- Steer the critique toward security, scalability, performance, UX, reliability or cost, or give the opponent models professional personas
- Review the result yourself and run more cycles, see a diff between rounds, resume a saved session, track the cost of each run, and export the final spec as a task list

How it connects
- In Claude Code: claude plugin marketplace add zscole/adversarial-spec, then claude plugin install adversarial-spec. Run it with /adversarial-spec and a description of what you're building.
- It needs Python 3.10 or later, the litellm package, and an API key for at least one other model provider (or a signed-in Codex or Gemini CLI).
- The final document is written to spec-output.md or tech-spec-output.md, and can also be sent to Telegram if you set that up.

Good to know
- Each critique round calls the other providers on your own keys, so runs cost money with those providers; the plugin reports the cost.
- MIT licensed.

- Type: Skill
- Made by: zscole
- Category: Project management
- Formats: Skills
- Version: 9e5fe12
- Website: https://github.com/zscole/adversarial-spec
- Source: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec
- Page: https://pluginboard.ai/skills/adversarial-spec

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the adversarial-spec folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Claude

In Claude (web or desktop): Download the adversarial-spec folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Gemini

In Gemini: Download the adversarial-spec folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.copilot/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Cursor

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.cursor/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Claude Code

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.claude/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

Or as a Claude Code plugin:

```text
/plugin marketplace add zscole/adversarial-spec
/plugin install adversarial-spec@adversarial-spec
```

### Codex

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.agents/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Antigravity

In Antigravity: Copy the adversarial-spec folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Gemini CLI

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.gemini/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Replit

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec .agents/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### OpenClaw

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.openclaw/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### OpenCode

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.config/opencode/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

### Hermes Agent

Run in your terminal:

```shell
npx -y degit zscole/adversarial-spec/skills/adversarial-spec ~/.hermes/skills/adversarial-spec
```

View the folder on GitHub: https://github.com/zscole/adversarial-spec/tree/HEAD/skills/adversarial-spec

---
From Pluginboard (https://pluginboard.ai).
