SkillsReviewed · zscole

Adversarial Spec

Adversarial Spec is a Claude skill for product managers and developers who want several AI models to challenge a specification, but its agreement signal can overlook failed reviewers and does not establish correctness. It combines document-writing instructions with Python scripts for parallel critiques, focused reviews, saved sessions and task extraction.

Researched 15 Nov 2026

In short.

Adversarial Spec is a Claude skill for product teams and developers seeking AI feedback on requirements and architecture documents, but it requires human judgment and can report agreement despite failed reviewers. Its Python scripts collect parallel model responses through LiteLLM or authenticated command-line tools. The instructions describe an iterative debate, while each critique invocation performs one round without automatically reconciling revisions. Current compatibility, actual costs and improvements in specification quality are unknown; nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Scope covers all 18 captured files under skills/adversarial-spec at commit f90cf0c36c3999b8dc272c9c06dee9846076f369: SKILL.md, implementation and support files, package and typing markers, mutation configuration and test source. The repository-level LICENSE is included as the related notice above that folder. Other repository content, installed dependency implementations, external provider terms and subsequent revisions are outside this scope. No installation, command, test, model call, Telegram exchange or complete document journey was executed; runtime behavior, actual charges and output quality remain unassessed.

The overview

Identity

The resource is the skills/adversarial-spec folder in zscole/adversarial-spec. Its main entry is SKILL.md, which tells Claude how to draft and refine a product requirements document, or PRD, and a technical specification through repeated model critiques. Companion Python scripts provide the model calls and supporting utilities. The captured source is available at [https://github.com/zscole/adversarial-spec/tree/f90cf0c36c3999b8dc272c9c06dee9846076f369/skills/adversarial-spec].

Assessment

The strongest fit is assisted specification review: gathering several critiques, exposing ambiguities and making revision decisions visible. The supplied PRD criteria cover users, measurable outcomes and scope; the technical criteria cover contracts, data models, security, failure handling and deployment.

It needs supervision when choosing a final revision or interpreting consensus. The scripts do not independently establish that requirements are accurate, feasible or complete. No executed examples, comparative benchmarks or measured quality gains establish how much benefit the debate provides.

Users

Product managers and founders can use the PRD structure to clarify a problem, target users, success measures and exclusions. Developers and architects can use the technical structure to examine implementation decisions and missing contracts. Beginners receive a detailed document outline, but need help configuring Python, credentials and model access. Experienced developers can inspect the prompts, integrate existing documents and consume structured JSON responses.

The instructions require user input for unresolved product decisions. Someone who understands the intended product must remain available to resolve conflicting critiques and reject invented requirements.

Capabilities

The instructions support starting from an existing document or drafting one from a concept, with an optional requirements interview. Review modifiers include security, scalability, performance, user experience, reliability and cost. Ten predefined professional personas and custom personas offer different perspectives. Preserve-intent prompts ask reviewers to justify removals and distinguish errors, risks and preferences.

The scripts provide parallel critiques, confirmation prompts for early agreement, additional context files, JSON output, saved profiles, sessions, checkpoints and document diffs. Task extraction converts a specification into model-generated task records. Optional Telegram integration sends critique summaries, accepts feedback during a polling period and can send the final document. These are source-level capabilities; their runtime behavior was not assessed.

Using it

Requirements

The guide specifies Python 3.10 or later and LiteLLM, together with provider API credentials, configured AWS Bedrock access or an authenticated Codex or Gemini CLI. LiteLLM is imported before command dispatch, so even CLI-backed calls and utility commands require it. The skill assumes a Claude environment with shell, file-reading, file-writing and user-question tools.

Sessions, profiles and checkpoints require writable local storage. Telegram requires a bot token and chat identifier. The captured folder does not provide pinned dependency versions or hardware sizing. Provider detection checks environment-variable presence or executable availability; it does not prove that authentication or model access works.

Mechanism

The skill assigns Claude an active reviewing and synthesis role. Each critique command sends the same current document to selected models in parallel and collects their responses. Review prompts request critique plus a revised document between [SPEC] and [/SPEC], or an [AGREE] marker. The surrounding assistant must evaluate the feedback, consult the user where necessary and initiate subsequent rounds.

API critique calls request up to 8,000 output tokens and use a default timeout of 600 seconds per attempt. Each model has up to three attempts, separated by one-second and two-second retry delays. The documented ten-round limit and requirement for Claude's agreement are instructions rather than enforced script controls.

Selecting a persona replaces the normal PRD or technical system prompt rather than appending to its checklist. A specialist persona therefore does not automatically retain the full document-review criteria.

Setup

Acquire the complete folder at the pinned source revision, preserving SKILL.md and the scripts directory together. SKILL.md alone describes operations that depend on those companion files. The original entry point is [https://github.com/zscole/adversarial-spec/tree/main/skills/adversarial-spec]; the pinned address in Identity identifies the specific captured source.

Install LiteLLM in the intended Python environment and configure the chosen provider or authenticated CLI. The providers command lists detected configuration. Explicit model selection makes the intended reviewers clear; without it, the code chooses one default model from available configuration. An end-to-end installation procedure for a particular assistant host is not established by the captured folder.

Example

For an existing authentication design, an illustrative invocation from the repository root is: python3 skills/adversarial-spec/scripts/debate.py critique --models gpt-4o,gemini/gemini-2.0-flash --doc-type tech --focus security --preserve-intent --json < docs/auth-spec.md

This requests two parallel security-focused reviews while asking reviewers to preserve deliberate design choices. The JSON structure includes each model's response, extracted specification, agreement flag, error and usage estimate. The model names come from the supplied examples; their current availability is unknown. This command was not run, and no resulting critique or quality improvement is established.

Assessment & evidence

Limitations

Consensus handling is weaker than the guide describes. The code calculates all_agreed using only successful responses, so it permits an agreement result despite a failed selected reviewer. Model failures are reported without necessarily producing a failing process exit. Agreement detection accepts the literal [AGREE] substring anywhere in a response; it does not validate the surrounding meaning, require identical revisions or include Claude's judgment.

Session persistence can save an unintended revision. Results arrive in completion order, and the first nonempty extracted specification becomes the next saved document without combining critiques. Checkpoints retain the round's input document; session history records agreement and errors rather than full responses. Context attachments and several execution settings are not stored in SessionState.

The documented guarantee that all model calls use Bedrock is not upheld across every path. Task extraction calls LiteLLM directly without applying Bedrock routing. Resume replaces the model list after setup and validation, which can restore CLI routes outside that routing. The advertised Bedrock alias command also terminates with an error instead of creating an alias.

Specifications and attached context are transmitted to the chosen model service. Telegram adds another destination for summaries and optional final documents, while saved documents remain readable in local JSON and Markdown files. CLI wrappers enable Codex --full-auto and Gemini -y; they do not themselves enforce review-only tool use. Effective CLI permissions and provider data-retention terms are unknown.

Why the approach may help

The plausible benefit comes from asking several reviewers to challenge the same document against explicit criteria, then making a human decide which criticisms matter. Context attachments can expose integration constraints, and preserve-intent prompts can discourage replacing distinctive choices with generic preferences. These are potential benefits inferred from the design, not measured results.

Agreement indicates model responses under particular prompts. It does not verify user needs, implementation feasibility, security properties or production readiness, even when the prompts use those terms.

Alternatives

The same script supports a single explicit reviewer, which offers a simpler starting point with fewer model calls but fewer independent responses. Another option is to use the supplied document checklists in a human-led review without running parallel model calls. These are practical alternatives inferred from the resource's structure; comparative effort, cost and quality were not measured. No evidence establishes a comparison with competing products.

Evidence

The captured folder contains the skill instructions, implementation modules, package markers, a typing marker, mutation-testing configuration and seven test modules. The test source covers CLI behavior, model calls, parsing, prompts, provider configuration, sessions and Telegram. Provider and subprocess interactions are mocked in the supplied tests, and filesystem checks use temporary locations.

No code or tests were executed. The files therefore establish implementation details and intended assertions, not passing results or live provider interoperability. The mutation configuration deliberately excludes numerous configuration, pricing and informational lines; no coverage percentage or mutation score is established.

Access & freshness

Costs

Actual operating cost is unknown. API calls, AWS usage and CLI account or subscription requirements depend on external providers. More reviewers, repeated rounds and retries create additional opportunities for usage charges. The code does not enforce an overall spending limit.

Displayed costs are estimates calculated from a hard-coded price table labelled approximate as of 2024, with generic fallback rates for unknown models. Listed CLI models receive zero token-price entries, which does not establish that access is free. Gemini CLI token counts are estimated from character counts.

JSON includes cost fields, while the text cost summary requires --show-cost. The tracker lives within one process and is not persisted with sessions; task extraction also bypasses it. Consequently, these figures do not establish a complete bill across a multi-round debate.

Rights

The accompanying repository-level MIT licence names Zak as the 2025 copyright holder. It permits use, modification, redistribution, sublicensing and sale of the software and associated documentation, provided the copyright and permission notice accompanies copies or substantial portions. It supplies no warranty. The repository licence does not establish rights or terms for external model services or generated content.

Freshness

The supplied capture is dated 2026-11-15T19:09:30.654Z and identifies commit f90cf0c36c3999b8dc272c9c06dee9846076f369. The scripts package declares version 1.0.0; that declaration does not establish a release date or current compatibility.

Current model availability, provider prices and installed CLI behavior are unknown. Some documentation and implementation already differ: the guide advertises minimal Codex reasoning, while the parser accepts low, medium, high and xhigh. Compatibility should be checked against the exact dependencies and CLI versions intended for use.

Next steps

Start with a small document suitable for disclosure to the chosen provider, explicitly name the reviewers and retain their complete JSON responses. Check every selected reviewer's error and response before treating the round as complete. Reconcile critiques deliberately and inspect the saved document before resuming a session.

Confirm current model access, dependency compatibility and billing separately from the script's estimates. Use a restricted working directory for CLI-backed reviews and inspect effective tool permissions. If Bedrock-only routing is required, resolve the task-export and resume gaps before relying on it. Keep stakeholder approval and engineering validation separate from model agreement.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/adversarial-spec/SKILL.mdselected · checked 2026-11-15
skills/adversarial-spec/scripts/__init__.pyselected · checked 2026-11-15
skills/adversarial-spec/scripts/debate.pyselected · checked 2026-11-15
skills/adversarial-spec/scripts/models.pyselected · checked 2026-11-15
skills/adversarial-spec/scripts/prompts.pyselected · checked 2026-11-15
skills/adversarial-spec/scripts/providers.pyselected · checked 2026-11-15
skills/adversarial-spec/scripts/py.typedselected · checked 2026-11-15
skills/adversarial-spec/scripts/session.pyselected · checked 2026-11-15