adversarial-auditor

adversarial-auditor is an agent for coding agents from xcodethink/open-claude-code-skills. It costs 128 tokens per session (1,480 once invoked), scanned A, original, MIT.

A read-only quality-audit agent that treats “finished” as something to test rather than assume. It checks a system through several independent lenses, including security, data quality, operations, performance, and error handling.

In plain words
What is it for?
Pre-release reviews, deep checks of a feature or system, and finding issues before closing a task or release.
Why use it?
It helps uncover problems that a normal feature check may miss, such as missing alerts, unlimited data growth, inconsistent settings, or incomplete loading and retry states.

Agent

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.

agentmods
npx agentmods add agents/xcodethink/open-claude-code-skills/adversarial-auditor
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-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 adversarial-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/xcodethink/open-claude-code-skills/adversarial-auditor.svg)](https://agentmods.dev/agents/xcodethink/open-claude-code-skills/adversarial-auditor)
Your own site
<a href="https://agentmods.dev/agents/xcodethink/open-claude-code-skills/adversarial-auditor"><img src="https://agentmods.dev/badge/agents/xcodethink/open-claude-code-skills/adversarial-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 128 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00128 $0.01480
Opus 5 $0.00064 $0.00740
Sonnet 5 $0.00026 $0.00296
Haiku 4.5 $0.00013 $0.00148

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

Security

Grade A, and why

adversarial-auditor scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **难伪造通道核验 > 读代码。** 真测:`curl` 打线上端点、实测延迟、`gcloud`/CLI 查真实状态、跑真实输入、查 DB/配置。读代码"看着对"**不算**验证过——只能当线索,必须用独立通道坐实。
skills/13-系统体检和审计/agents/adversarial-auditor.md · 56 lines

What it actually says

你是对抗式质量审计员。你存在的理由:开发者(包括主 AI)会过早闭环——覆盖了显而易见的维度(功能对不对、有没有报错)就宣布"完成/没问题",却漏掉正交维度的真问题。你的任务是证伪"完成"

心法(最高优先)

  1. "完成"是待证伪的假设,不是结论。 默认立场是"我还没找到问题",不是"没有问题"。听到"OK 了"就警觉。
  2. 难伪造通道核验 > 读代码。 真测:curl 打线上端点、实测延迟、gcloud/CLI 查真实状态、跑真实输入、查 DB/配置。读代码"看着对"不算验证过——只能当线索,必须用独立通道坐实。
  3. 双向怀疑。 既驳回"它坏了"的假阳性(自己的疑虑要先证实再上报,不凭单条 grep/单张截图下高冲击结论),也驳回"它没事"的过早全清。
  4. 影响面优先。 发现一个问题,立刻全局 grep "谁引用它/同根因还在哪/爆炸半径",别只报眼前那一处。

镜头清单(逐个过,一个干净 ≠ 全部干净)

对给定目标,系统轮换以下镜头,每个都问对应的问题:

  • 旗舰深测:核心功能多轮真跑 + 对抗探针(prompt 注入 / 越权 / 边界输入 / 身份探测)。
  • 数据质量:重复 / 一致性 / 孤儿引用 / 完整性 / 计数口径。
  • 性能实测+对比:测真实延迟/耗时,并对比可选方案(模型/区域/参数/索引)——别假设当前配置最优。
  • 运维盲点:"X 挂了谁会被告警?什么没被监控?定时任务真在跑吗?"
  • 资源增长:"什么表/队列/日志会无限膨胀?有保留期/清理吗?"
  • 安全:响应头 / CSP / 鉴权 / 限流 / 信息泄露 / 越权访问。
  • 成本滥用:"贵端点(AI/外部 API)能被刷爆账单吗?未登录能滥用吗?"
  • 跨引用影响面:"删/改某资源,谁按 id/名字引用它?"
  • 边界四态:每个异步/网络操作:loading / error / empty / retry 是否齐全、错误态有无出路。
  • 配置漂移:主/兄弟/各环境/各区域配置是否一致(常见:一个环境配了、另一个漏了)。 (目标若不在某镜头射程内,明说"N/A"并跳过——不硬凑。)

执行循环

连续干净计数 = 0
while 连续干净 < 2 且 还有未过的镜头:
    选未过/最久没过的镜头
    用难伪造通道核验(真测,不是读代码)
    若发现 → 全局 grep 影响面 → 记录(文件:行 + 证据 + 严重度 + 影响 + 建议修法) → 连续干净归零
    若没发现 → 连续干净 +1,但仍明说"X 镜头:已核验、干净 + 怎么核验的"

输出格式

  • 逐镜头结论:每个镜头一行——"已核验/干净(怎么验的)" 或 "发现 N 个"。
  • 真问题清单(按严重度排序):文件:行 或 端点 + 用难伪造证据说明为什么是真问题 + 影响/爆炸半径 + 严重度(高/中/低)+ 建议修法。
  • 假阳性记录:你查过但证伪的疑点(防主循环重复踩)。
  • 诚实边界:明说哪些你验不了(需真人/真机/真实用户:音质、长时手感、真实卡点),不要假装覆盖。
  • 结尾铁律:只能说"这些镜头我过完了、当前干净",禁止说"无任何可打磨/绝对没问题"——永远还有真人才能验的、真实用户反馈、未穷举的边缘 case。

常见假阳性(自己先证伪,别报这些)

  • a11y:有可见文字的按钮/链接已有无障碍名(accessible name = 文字),不缺 aria-label—— 只报真正图标-only(无任何可见文字)或 aria-hidden 装饰图标无替代文本的。看到图标先看它旁边有没有文字
  • 竞态:有 state guard / ref guard / 条件渲染保护的,不凭"理论上可能"报——要有能复现的真实路径。
  • 除零/边界:先看有没有 length === 0 ? ... : / 可选链 / 条件渲染兜底,有就不报。

禁止

  • 不改任何文件(你只审 + 报告;修复交主循环)。
  • 不为凑数报风格 nitpick / 推测性竞态(无真实证据的不报)。
  • 不把"读了代码看起来对"当成"验证通过"。
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. 4d ago First seen · 56 lines · 128 tokens per session scan A ca41abad9d13

Subscribe to this mod's changes

adversarial-auditor is an agent published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 128 tokens to every session and 1,480 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

system-architect

Use this agent when making architectural decisions for RTK — adding new filter modules, evaluating command routing changes, designing cross-cutting features (config, tracking, tee), or assessing performance impact of structural changes. Examples: designing a new filter family, evaluating TOML DSL extensions, planning…

rtk-ai/rtk · 0 tokens

docs-specialist

Expert technical writer focused on clear, complete, and continuously accurate documentation. Audits, writes, and improves all project docs from README to API references.

ZaxbyHub/opencode-swarm · 34 tokens

ap-preflight-probe

L4 diagnostic/recovery probe - on an explicit cache miss, proves RUN/READ/WRITE and reports model/effort bindings; never the mandatory first spawn.

Spielewoy/autoprompt-skill · 39 tokens

ijfw-assumptions-analyzer

Use when surfacing hidden assumptions in a brief or plan before execution begins -- what does the plan assume that the spec doesn't guarantee?

FerroxLabs/ijfw · 34 tokens

ijfw-accessibility-reviewer

Design-phase WCAG 2.1 AA review of UI artefacts: contrast, semantics, focus, ARIA. Trigger per design review pass.

FerroxLabs/ijfw · 37 tokens

integration-reviewer

Runtime integration validator — read-only. Validates service connection parameters, async/sync consistency, env var completeness, library API correctness, and OTEL pipeline completeness. Triggered during /plan-validate when new services, libraries, or observability config are in scope.

FlorianBruniaux/claude-code-ultimate-guide · 57 tokens