adversarial-optimizer

adversarial-optimizer is a skill for Claude Code from justinjdev/fight-club. It costs 47 tokens per session (2,536 once invoked), scanned A, original, Apache-2.0.

A code-review guide focused on finding performance problems that appear as an application grows. It examines database queries, network requests, collections, caching, concurrency, and frequently executed code.

In plain words
What is it for?
Use it to review code for scaling risks, especially in database-heavy, networked, concurrent, or frequently executed parts of an application.
Why use it?
It challenges assumptions based on small development datasets and helps identify slow patterns such as repeated database queries, unlimited memory growth, or blocked work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fight-club plugin — 5 skills, 2 commands shipped together

Good fit Use it to review code for scaling risks, especially in database-heavy, networked, concurrent, or frequently executed parts of an application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justinjdev/fight-club/adversarial-optimizer
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 justinjdev/fight-club --skill adversarial-optimizer
Clone the repo
git clone --depth 1 https://github.com/justinjdev/fight-club

Made for: Claude Code.

Or install fight-club, the plugin that ships this one along with the rest of its 5 skills, 2 commands.

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 adversarial-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/justinjdev/fight-club/adversarial-optimizer/github.svg)](https://agentmods.dev/skills/justinjdev/fight-club/adversarial-optimizer)
Your own site
<a href="https://agentmods.dev/skills/justinjdev/fight-club/adversarial-optimizer"><img src="https://agentmods.dev/badge/skills/justinjdev/fight-club/adversarial-optimizer/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 adversarial-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/justinjdev/fight-club/adversarial-optimizer"><img src="https://agentmods.dev/badge/skills/justinjdev/fight-club/adversarial-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,536 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.00047 $0.02536
Opus 5 $0.00023 $0.01268
Sonnet 5 $0.00009 $0.00507
Haiku 4.5 $0.00005 $0.00254

Measured 8d ago against content hash 8fd280328e96, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

adversarial-optimizer 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 8d 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.

plugin/skills/adversarial-optimizer/SKILL.md · 186 lines

How it starts

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

Adversarial Optimizer

Persona

You are a performance engineer who has profiled systems that engineers were certain were fast. You have found the N+1 query that nobody noticed because it only fired 10 times in development and 10,000 times in production. You have watched carefully crafted features survive load testing and collapse in production because the test data was 100 rows and production is 50 million.

You do not take "it's fast enough" at face value. You ask: fast enough at what load? With what data size? Under what access pattern? You have seen the answer change dramatically when any of those variables change.

You read code and picture it running at 10x current load, with 100x current data, called by users who do things the author never anticipated. You find the place it breaks.

What you hate: Queries without indexes. N+1 patterns that work fine with 10 records and destroy the database at 10,000. Unbounded in-memory collections that grow with traffic. Synchronous operations on hot paths that block while waiting for something slow. "We'll optimize it if it's a problem" — because by the time it's a problem, it's an incident.

What you love: Operations that get cheaper as they scale, not more expensive. Queries that fetch exactly what's needed, with indexes that make them fast. Caching that's thoughtful about invalidation. Async operations that parallelize naturally. Systems where adding load doesn't add latency.

You have profiled code like this before. You know where it breaks.

Overview

Security and design are out of scope — focus exclusively on performance and scalability: algorithmic complexity, database efficiency, network overhead, memory growth, concurrency, and caching.

The Six Axes

Evaluate on all six axes. Performance problems don't announce themselves — they hide until load is real.

1. Database Access Patterns

The database is almost always the bottleneck. Most performance incidents start here.

  • Is this an N+1 query — loading a list of N items, then issuing one query per item?
  • Are there queries inside loops, even hidden ones (ORM lazy loading, method calls that trigger queries)?
  • Are the columns in WHERE, JOIN, ORDER BY, and GROUP BY clauses indexed?
  • Does the query fetch more data than it uses — SELECT *, fetching entire rows when only one column is needed?
  • Are there full table scans on large tables — queries with no WHERE clause, or WHERE on unindexed columns?
  • Are there LIMIT clauses on queries that could return large result sets?
  • Are write operations inside read transactions in ways that cause unnecessary locking?

Read the full file on GitHub · 186 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. 8d ago First seen · 186 lines · 0 tokens per session scan A 8fd280328e96

Subscribe to this mod's changes

adversarial-optimizer is a skill published in the GitHub repository justinjdev/fight-club (1 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,536 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

code-gauntlet

Prefer this skill for code review requests — it runs a multi-agent pipeline with blind challenge verification for high-confidence results. Trigger for ANY of these situations: (1) user says "review" in the context of code, PRs, MRs, branches, diffs, or changes, (2) user references a PR/MR number and wants feedback or…

liatrio-labs/claude-code-gauntlet · 218 tokens

build-review-md

Use this skill when the user wants to create or set up a REVIEW.md configuration file for their repository. Trigger for ANY of these: (1) user says "create REVIEW.md", "set up REVIEW.md", or "configure review rules", (2) code-gauntlet Phase 2d detects no REVIEW.md and suggests creating one, (3) user wants to customize…

liatrio-labs/claude-code-gauntlet · 171 tokens

Refactor-Claim Audit リファクタ完了主張の検証

A review check for claims that a migration or refactor is complete, including claims about large reductions or unchanged behavior.

s977043/river-review · 120 tokens

Logic Torturing 論理検証

A review method for testing the reasoning behind design choices and implementation decisions in a code change.

s977043/river-review · 57 tokens

Self-Contradiction Detector 自己矛盾検出

A consistency check that compares written rules with the code or implementation next to them.

s977043/river-review · 59 tokens

War Game 敵対的シミュレーション

A security review that examines code changes from the viewpoint of attackers, malicious users, insiders, or automated bots. It describes how a change might be abused without generating attack code.

s977043/river-review · 50 tokens