# Adversarial code review pass integrity

> Adversarial code review pass integrity is an open-source agent skill for developer tools. Reviews a code diff for data integrity risks like partial writes and lost updates. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/adversarial-code-review-pass-integrity
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** adversarial-code-review-pass-integrity
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a focused review pass over a code diff, looking at data integrity: multi-item writes that need to be atomic, unguarded overwrites on contested resources, retries without idempotency, and ordering assumptions across async events. For each concern it asks the agent to cite the file and line, describe the concrete failure scenario, and propose a specific fix. Findings are graded CRITICAL, IMPORTANT or SUGGESTION.

The skill is written to be one of several parallel passes spawned by an adversarial code review coordinator, and it is meant to run inside a session that coordinator starts. It tells the agent to check the codebase for existing transaction helpers, idempotency middleware or shared repository layers before flagging something as missing, and it excludes single-item writes and fixture setup or teardown from scrutiny.

The skill is a single SKILL.md with no scripts. It expects a diff to review and works through the reasoning itself, and its findings are meant to be validated by a separate checker before anything is posted.

## When your agent uses it

> Reviews a diff through the lens of data integrity: multi-item mutations, atomicity, ordering, idempotency. Use only when the adversarial-code-review coordinator spawns a session naming it, alongside the security and schema passes.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/adversarial-code-review-pass-integrity)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/adversarial-code-review-pass-integrity)

## Features

- **Multi-item mutation checks:** Flags writes that must succeed or fail together but are not wrapped in a transaction.
- **Concurrency guard review:** Looks for unconditional puts or updates on contested resources and missing version or condition checks.
- **Idempotency review:** Flags retries of non-idempotent operations that lack an idempotency key.
- **Ordering and sequencing:** Identifies dependence on ordering across independent async events without a sequencing mechanism.
- **Codebase-aware findings:** Checks for existing helpers and shared layers before reporting missing implementations.
- **Severity-graded output:** Reports each finding with file and line, failure scenario, fix and a CRITICAL, IMPORTANT or SUGGESTION rating.

## Good for

- Review a pull request diff for partial write risks
- Check whether a new database update needs a condition expression
- Look for retries that could duplicate writes
- Audit an error-handling path for missing rollback
- Verify that async event handlers do not rely on unguaranteed ordering

## Install

### Claude Code

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

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/adversarial-code-review-pass-integrity`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/adversarial-code-review-pass-integrity &&
cp -R "$tmp/skills/adversarial-code-review-pass-integrity" ~/.claude/skills/adversarial-code-review-pass-integrity &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/adversarial-code-review-pass-integrity` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/adversarial-code-review-pass-integrity` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/adversarial-code-review-pass-integrity &&
cp -R "$tmp/skills/adversarial-code-review-pass-integrity" ~/.agents/skills/adversarial-code-review-pass-integrity &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/adversarial-code-review-pass-integrity` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/adversarial-code-review-pass-integrity` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/adversarial-code-review-pass-integrity &&
cp -R "$tmp/skills/adversarial-code-review-pass-integrity" ~/.cursor/skills/adversarial-code-review-pass-integrity &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/adversarial-code-review-pass-integrity` 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/aws-solutions/konductor.git --path skills/adversarial-code-review-pass-integrity
```

Or copy the folder to `~/.gemini/skills/adversarial-code-review-pass-integrity` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/adversarial-code-review-pass-integrity`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/adversarial-code-review-pass-integrity &&
cp -R "$tmp/skills/adversarial-code-review-pass-integrity" ~/.copilot/skills/adversarial-code-review-pass-integrity &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/adversarial-code-review-pass-integrity` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/adversarial-code-review-pass-integrity` into your agent's skills folder as `adversarial-code-review-pass-integrity`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Adversarial code review pass integrity trigger?

It is meant to be used when an adversarial code review coordinator spawns a session that names it, alongside security and schema passes. It is not meant for general use outside that workflow.

### Does Adversarial code review pass integrity change any code?

No. It produces a findings list for a diff, and its output is meant to be checked by a separate validator before anything is posted to a pull request.

### Does Adversarial code review pass integrity require any scripts or tools?

The skill has no scripts and does not set allowed tools. It works from the diff and the codebase it is run in.

### How do I install Adversarial code review pass integrity in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/adversarial-code-review-pass-integrity to use it in all your projects, or to .claude/skills/adversarial-code-review-pass-integrity in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Adversarial code review pass integrity 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 Adversarial code review pass integrity?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Adversarial code review pass integrity?

The closest alternatives to Adversarial code review pass integrity are Adversarial code review pass schema, Adversarial code review pass security, Adversarial code review, Code review loop and Code review expert.

## Where this comes from

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

## Alternatives

- [Adversarial code review pass schema](https://ai-powered.com/skills/adversarial-code-review-pass-schema): Adversarial code review pass schema is an open-source agent skill for developer tools.
- [Adversarial code review pass security](https://ai-powered.com/skills/adversarial-code-review-pass-security): Adversarial code review pass security is an open-source agent skill for security.
- [Adversarial code review](https://ai-powered.com/skills/adversarial-code-review): Adversarial code review is an open-source agent skill for security.
- [Code review loop](https://ai-powered.com/skills/code-review-loop): Code review loop is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-martinffx): Code review is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/adversarial-code-review-pass-integrity
